diff options
author | Not Zed <NotZed@Ximian.com> | 2001-02-22 04:30:29 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-02-22 04:30:29 +0800 |
commit | c81bce50bbe890f804ae0a2f5b5f07813a3c3190 (patch) | |
tree | 82be53592da81154cb7aa0df1bf58f6198790871 /camel/camel-private.h | |
parent | 6d69d56d0c28f0a786c12222c4f30e341378c271 (diff) | |
download | gsoc2013-evolution-c81bce50bbe890f804ae0a2f5b5f07813a3c3190.tar.gz gsoc2013-evolution-c81bce50bbe890f804ae0a2f5b5f07813a3c3190.tar.zst gsoc2013-evolution-c81bce50bbe890f804ae0a2f5b5f07813a3c3190.zip |
Removed all files.
2001-02-22 Not Zed <NotZed@Ximian.com>
* providers/vee/*: Removed all files.
* camel-private.h: Move camel-vee-private.h stuff into here.
* camel-session.c: Move the vee_provider here, and initialise it
always as part of a session. The vfolder provider is always
available.
* providers/Makefile.am: Remove "vee" from the build list, now
built as part of the main library.
* Makefile.am (libcamelinclude_HEADERS):
(libcamel_la_SOURCES): Added camel-vee-store.[ch],
camel-vee-folder.[ch].
svn path=/trunk/; revision=8340
Diffstat (limited to 'camel/camel-private.h')
-rw-r--r-- | camel/camel-private.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/camel/camel-private.h b/camel/camel-private.h index cdfe878edd..9be3a24209 100644 --- a/camel/camel-private.h +++ b/camel/camel-private.h @@ -144,6 +144,33 @@ struct _CamelFolderSummaryPrivate { #define CAMEL_SUMMARY_UNLOCK(f, l) #endif +struct _CamelVeeStorePrivate { +}; + +#ifdef ENABLE_THREADS +#define CAMEL_VEE_STORE_LOCK(f, l) (e_mutex_lock(((CamelVeeStore *)f)->priv->l)) +#define CAMEL_VEE_STORE_UNLOCK(f, l) (e_mutex_unlock(((CamelVeeStore *)f)->priv->l)) +#else +#define CAMEL_VEE_STORE_LOCK(f, l) +#define CAMEL_VEE_STORE_UNLOCK(f, l) +#endif + +struct _CamelVeeFolderPrivate { + GList *folders; /* lock using subfolder_lock before changing/accessing */ + +#ifdef ENABLE_THREADS + GMutex *summary_lock; /* for locking vfolder summary */ + GMutex *subfolder_lock; /* for locking the subfolder list */ +#endif +}; + +#ifdef ENABLE_THREADS +#define CAMEL_VEE_FOLDER_LOCK(f, l) (g_mutex_lock(((CamelVeeFolder *)f)->priv->l)) +#define CAMEL_VEE_FOLDER_UNLOCK(f, l) (g_mutex_unlock(((CamelVeeFolder *)f)->priv->l)) +#else +#define CAMEL_VEE_FOLDER_LOCK(f, l) +#define CAMEL_VEE_FOLDER_UNLOCK(f, l) +#endif #ifdef __cplusplus } |