X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-args.h;h=7c18acde62878beb244004a16eedbcf9b390d1aa;hp=f5e117a607cc4fe089d574c1821086f717397fdb;hb=49f7f9e3dc198c3593021bff5514f19090a4834c;hpb=2cd70db8433cc9d02a4ca784190260889c835198 diff --git a/src/ttt-args.h b/src/ttt-args.h index f5e117a..7c18acd 100644 --- a/src/ttt-args.h +++ b/src/ttt-args.h @@ -26,16 +26,19 @@ #include "config.h" #endif +#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 + typedef struct ttt_args { - /* XXX: SAMPLE: - char *display; - */ - char *file; - + char *host; + char *port; + char *log_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