X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fttt.h;h=c1662afd8aaf6875ff38e961c6fa822a2d5dc1b4;hb=47ff725ff3b109b94a23ea7c8c07c8b1417e31ef;hp=c3e8c5c25fa88abb9c1b91df910ebc889bc7f536;hpb=907321c065fb1383e800f0794981df91d4327f57;p=ttt diff --git a/src/ttt.h b/src/ttt.h index c3e8c5c..c1662af 100644 --- a/src/ttt.h +++ b/src/ttt.h @@ -56,20 +56,24 @@ do { \ #define TTT_PRINTF_FORMAT(fmt_index, va_index) #endif -#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_EOF + 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