1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2 * camel-nntp-private.h: Private info for nntp.
4 * Authors: Michael Zucchi <notzed@ximian.com>
6 * Copyright 1999, 2000 Ximian, Inc. (www.ximian.com)
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.
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.
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
23 #ifndef CAMEL_NNTP_PRIVATE_H
24 #define CAMEL_NNTP_PRIVATE_H 1
26 /* need a way to configure and save this data, if this header is to
27 be installed. For now, dont install it */
33 #include <libedataserver/e-msgport.h>
37 struct _CamelNNTPStorePrivate {
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))
45 struct _CamelNNTPFolderPrivate {
46 GMutex *search_lock; /* for locking the search object */
47 GMutex *cache_lock; /* for locking the cache object */
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))
53 #define CAMEL_NNTP_FOLDER_LOCK(f, l)
54 #define CAMEL_NNTP_FOLDER_UNLOCK(f, l)
58 #endif /* CAMEL_NNTP_PRIVATE_H */