aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-summary.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-04-26 09:09:05 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-04-26 09:09:05 +0800
commit7d9faeb00c03ec6af1c9f7f378123b57a9804de6 (patch)
treea233574f475b487a13b28f0d117ceca5ee56888e /camel/camel-folder-summary.h
parent36cac270be19b769530a7b68ca6d4e3b79452e41 (diff)
downloadgsoc2013-evolution-7d9faeb00c03ec6af1c9f7f378123b57a9804de6.tar
gsoc2013-evolution-7d9faeb00c03ec6af1c9f7f378123b57a9804de6.tar.gz
gsoc2013-evolution-7d9faeb00c03ec6af1c9f7f378123b57a9804de6.tar.bz2
gsoc2013-evolution-7d9faeb00c03ec6af1c9f7f378123b57a9804de6.tar.lz
gsoc2013-evolution-7d9faeb00c03ec6af1c9f7f378123b57a9804de6.tar.xz
gsoc2013-evolution-7d9faeb00c03ec6af1c9f7f378123b57a9804de6.tar.zst
gsoc2013-evolution-7d9faeb00c03ec6af1c9f7f378123b57a9804de6.zip
Applied jacob's patches for e-poolv stuff.
2001-04-26 Not Zed <NotZed@Ximian.com> * Applied jacob's patches for e-poolv stuff. svn path=/trunk/; revision=9571
Diffstat (limited to 'camel/camel-folder-summary.h')
-rw-r--r--camel/camel-folder-summary.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/camel/camel-folder-summary.h b/camel/camel-folder-summary.h
index 99642c9a84..eb1a527a47 100644
--- a/camel/camel-folder-summary.h
+++ b/camel/camel-folder-summary.h
@@ -93,9 +93,12 @@ typedef struct _CamelSummaryReferences {
CamelSummaryMessageID references[1];
} CamelSummaryReferences;
-#define DOESTRV
+/* #define DOESTRV */
+#define DOEPOOLV
+
+#if defined (DOEPOOLV) || defined (DOESTRV)
+#include "../e-util/e-memory.h"
-#ifdef DOESTRV
/* string array indices */
enum {
CAMEL_MESSAGE_INFO_UID,
@@ -111,7 +114,9 @@ enum {
/* information about a given object */
struct _CamelMessageInfo {
/* public fields */
-#ifdef DOESTRV
+#ifdef DOEPOOLV
+ EPoolv *strings;
+#elif defined (DOESTRV)
struct _EStrv *strings; /* all strings packed into a single compact array */
#else
char *subject;
@@ -121,7 +126,7 @@ struct _CamelMessageInfo {
char *mlist;
char *uid;
-#endif
+#endif /* DOEPOOLV */
guint32 flags;
guint32 size;
guint32 refcount;
@@ -159,7 +164,7 @@ struct _CamelFolderSummary {
guint32 message_info_size;
guint32 content_info_size;
-#ifdef DOESTRV
+#if defined (DOEPOOLV) || defined (DOESTRV)
guint32 message_info_strings;
#endif
/* memory allocators (setup automatically) */
@@ -297,7 +302,7 @@ void camel_message_info_dup_to(const CamelMessageInfo *from, CamelMessageInfo *t
void camel_message_info_free(CamelMessageInfo *mi);
/* accessors */
-#ifdef DOESTRV
+#if defined (DOEPOOLV) || defined (DOESTRV)
const char *camel_message_info_string(const CamelMessageInfo *mi, int type);
#define camel_message_info_subject(x) camel_message_info_string((const CamelMessageInfo *)(x), CAMEL_MESSAGE_INFO_SUBJECT)
#define camel_message_info_from(x) camel_message_info_string((const CamelMessageInfo *)(x), CAMEL_MESSAGE_INFO_FROM)