aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/nntp/camel-nntp-private.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-07-10 03:21:59 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-07-10 03:21:59 +0800
commit96d7f1821883b2355e3b9d8fd640595ac699c100 (patch)
tree9a185b551cce76e12a51a320a8ecfdf3e0318090 /camel/providers/nntp/camel-nntp-private.h
parent2bd47d3cda52acc0beb688ffb4a8202412de5c09 (diff)
downloadgsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.tar
gsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.tar.gz
gsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.tar.bz2
gsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.tar.lz
gsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.tar.xz
gsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.tar.zst
gsoc2013-evolution-96d7f1821883b2355e3b9d8fd640595ac699c100.zip
Get rid of the #ifdef ENABLE_THREADS since we no longer plan to
2003-07-09 Jeffrey Stedfast <fejj@ximian.com> Get rid of the #ifdef ENABLE_THREADS since we no longer plan to support/maintain this. * providers/nntp/camel-nntp-store.c: Here. * providers/nntp/camel-nntp-newsrc.c: And here. * providers/nntp/camel-nntp-folder.c: Same. * providers/local/camel-local-folder.c: And here. svn path=/trunk/; revision=21778
Diffstat (limited to 'camel/providers/nntp/camel-nntp-private.h')
-rw-r--r--camel/providers/nntp/camel-nntp-private.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/camel/providers/nntp/camel-nntp-private.h b/camel/providers/nntp/camel-nntp-private.h
index 95b29ba6b9..f2cca4e187 100644
--- a/camel/providers/nntp/camel-nntp-private.h
+++ b/camel/providers/nntp/camel-nntp-private.h
@@ -26,45 +26,35 @@
#ifdef __cplusplus
extern "C" {
#pragma }
-#endif /* __cplusplus }*/
+#endif /* __cplusplus */
/* need a way to configure and save this data, if this header is to
be installed. For now, dont install it */
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
-#ifdef ENABLE_THREADS
#include "e-util/e-msgport.h"
-#endif
struct _CamelNNTPStorePrivate {
-#ifdef ENABLE_THREADS
EMutex *command_lock; /* for locking the command stream for a complete operation */
-#endif
};
-#ifdef ENABLE_THREADS
#define CAMEL_NNTP_STORE_LOCK(f, l) (e_mutex_lock(((CamelNNTPStore *)f)->priv->l))
#define CAMEL_NNTP_STORE_UNLOCK(f, l) (e_mutex_unlock(((CamelNNTPStore *)f)->priv->l))
-#else
-#define CAMEL_NNTP_STORE_LOCK(f, l)
-#define CAMEL_NNTP_STORE_UNLOCK(f, l)
-#endif
+
struct _CamelNNTPFolderPrivate {
-#ifdef ENABLE_THREADS
GMutex *search_lock; /* for locking the search object */
GMutex *cache_lock; /* for locking the cache object */
-#endif
};
-#ifdef ENABLE_THREADS
#define CAMEL_NNTP_FOLDER_LOCK(f, l) (g_mutex_lock(((CamelNNTPFolder *)f)->priv->l))
#define CAMEL_NNTP_FOLDER_UNLOCK(f, l) (g_mutex_unlock(((CamelNNTPFolder *)f)->priv->l))
#else
#define CAMEL_NNTP_FOLDER_LOCK(f, l)
#define CAMEL_NNTP_FOLDER_UNLOCK(f, l)
-#endif
#ifdef __cplusplus
}