]> git.cworth.org Git - ttt/blobdiff - src/ttt.h
Deleted debugging code and changed return errors to fit protocol
[ttt] / src / ttt.h
index 1b22ba0bc0d33db5c1e9a427df7c593512a07d57..5b4a807fb4f0258a62bc16a48a1601e1b072311b 100644 (file)
--- a/src/ttt.h
+++ b/src/ttt.h
@@ -41,6 +41,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <pthread.h>
+#include <pwd.h>
 
 #define ASSERT_NOT_REACHED             \
 do {                                   \
@@ -61,6 +62,8 @@ 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,
@@ -70,6 +73,7 @@ typedef enum {
 } ttt_status_t;
 
 typedef struct _ttt_server ttt_server_t;
+typedef struct _ttt_invite ttt_invite_t;
 typedef struct _ttt_client ttt_client_t;
 
 #include "x.h"