X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt.h;h=5c141695b87c6bcc9598b2c12a171ef8ece0cb00;hp=316d74494c6e34ae1fde8d7684cbfc84f5d24cea;hb=3dfae8f4b1127a62f3acc299683a8fbd63b908df;hpb=5d56d3cd8b4685e905ed604277ac9cb32c876127 diff --git a/src/ttt.h b/src/ttt.h index 316d744..5c14169 100644 --- a/src/ttt.h +++ b/src/ttt.h @@ -41,6 +41,7 @@ #include #include #include +#include #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