]> git.cworth.org Git - ttt/blobdiff - src/ttt-args.h
2005-12-08 Carl Worth <cworth@cworth.org>
[ttt] / src / ttt-args.h
index 7c18acde62878beb244004a16eedbcf9b390d1aa..5a1b3cfe67f822657e51b054b71749989a58cd8e 100644 (file)
 #ifndef TTT_ARGS_H
 #define TTT_ARGS_H
 
 #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_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
 {
     char *host;
     char *port;
     char *log_file;
 
 typedef struct ttt_args
 {
     char *host;
     char *port;
     char *log_file;
+    ttt_bool_t detach;
+    char *pid_file;
 } ttt_args_t;
 
 int
 } ttt_args_t;
 
 int