args.h 276 B

1234567891011121314151617
  1. #ifndef CMDLINE_ARGS_H_
  2. #define CMDLINE_ARGS_H_
  3. struct cmdline_args {
  4. int background;
  5. int loglevel;
  6. const char *logfile;
  7. const char *pidfile;
  8. int force;
  9. };
  10. extern struct cmdline_args cmdargs;
  11. int parse_commandline(int argc, char **argv);
  12. #endif /* CMDLINE_ARGS_H_ */