summaryrefslogtreecommitdiff
path: root/mh/mh_getopt.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-12-16 00:02:14 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-12-16 00:02:14 +0200
commit96dc9ab99e9518f5f21a7710e396da8c3fd833b5 (patch)
treeafc811d9f053e41d3747806eafafbda7be1f0017 /mh/mh_getopt.h
parentb66ffedcecf7506efc8631dfe1047c0a1d28af80 (diff)
downloadmailutils-96dc9ab99e9518f5f21a7710e396da8c3fd833b5.tar.gz
mailutils-96dc9ab99e9518f5f21a7710e396da8c3fd833b5.tar.bz2
Add TLS to MH. Handle --debug-level and --debug-line-info options.
* mailbox/mbx_default.c (attach_auth_ticket): Do not proceed if auth is NULL. * mh/mh_getopt.h (struct mh_argp_data): Change return type and signature of handler. (mh_argp_parse): Likewise. * mh/mh_argp.c (parse_opt): Rewrite using new handler prototype. (mh_argp_parse): Use new hanlder type. Assign argp children. * mh/mh_init.c (mh_init): Call mu_init_tls_libs. * mh/ali.c: Update opt_handler * mh/anno.c: Update opt_handler * mh/burst.c: Update opt_handler * mh/comp.c: Update opt_handler * mh/fmtcheck.c: Update opt_handler * mh/folder.c: Update opt_handler * mh/forw.c: Update opt_handler * mh/inc.c: Update opt_handler * mh/install-mh.c: Update opt_handler * mh/mark.c: Update opt_handler * mh/mhl.c: Update opt_handler * mh/mhn.c: Update opt_handler * mh/mhparam.c: Update opt_handler * mh/mhpath.c: Update opt_handler * mh/pick.c: Update opt_handler * mh/refile.c: Update opt_handler * mh/repl.c: Update opt_handler * mh/rmf.c: Update opt_handler * mh/rmm.c: Update opt_handler * mh/scan.c: Update opt_handler * mh/send.c: Update opt_handler * mh/sortm.c: Update opt_handler * mh/whatnow.c: Update opt_handler * mh/whom.c: Update opt_handler
Diffstat (limited to 'mh/mh_getopt.h')
-rw-r--r--mh/mh_getopt.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/mh/mh_getopt.h b/mh/mh_getopt.h
index eabf98357..710da5b98 100644
--- a/mh/mh_getopt.h
+++ b/mh/mh_getopt.h
@@ -34,7 +34,7 @@ struct mh_option
struct mh_argp_data
{
struct mh_option *mh_option;
- int (*handler)();
+ argp_parser_t handler;
int errind;
void *closure;
char *doc;
@@ -190,7 +190,8 @@ int mh_argp_parse (int *argc, char **argv[],
struct argp_option *option,
struct mh_option *mh_option,
char *argp_doc, char *doc,
- int (*handler)(), void *closure, int *index);
+ argp_parser_t handler,
+ void *closure, int *index);
void mh_help (struct mh_option *mh_option, const char *doc);
void mh_license (const char *name);

Return to:

Send suggestions and report system problems to the System administrator.