New header to prevent recursive #include problems

* providers/imap/camel-imap-types.h: New header to prevent
	recursive #include problems

	* providers/imap/*.h: Replace some #includes with #include
	"camel-imap-types.h", remove typedefs that were moved to
	camel-imap-types.h

	* providers/imap/*.c: Add #includes to make up for #includes
	removed from .h files

	* providers/imap/Makefile.am (libcamelimapinclude_HEADERS): Add
	camel-imap-types.h

svn path=/trunk/; revision=7367
This commit is contained in:
Dan Winship
2001-01-10 20:19:45 +00:00
parent a1ca83afd9
commit e1ffe7ed97
9 changed files with 29 additions and 9 deletions

View File

@ -1,3 +1,18 @@
2001-01-10 Dan Winship <danw@helixcode.com>
* providers/imap/camel-imap-types.h: New header to prevent
recursive #include problems
* providers/imap/*.h: Replace some #includes with #include
"camel-imap-types.h", remove typedefs that were moved to
camel-imap-types.h
* providers/imap/*.c: Add #includes to make up for #includes
removed from .h files
* providers/imap/Makefile.am (libcamelimapinclude_HEADERS): Add
camel-imap-types.h
2001-01-10 Dan Winship <danw@helixcode.com>
* camel-store.c (camel_store_sync): New class function, parallel

View File

@ -37,6 +37,7 @@ libcamelimapinclude_HEADERS = \
camel-imap-search.h \
camel-imap-store.h \
camel-imap-summary.h \
camel-imap-types.h \
camel-imap-utils.h
libcamelimap_la_LDFLAGS = $(KRB4_LDFLAGS) -version-info 0:0:0

View File

@ -34,6 +34,7 @@
#include "camel-imap-command.h"
#include "camel-imap-utils.h"
#include "camel-imap-folder.h"
#include "camel-imap-store.h"
#include <camel/camel-exception.h>
static char *imap_read_untagged (CamelImapStore *store, char *line,

View File

@ -33,12 +33,13 @@ extern "C" {
#pragma }
#endif /* __cplusplus }*/
#include "camel-imap-store.h"
#include "camel-imap-types.h"
#include <glib.h>
typedef struct {
struct _CamelImapResponse {
GPtrArray *untagged;
char *status;
} CamelImapResponse;
};
CamelImapResponse *camel_imap_command (CamelImapStore *store,
CamelFolder *folder,

View File

@ -33,6 +33,7 @@ extern "C" {
#pragma }
#endif /* __cplusplus }*/
#include "camel-imap-types.h"
#include "camel-folder.h"
#include <camel/camel-folder-search.h>
@ -41,13 +42,13 @@ extern "C" {
#define CAMEL_IMAP_FOLDER_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_IMAP_FOLDER_TYPE, CamelImapFolderClass))
#define CAMEL_IS_IMAP_FOLDER(o) (CAMEL_CHECK_TYPE((o), CAMEL_IMAP_FOLDER_TYPE))
typedef struct {
struct _CamelImapFolder {
CamelFolder parent_object;
struct _CamelImapFolderPrivate *priv;
CamelFolderSearch *search;
} CamelImapFolder;
};
typedef struct {

View File

@ -30,6 +30,7 @@
#include "camel-imap-command.h"
#include "camel-imap-folder.h"
#include "camel-imap-store.h"
#include "camel-imap-search.h"
#include "camel-imap-private.h"

View File

@ -34,7 +34,6 @@
#define CAMEL_IS_IMAP_SEARCH(obj) CAMEL_CHECK_TYPE (obj, camel_imap_search_get_type ())
typedef struct _CamelImapSearchClass CamelImapSearchClass;
typedef struct _CamelImapSearch CamelImapSearch;
struct _CamelImapSearch {
CamelFolderSearch parent;

View File

@ -32,6 +32,7 @@ extern "C" {
#pragma }
#endif /* __cplusplus }*/
#include "camel-imap-types.h"
#include "camel-remote-store.h"
#define CAMEL_IMAP_STORE_TYPE (camel_imap_store_get_type ())
@ -54,7 +55,7 @@ typedef enum {
#define IMAP_CAPABILITY_UIDPLUS (1 << 6)
#define IMAP_CAPABILITY_LITERALPLUS (1 << 7)
typedef struct {
struct _CamelImapStore {
CamelRemoteStore parent_object;
struct _CamelImapStorePrivate *priv;
@ -71,7 +72,7 @@ typedef struct {
GHashTable *subscribed_folders;
gboolean useful_lsub;
} CamelImapStore;
};
typedef struct {

View File

@ -24,6 +24,7 @@
#ifndef _CAMEL_IMAP_SUMMARY_H
#define _CAMEL_IMAP_SUMMARY_H
#include "camel-imap-types.h"
#include <camel/camel-folder-summary.h>
#include <camel/camel-exception.h>
@ -31,7 +32,6 @@
#define CAMEL_IMAP_SUMMARY_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_imap_summary_get_type (), CamelImapSummaryClass)
#define CAMEL_IS_IMAP_SUMMARY(obj) CAMEL_CHECK_TYPE (obj, camel_imap_summary_get_type ())
typedef struct _CamelImapSummary CamelImapSummary;
typedef struct _CamelImapSummaryClass CamelImapSummaryClass;
typedef struct _CamelImapMessageContentInfo {