summaryrefslogtreecommitdiff
path: root/src/options.h
blob: c144925f4da3fbec2ef534b8c670690aec9c7eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef ARGENT_OPTIONS_H
#define ARGENT_OPTIONS_H

struct argent_options {
   const char *conf_filename;
   const char *script_filename;
   int log_level;
};

/* return 0 and fill `opts` on success; return nonzero on failure */
int parse_options(struct argent_options *opts, int argc, char **argv);

#endif