aboutsummaryrefslogtreecommitdiff
path: root/src/options.h
blob: 1b3fe5b40920a51a43dcc8b7ab59a627b45adbe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef POTD_OPTIONS_H
#define POTD_OPTIONS_H 1

struct opt_list;

typedef enum opt_name {
    OPT_LOGTOFILE = 0, OPT_LOGFILE, OPT_LOGLEVEL,
    OPT_DAEMON,
    OPT_TEST,

    OPT_MAX
} opt_name;


int options_cmdline(int argc, char **argv);

int getopt_used(opt_name on);

char *
getopt_str(opt_name on);

char *
getopt_strlist(opt_name on, struct opt_list **ol);

#endif