Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / providers / groupwise / camel-groupwise-private.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2  *
3  * Authors: Siviah Nallagatla <snallagatla@novell.com>
4  *
5  * Copyright 2004 Novell Inc
6  *
7  * This program is free software; you can redistribute it and/or 
8  * modify it under the terms of version 2 of the GNU Lesser General Public 
9  * License as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19  * USA
20  */
21
22 #ifndef CAMEL_GROUPWISE_PRIVATE_H
23 #define CAMEL_GROUPWISE_PRIVATE_H 1
24
25 /* need a way to configure and save this data, if this header is to
26    be installed.  For now, dont install it */
27
28 #ifdef HAVE_CONFIG_H
29 #include <config.h>
30 #endif
31
32 #ifdef ENABLE_THREADS
33 #define CAMEL_GROUPWISE_FOLDER_LOCK(f, l) \
34         (g_static_mutex_lock(&((CamelGroupwiseFolder *)f)->priv->l))
35 #define CAMEL_GROUPWISE_FOLDER_UNLOCK(f, l) \
36         (g_static_mutex_unlock(&((CamelGroupwiseFolder *)f)->priv->l))
37 #define CAMEL_GROUPWISE_FOLDER_REC_LOCK(f, l) \
38         (g_static_rec_mutex_lock(&((CamelGroupwiseFolder *)f)->priv->l))
39 #define CAMEL_GROUPWISE_FOLDER_REC_UNLOCK(f, l) \
40         (g_static_rec_mutex_unlock(&((CamelGroupwiseFolder *)f)->priv->l))
41 #else
42 #define GROUPWISE_FOLDER_LOCK(f, l)
43 #define GROUPWISE_FOLDER_UNLOCK(f, l)
44 #define GROUPWISE_FOLDER_REC_LOCK(f, l)
45 #define GROUPWISE_FOLDER_REC_UNLOCK(f, l)
46 #endif
47
48 #endif /* CAMEL_IMAP_PRIVATE_H */