]> mj.ucw.cz Git - libucw.git/blob - ucw/opt-internal.h
Opt: Make OPT_LAST_ARG actually work and document interface of opt_parse()
[libucw.git] / ucw / opt-internal.h
1 /*
2  *      UCW Library -- Internals of the option parser
3  *
4  *      (c) 2013 Jan Moskyto Matejka <mq@ucw.cz>
5  *      (c) 2014 Martin Mares <mj@ucw.cz>
6  *
7  *      This software may be freely distributed and used according to the terms
8  *      of the GNU Lesser General Public License.
9  */
10
11 #ifndef _UCW_OPT_INTERNAL_H
12 #define _UCW_OPT_INTERNAL_H
13
14 #ifdef CONFIG_UCW_CLEAN_ABI
15 #define opt_failure ucw_opt_failure
16 #define opt_precompute ucw_opt_precompute
17 #endif
18
19 struct opt_precomputed {
20   struct opt_item * item;
21   const char * name;
22   short flags;
23   short count;
24 };
25
26 void opt_failure(const char * mesg, ...) FORMAT_CHECK(printf,1,2) NONRET;
27 void opt_precompute(struct opt_precomputed *opt, struct opt_item *item);
28
29 #endif