Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / providers / nntp / camel-nntp-private.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2  *  camel-nntp-private.h: Private info for nntp.
3  *
4  * Authors: Michael Zucchi <notzed@ximian.com>
5  *
6  * Copyright 1999, 2000 Ximian, Inc. (www.ximian.com)
7  *
8  * This program is free software; you can redistribute it and/or 
9  * modify it under the terms of version 2 of the GNU Lesser General Public 
10  * License as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
20  * USA
21  */
22
23 #ifndef CAMEL_NNTP_PRIVATE_H
24 #define CAMEL_NNTP_PRIVATE_H 1
25
26 /* need a way to configure and save this data, if this header is to
27    be installed.  For now, dont install it */
28
29 #ifdef HAVE_CONFIG_H
30 #include <config.h>
31 #endif
32
33 #include <libedataserver/e-msgport.h>
34
35 G_BEGIN_DECLS
36
37 struct _CamelNNTPStorePrivate {
38         int dummy;
39 };
40
41 #define CAMEL_NNTP_STORE_LOCK(f, l) (e_mutex_lock(((CamelNNTPStore *)f)->priv->l))
42 #define CAMEL_NNTP_STORE_UNLOCK(f, l) (e_mutex_unlock(((CamelNNTPStore *)f)->priv->l))
43
44
45 struct _CamelNNTPFolderPrivate {
46         GMutex *search_lock;    /* for locking the search object */
47         GMutex *cache_lock;     /* for locking the cache object */
48 };
49
50 #define CAMEL_NNTP_FOLDER_LOCK(f, l) (g_mutex_lock(((CamelNNTPFolder *)f)->priv->l))
51 #define CAMEL_NNTP_FOLDER_UNLOCK(f, l) (g_mutex_unlock(((CamelNNTPFolder *)f)->priv->l))
52 #else
53 #define CAMEL_NNTP_FOLDER_LOCK(f, l)
54 #define CAMEL_NNTP_FOLDER_UNLOCK(f, l)
55
56 G_END_DECLS
57
58 #endif /* CAMEL_NNTP_PRIVATE_H */