]> git.cworth.org Git - ttt/blobdiff - src/ttt.h
2005-12-09 Carl Worth <cworth@cworth.org>
[ttt] / src / ttt.h
index 42b8c433c4c353431d0c3a3b4a74d9c7255d03b4..5c141695b87c6bcc9598b2c12a171ef8ece0cb00 100644 (file)
--- a/src/ttt.h
+++ b/src/ttt.h
@@ -30,6 +30,7 @@
 #define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdarg.h>
 #include <stdint.h>
 #include <unistd.h>
 #include <fcntl.h>
@@ -39,8 +40,8 @@
 #include <ctype.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <netinet/ip.h>
-#include <netdb.h>
+#include <pthread.h>
+#include <pwd.h>
 
 #define ASSERT_NOT_REACHED             \
 do {                                   \
@@ -56,14 +57,24 @@ do {                                        \
 #define TTT_PRINTF_FORMAT(fmt_index, va_index)
 #endif
 
-#include "ttt-args.h"
-#include "x.h"
-
 typedef int ttt_bool_t;
 
+#define FALSE 0
+#define TRUE  1
+
+#define TTT_SERVER_PROTOCOL_VERSION 1
+
 typedef enum {
     TTT_STATUS_SUCCESS = 0,
-    TTT_STATUS_FAILURE
+    TTT_STATUS_FAILURE,
+    TTT_STATUS_EOF,
+    TTT_STATUS_CONNECTION_REFUSED,
+    TTT_STATUS_NETWORK_UNREACHABLE
 } ttt_status_t;
 
+typedef struct _ttt_server ttt_server_t;
+typedef struct _ttt_client ttt_client_t;
+
+#include "x.h"
+
 #endif