diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-03-14 08:45:34 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-03-14 18:45:12 -0700 |
commit | 4960649f21582a74e949a62b8fde8067852ffab7 (patch) | |
tree | a4aa094238979250fc17d6cef640d8c737f38a2e /src/til_args.h | |
parent | 7ff8ef94c05ae6386463b63f3ba25add52340d8b (diff) |
til_args: introduce til_args_pruned_parse() variant
When integrating libtil into higher order application/gui
toolkits, it's desirable to passthru any unhandled arguments to
the toolkit's initializer.
The specific impetus for adding this is glimmer, which uses
gtk/glib where g_application_run() wants an argv but won't know
what to do with the libtil-recognized args.
Diffstat (limited to 'src/til_args.h')
-rw-r--r-- | src/til_args.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/til_args.h b/src/til_args.h index 018ae80..a94b7a1 100644 --- a/src/til_args.h +++ b/src/til_args.h @@ -12,6 +12,7 @@ typedef struct til_args_t { } til_args_t; int til_args_parse(int argc, const char *argv[], til_args_t *res_args); +int til_args_pruned_parse(int argc, const char *argv[], til_args_t *res_args, int *res_argc, const char **res_argv[]); int til_args_help(FILE *out); #endif |