X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-args.h;h=f35bee8eb7185e3906a53619d312c4ef0e52f0c6;hp=f5e117a607cc4fe089d574c1821086f717397fdb;hb=3dfae8f4b1127a62f3acc299683a8fbd63b908df;hpb=c425d769ad013c2f76bd15e433fbda4e66436e05 diff --git a/src/ttt-args.h b/src/ttt-args.h index f5e117a..f35bee8 100644 --- a/src/ttt-args.h +++ b/src/ttt-args.h @@ -22,20 +22,25 @@ #ifndef TTT_ARGS_H #define TTT_ARGS_H -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +#include "ttt.h" + +#define TTT_ARGS_HOST_DEFAULT "localhost" +#define TTT_ARGS_PORT_DEFAULT "5334" +/* NULL means to just log to stderr. */ +#define TTT_ARGS_LOG_FILE_DEFAULT NULL +#define TTT_ARGS_PID_FILE_DEFAULT "/var/run/ttt-server.pid" typedef struct ttt_args { - /* XXX: SAMPLE: - char *display; - */ - char *file; - + char *host; + char *port; + char *user; + char *log_file; + ttt_bool_t detach; + char *pid_file; } ttt_args_t; int -ttt_args_parse(ttt_args_t *args, int argc, char *argv[], int *args_first); +ttt_args_parse(ttt_args_t *args, int argc, char *argv[]); #endif