X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fopt%2Fprivate.h;h=f2199e48dc90b3581e376d91323a64d843fa2e2b;hp=5d9eca23a0ddf55b81f812009b2b09e0fed104d7;hb=bbdf3ef3c2c14e515388c6146fd00557cee905a1;hpb=d89e5744f30b584ac4909ce1164af1289c41359b diff --git a/ccan/opt/private.h b/ccan/opt/private.h index 5d9eca23..f2199e48 100644 --- a/ccan/opt/private.h +++ b/ccan/opt/private.h @@ -1,3 +1,4 @@ +/* Licensed under GPLv3+ - see LICENSE file for details */ #ifndef CCAN_OPT_PRIVATE_H #define CCAN_OPT_PRIVATE_H @@ -10,5 +11,10 @@ extern const char *opt_argv0; const char *first_sopt(unsigned *i); const char *next_sopt(const char *names, unsigned *i); +const char *first_lopt(unsigned *i, unsigned *len); +const char *next_lopt(const char *p, unsigned *i, unsigned *len); + +int parse_one(int *argc, char *argv[], unsigned *offset, + void (*errlog)(const char *fmt, ...)); #endif /* CCAN_OPT_PRIVATE_H */