Commit 0354f7fb 0354f7fb250b26b87666b4b2140305c23fd6870d by Alain Magloire

UPdate prototypes.

1 parent 9bb7be19
...@@ -48,6 +48,7 @@ extern int attribute_create __P ((attribute_t *, void *)); ...@@ -48,6 +48,7 @@ extern int attribute_create __P ((attribute_t *, void *));
48 extern void attribute_destroy __P ((attribute_t *, void *)); 48 extern void attribute_destroy __P ((attribute_t *, void *));
49 extern void * attribute_get_owner __P ((attribute_t)); 49 extern void * attribute_get_owner __P ((attribute_t));
50 extern int attribute_is_modified __P ((attribute_t)); 50 extern int attribute_is_modified __P ((attribute_t));
51 extern int attribute_clear_modified __P ((attribute_t));
51 52
52 extern int attribute_is_userflag __P ((attribute_t, int)); 53 extern int attribute_is_userflag __P ((attribute_t, int));
53 extern int attribute_is_seen __P ((attribute_t)); 54 extern int attribute_is_seen __P ((attribute_t));
......
...@@ -37,21 +37,23 @@ extern "C" { ...@@ -37,21 +37,23 @@ extern "C" {
37 struct _body; 37 struct _body;
38 typedef struct _body *body_t; 38 typedef struct _body *body_t;
39 39
40 extern int body_create __P ((body_t *, void *owner)); 40 extern int body_create __P ((body_t *, void *owner));
41 extern void body_destroy __P ((body_t *, void *owner)); 41 extern void body_destroy __P ((body_t *, void *owner));
42 extern void * body_get_owner __P ((body_t)); 42 extern void * body_get_owner __P ((body_t));
43 43 extern int body_is_modified __P ((body_t));
44 extern int body_get_stream __P ((body_t, stream_t *)); 44 extern int body_clear_modified __P ((body_t));
45 extern int body_set_stream __P ((body_t, stream_t, void *owner)); 45
46 46 extern int body_get_stream __P ((body_t, stream_t *));
47 extern int body_get_filename __P ((body_t, char *, size_t, size_t *)); 47 extern int body_set_stream __P ((body_t, stream_t, void *owner));
48 48
49 extern int body_size __P ((body_t, size_t*)); 49 extern int body_get_filename __P ((body_t, char *, size_t, size_t *));
50 extern int body_set_size __P ((body_t, int (*_size) 50
51 __P ((body_t, size_t*)), void *owner)); 51 extern int body_size __P ((body_t, size_t*));
52 extern int body_lines __P ((body_t, size_t *)); 52 extern int body_set_size __P ((body_t, int (*_size)
53 extern int body_set_lines __P ((body_t, int (*_lines) 53 __P ((body_t, size_t*)), void *owner));
54 __P ((body_t, size_t*)), void *owner)); 54 extern int body_lines __P ((body_t, size_t *));
55 extern int body_set_lines __P ((body_t, int (*_lines)
56 __P ((body_t, size_t*)), void *owner));
55 57
56 #ifdef _cplusplus 58 #ifdef _cplusplus
57 } 59 }
......
...@@ -38,6 +38,7 @@ extern "C" { ...@@ -38,6 +38,7 @@ extern "C" {
38 #define MU_HEADER_RECEIVED "Received" 38 #define MU_HEADER_RECEIVED "Received"
39 #define MU_HEADER_DATE "Date" 39 #define MU_HEADER_DATE "Date"
40 #define MU_HEADER_FROM "From" 40 #define MU_HEADER_FROM "From"
41 #define MU_HEADER_SENDER "Sender"
41 #define MU_HEADER_RESENT_FROM "Resent-From" 42 #define MU_HEADER_RESENT_FROM "Resent-From"
42 #define MU_HEADER_SUBJECT "Subject" 43 #define MU_HEADER_SUBJECT "Subject"
43 #define MU_HEADER_SENDER "Sender" 44 #define MU_HEADER_SENDER "Sender"
...@@ -53,13 +54,18 @@ extern "C" { ...@@ -53,13 +54,18 @@ extern "C" {
53 #define MU_HEADER_MESSAGE_ID "Message-ID" 54 #define MU_HEADER_MESSAGE_ID "Message-ID"
54 #define MU_HEADER_RESENT_MESSAGE_ID "Resent-Message-ID" 55 #define MU_HEADER_RESENT_MESSAGE_ID "Resent-Message-ID"
55 #define MU_HEADER_IN_REPLY_TO "In-Reply-To" 56 #define MU_HEADER_IN_REPLY_TO "In-Reply-To"
57 #define MU_HEADER_REFERENCE "Reference"
56 #define MU_HEADER_ENCRYPTED "Encrypted" 58 #define MU_HEADER_ENCRYPTED "Encrypted"
57 #define MU_HEADER_PRECEDENCE "Precedence" 59 #define MU_HEADER_PRECEDENCE "Precedence"
58 #define MU_HEADER_STATUS "Status" 60 #define MU_HEADER_STATUS "Status"
59 #define MU_HEADER_CONTENT_LENGTH "Content-Length" 61 #define MU_HEADER_CONTENT_LENGTH "Content-Length"
60 #define MU_HEADER_CONTENT_TYPE "Content-Type" 62 #define MU_HEADER_CONTENT_LANGUAGE "Content-Language"
61 #define MU_HEADER_CONTENT_ENCODING "Content-transfer-encoding" 63 #define MU_HEADER_CONTENT_ENCODING "Content-transfer-encoding"
64 #define MU_HEADER_CONTENT_TYPE "Content-Type"
62 #define MU_HEADER_MIME_VERSION "MIME-Version" 65 #define MU_HEADER_MIME_VERSION "MIME-Version"
66 #define MU_HEADER_X_UIDL "X-UIDL"
67 #define MU_HEADER_X_UID "X-UID"
68 #define MU_HEADER_X_IMAPBASE "X-IMAPbase"
63 69
64 /* Mime support header attribute */ 70 /* Mime support header attribute */
65 71
...@@ -67,46 +73,47 @@ extern "C" { ...@@ -67,46 +73,47 @@ extern "C" {
67 struct _header; 73 struct _header;
68 typedef struct _header * header_t; 74 typedef struct _header * header_t;
69 75
70 extern int header_create __P ((header_t *, const char *, 76 extern int header_create __P ((header_t *, const char *,
71 size_t, void *)); 77 size_t, void *));
72 extern void header_destroy __P ((header_t *, void *)); 78 extern void header_destroy __P ((header_t *, void *));
73 extern void * header_get_owner __P ((header_t)); 79 extern void * header_get_owner __P ((header_t));
74 80
75 extern int header_is_modified __P ((header_t)); 81 extern int header_is_modified __P ((header_t));
76 82 extern int header_clear_modified __P ((header_t));
77 extern int header_set_value __P ((header_t, const char *, 83
78 const char *, int)); 84 extern int header_set_value __P ((header_t, const char *,
79 extern int header_set_set_value __P ((header_t, int (*_set_value) 85 const char *, int));
80 __P ((header_t, const char *, 86 extern int header_set_set_value __P ((header_t, int (*_set_value)
81 const char *, int)), void *)); 87 __P ((header_t, const char *,
82 88 const char *, int)), void *));
83 extern int header_get_value __P ((header_t, const char *, char *, 89
84 size_t, size_t *)); 90 extern int header_get_value __P ((header_t, const char *, char *,
85 extern int header_set_get_value __P ((header_t, int (*_get_value) 91 size_t, size_t *));
86 __P ((header_t, const char *, char *, 92 extern int header_set_get_value __P ((header_t, int (*_get_value)
87 size_t, size_t *)), void *)); 93 __P ((header_t, const char *, char *,
94 size_t, size_t *)), void *));
88 extern int header_set_get_fvalue __P ((header_t, int (*_get_value) 95 extern int header_set_get_fvalue __P ((header_t, int (*_get_value)
89 __P ((header_t, const char *, char *, 96 __P ((header_t, const char *, char *,
90 size_t, size_t *)), void *)); 97 size_t, size_t *)), void *));
91 98
92 extern int header_get_stream __P ((header_t, stream_t *)); 99 extern int header_get_stream __P ((header_t, stream_t *));
93 extern int header_set_stream __P ((header_t, stream_t, void *)); 100 extern int header_set_stream __P ((header_t, stream_t, void *));
94 101
95 extern int header_size __P ((header_t, size_t *)); 102 extern int header_size __P ((header_t, size_t *));
96 extern int header_set_size __P ((header_t, int (*_size) 103 extern int header_set_size __P ((header_t, int (*_size)
97 __P ((header_t, size_t *)), void *)); 104 __P ((header_t, size_t *)), void *));
98 105
99 extern int header_lines __P ((header_t, size_t *)); 106 extern int header_lines __P ((header_t, size_t *));
100 extern int header_set_lines __P ((header_t, 107 extern int header_set_lines __P ((header_t,
101 int (*_lines) __P ((header_t, 108 int (*_lines) __P ((header_t,
102 size_t *)), 109 size_t *)),
103 void *)); 110 void *));
104 111
105 extern int header_set_fill __P ((header_t, 112 extern int header_set_fill __P ((header_t,
106 int (*_fill) __P ((header_t, char *, 113 int (*_fill) __P ((header_t, char *,
107 size_t, off_t, 114 size_t, off_t,
108 size_t *)), 115 size_t *)),
109 void *owner)); 116 void *owner));
110 #ifdef _cplusplus 117 #ifdef _cplusplus
111 } 118 }
112 #endif 119 #endif
......
...@@ -52,6 +52,7 @@ extern void message_destroy __P ((message_t *, void *owner)); ...@@ -52,6 +52,7 @@ extern void message_destroy __P ((message_t *, void *owner));
52 52
53 extern void * message_get_owner __P ((message_t)); 53 extern void * message_get_owner __P ((message_t));
54 extern int message_is_modified __P ((message_t)); 54 extern int message_is_modified __P ((message_t));
55 extern int message_clear_modified __P ((message_t));
55 extern int message_set_mailbox __P ((message_t, mailbox_t)); 56 extern int message_set_mailbox __P ((message_t, mailbox_t));
56 57
57 extern int message_ref __P ((message_t)); 58 extern int message_ref __P ((message_t));
......