X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt.h;h=1b22ba0bc0d33db5c1e9a427df7c593512a07d57;hp=203c637b042a6a12a2158120eec18ffbf829cda9;hb=f2187ebd49f78b84bd2dca6172abc81e54dda199;hpb=c23865689e087ec70e36e13075f997ba39fcda75 diff --git a/src/ttt.h b/src/ttt.h index 203c637..1b22ba0 100644 --- a/src/ttt.h +++ b/src/ttt.h @@ -40,6 +40,7 @@ #include #include #include +#include #define ASSERT_NOT_REACHED \ do { \ @@ -55,14 +56,22 @@ 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 + 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