52 |
#define MH_GLOBAL_PROFILE "mh-profile" |
#define MH_GLOBAL_PROFILE "mh-profile" |
53 |
#define MH_CONTEXT_FILE "context" |
#define MH_CONTEXT_FILE "context" |
54 |
|
|
55 |
|
#define is_true(arg) ((arg)==NULL||(arg)[0] == 'y') |
56 |
|
|
57 |
enum mh_opcode |
enum mh_opcode |
58 |
{ |
{ |
59 |
/* 0. Stop. Format: mhop_stop */ |
/* 0. Stop. Format: mhop_stop */ |
181 |
void mh_init __P((void)); |
void mh_init __P((void)); |
182 |
void mh_init2 __P((void)); |
void mh_init2 __P((void)); |
183 |
void mh_read_profile __P((void)); |
void mh_read_profile __P((void)); |
|
void mh_save_context __P((void)); |
|
184 |
int mh_read_formfile __P((char *name, char **pformat)); |
int mh_read_formfile __P((char *name, char **pformat)); |
185 |
|
|
186 |
char * mh_profile_value __P((char *name, char *defval)); |
char *mh_global_profile_get __P((char *name, char *defval)); |
187 |
|
int mh_global_profile_set __P((const char *name, const char *value)); |
188 |
|
char *mh_global_context_get __P((const char *name, const char *defval)); |
189 |
|
int mh_global_context_set __P((const char *name, const char *value)); |
190 |
|
char *mh_current_folder __P((void)); |
191 |
|
char *mh_global_sequences_get __P((const char *name, const char *defval)); |
192 |
|
int mh_global_sequences_set __P((const char *name, const char *value)); |
193 |
|
void mh_global_save_state __P((void)); |
194 |
|
|
195 |
int mh_getyn __P((const char *fmt, ...)); |
int mh_getyn __P((const char *fmt, ...)); |
196 |
int mh_check_folder __P((char *pathname)); |
int mh_check_folder __P((char *pathname, int confirm)); |
197 |
|
|
198 |
int mh_format __P((mh_format_t *fmt, message_t msg, size_t msgno, |
int mh_format __P((mh_format_t *fmt, message_t msg, size_t msgno, |
199 |
char *buffer, size_t bufsize)); |
char *buffer, size_t bufsize)); |