X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=parse-options.h;h=a4bd40bb6acf90fdafefa0983fb523dca4e8b11c;hb=8a64881b44e03264fb0c3c26fc00a01c12cd67ff;hp=98ea42ffd9ecd977b655143651359bf1859eba2a;hpb=bd96a7871aa65ae461ab70c75d9e76a97af82f4e;p=thirdparty%2Fgit.git diff --git a/parse-options.h b/parse-options.h index 98ea42ffd9..a4bd40bb6a 100644 --- a/parse-options.h +++ b/parse-options.h @@ -276,6 +276,7 @@ int parse_options_step(struct parse_opt_ctx_t *ctx, int parse_options_end(struct parse_opt_ctx_t *ctx); +struct option *parse_options_dup(const struct option *a); struct option *parse_options_concat(struct option *a, struct option *b); /*----- some often used options -----*/ @@ -292,7 +293,9 @@ int parse_opt_commit(const struct option *, const char *, int); int parse_opt_tertiary(const struct option *, const char *, int); int parse_opt_string_list(const struct option *, const char *, int); int parse_opt_noop_cb(const struct option *, const char *, int); -int parse_opt_unknown_cb(struct parse_opt_ctx_t *ctx, const struct option *, const char *, int); +enum parse_opt_result parse_opt_unknown_cb(struct parse_opt_ctx_t *ctx, + const struct option *, + const char *, int); int parse_opt_passthru(const struct option *, const char *, int); int parse_opt_passthru_argv(const struct option *, const char *, int);