(mh_context_iterator): New type.
(mh_open_msg_file): Changed declaration. (mh_install, mh_global_context_iterate) (mh_global_sequences_iterate,mh_context_iterate) (mh_usedraft): New functions.
Showing
1 changed file
with
11 additions
and
1 deletions
... | @@ -203,6 +203,9 @@ struct mh_whatnow_env { /* An environment for whatnow shell */ | ... | @@ -203,6 +203,9 @@ struct mh_whatnow_env { /* An environment for whatnow shell */ |
203 | #define DISP_USE 1 | 203 | #define DISP_USE 1 |
204 | #define DISP_REPLACE 2 | 204 | #define DISP_REPLACE 2 |
205 | 205 | ||
206 | typedef int (*mh_context_iterator) __PMT((char *field, | ||
207 | char *value, char *data)); | ||
208 | |||
206 | extern char *current_folder; | 209 | extern char *current_folder; |
207 | extern size_t current_message; | 210 | extern size_t current_message; |
208 | extern char mh_list_format[]; | 211 | extern char mh_list_format[]; |
... | @@ -212,7 +215,8 @@ void mh_init __P((void)); | ... | @@ -212,7 +215,8 @@ void mh_init __P((void)); |
212 | void mh_init2 __P((void)); | 215 | void mh_init2 __P((void)); |
213 | void mh_read_profile __P((void)); | 216 | void mh_read_profile __P((void)); |
214 | int mh_read_formfile __P((char *name, char **pformat)); | 217 | int mh_read_formfile __P((char *name, char **pformat)); |
215 | mailbox_t mh_open_msg_file (char *file_name); | 218 | mailbox_t mh_open_msg_file (char *folder, char *file_name); |
219 | void mh_install __P((char *name, int automode)); | ||
216 | 220 | ||
217 | char *mh_global_profile_get __P((char *name, char *defval)); | 221 | char *mh_global_profile_get __P((char *name, char *defval)); |
218 | int mh_global_profile_set __P((const char *name, const char *value)); | 222 | int mh_global_profile_set __P((const char *name, const char *value)); |
... | @@ -222,6 +226,8 @@ char *mh_current_folder __P((void)); | ... | @@ -222,6 +226,8 @@ char *mh_current_folder __P((void)); |
222 | char *mh_global_sequences_get __P((const char *name, const char *defval)); | 226 | char *mh_global_sequences_get __P((const char *name, const char *defval)); |
223 | int mh_global_sequences_set __P((const char *name, const char *value)); | 227 | int mh_global_sequences_set __P((const char *name, const char *value)); |
224 | void mh_global_save_state __P((void)); | 228 | void mh_global_save_state __P((void)); |
229 | int mh_global_context_iterate __P((mh_context_iterator fp, void *data)); | ||
230 | int mh_global_sequences_iterate __P((mh_context_iterator fp, void *data)); | ||
225 | 231 | ||
226 | int mh_getyn __P((const char *fmt, ...)); | 232 | int mh_getyn __P((const char *fmt, ...)); |
227 | int mh_check_folder __P((char *pathname, int confirm)); | 233 | int mh_check_folder __P((char *pathname, int confirm)); |
... | @@ -247,6 +253,8 @@ char *mh_context_get_value __P((mh_context_t *ctx, const char *name, | ... | @@ -247,6 +253,8 @@ char *mh_context_get_value __P((mh_context_t *ctx, const char *name, |
247 | const char *defval)); | 253 | const char *defval)); |
248 | int mh_context_set_value __P((mh_context_t *ctx, const char *name, | 254 | int mh_context_set_value __P((mh_context_t *ctx, const char *name, |
249 | const char *value)); | 255 | const char *value)); |
256 | int mh_context_iterate __P((mh_context_t *ctx, | ||
257 | mh_context_iterator fp, void *data)); | ||
250 | 258 | ||
251 | int mh_message_number __P((message_t msg, size_t *pnum)); | 259 | int mh_message_number __P((message_t msg, size_t *pnum)); |
252 | 260 | ||
... | @@ -279,4 +287,6 @@ void *xrealloc __P((void *, size_t)); | ... | @@ -279,4 +287,6 @@ void *xrealloc __P((void *, size_t)); |
279 | int mh_spawnp __P((const char *prog, const char *file)); | 287 | int mh_spawnp __P((const char *prog, const char *file)); |
280 | int mh_whatnow __P((struct mh_whatnow_env *wh, int initial_edit)); | 288 | int mh_whatnow __P((struct mh_whatnow_env *wh, int initial_edit)); |
281 | int mh_disposition __P((const char *filename)); | 289 | int mh_disposition __P((const char *filename)); |
290 | int mh_usedraft __P((const char *filename)); | ||
282 | int mh_file_copy __P((const char *from, const char *to)); | 291 | int mh_file_copy __P((const char *from, const char *to)); |
292 | ... | ... |
-
Please register or sign in to post a comment