Commit 487ae98f 487ae98fb84f7865a80d0fe08b2002379285ef8e by Sergey Poznyakoff

Prototypes for msgset_ functions. Removed proto for util_expand_msglist.

1 parent 7215ed19
...@@ -116,6 +116,16 @@ struct send_environ ...@@ -116,6 +116,16 @@ struct send_environ
116 int nfiles; 116 int nfiles;
117 }; 117 };
118 118
119 typedef struct message_set msgset_t;
120
121 struct message_set
122 {
123 msgset_t *next; /* Link to the next message set */
124 int npart; /* Number of parts in this set */
125 int *msg_part; /* Array of part numbers: msg_part[0] is the message
126 number */
127 };
128
119 /* Global variables and constants*/ 129 /* Global variables and constants*/
120 extern mailbox_t mbox; 130 extern mailbox_t mbox;
121 extern unsigned int cursor; 131 extern unsigned int cursor;
...@@ -184,7 +194,7 @@ int mail_copy0 __P((int argc, char **argv, int mark)); ...@@ -184,7 +194,7 @@ int mail_copy0 __P((int argc, char **argv, int mark));
184 int mail_send0 __P((struct send_environ *env, int save_to)); 194 int mail_send0 __P((struct send_environ *env, int save_to));
185 void free_env_headers __P((struct send_environ *env)); 195 void free_env_headers __P((struct send_environ *env));
186 196
187 //void print_message __P((message_t mesg, char *prefix, int all_headers, FILE *file)); 197 /*void print_message __P((message_t mesg, char *prefix, int all_headers, FILE *file));*/
188 198
189 int mail_mbox_commit __P((void)); 199 int mail_mbox_commit __P((void));
190 int mail_is_my_name __P((char *name)); 200 int mail_is_my_name __P((char *name));
...@@ -214,8 +224,15 @@ int var_write __P((int argc, char **argv, struct send_environ *env)); ...@@ -214,8 +224,15 @@ int var_write __P((int argc, char **argv, struct send_environ *env));
214 int var_exit __P((int argc, char **argv, struct send_environ *env)); 224 int var_exit __P((int argc, char **argv, struct send_environ *env));
215 int var_pipe __P((int argc, char **argv, struct send_environ *env)); 225 int var_pipe __P((int argc, char **argv, struct send_environ *env));
216 226
227 /* msgsets */
228 void msgset_free __P((msgset_t *msg_set));
229 msgset_t *msgset_make_1 __P((int number));
230 msgset_t *msgset_append __P((msgset_t *one, msgset_t *two));
231 msgset_t *msgset_range __P((int low, int high));
232 msgset_t *msgset_expand __P((msgset_t *set, msgset_t *expand_by));
233 msgset_t * msgset_dup __P((const msgset_t *set));
234 int parse_msgset __P((const int argc, char **argv, msgset_t **mset));
217 235
218 int util_expand_msglist __P((const int argc, char **argv, int **list));
219 int util_do_command __P((const char *cmd, ...)); 236 int util_do_command __P((const char *cmd, ...));
220 int util_msglist_command __P((function_t *func, int argc, char **argv, int set_cursor)); 237 int util_msglist_command __P((function_t *func, int argc, char **argv, int set_cursor));
221 function_t* util_command_get __P((char *cmd)); 238 function_t* util_command_get __P((char *cmd));
...@@ -246,6 +263,8 @@ void util_save_outgoing __P((message_t msg, char *savefile)); ...@@ -246,6 +263,8 @@ void util_save_outgoing __P((message_t msg, char *savefile));
246 void util_error __P((const char *format, ...)); 263 void util_error __P((const char *format, ...));
247 int util_help __P((const struct mail_command_entry *table, char *word)); 264 int util_help __P((const struct mail_command_entry *table, char *word));
248 int util_tempfile __P((char **namep)); 265 int util_tempfile __P((char **namep));
266 void util_msgset_iterate __P((msgset_t *msgset, int (*fun)(), void *closure));
267 int util_get_content_type __P((header_t hdr, char **value));
249 268
250 int ml_got_interrupt __P((void)); 269 int ml_got_interrupt __P((void));
251 void ml_clear_interrupt __P((void)); 270 void ml_clear_interrupt __P((void));
......