#include "config.h"
#endif
-#include "args.h"
+/* We use _GNU_SOURCE to get things like asprintf. */
+#define _GNU_SOURCE
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <stdint.h>
+#include <unistd.h>
+#include <fcntl.h>
+#include <assert.h>
+#include <string.h>
+#include <errno.h>
+#include <ctype.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <pthread.h>
+#include <pwd.h>
+
+#define ASSERT_NOT_REACHED \
+do { \
+ static const int NOT_REACHED = 0; \
+ assert (NOT_REACHED); \
+ exit (1); \
+} while (0)
+
+#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
+#define TTT_PRINTF_FORMAT(fmt_index, va_index) \
+ __attribute__((__format__(__printf__, fmt_index, va_index)))
+#else
+#define TTT_PRINTF_FORMAT(fmt_index, va_index)
+#endif
+
+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_CONNECTION_REFUSED,
+ TTT_STATUS_NETWORK_UNREACHABLE
+} 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"
#endif