blob: 6f64c82e31dc6339c88c6918086e64ebef5eb53b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* This common_user.h is used by userspace programs */
#ifndef __COMMON_PARAMS_H
#define __COMMON_PARAMS_H
#include <getopt.h>
#include "common_defines.h"
struct option_wrapper {
struct option option;
char *help;
char *metavar;
bool required;
};
void usage(const char *prog_name, const char *doc,
const struct option_wrapper *long_options, bool full);
void parse_cmdline_args(int argc, char **argv,
const struct option_wrapper *long_options,
struct config *cfg, const char *doc);
#endif /* __COMMON_PARAMS_H */
|