X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Finclude%2Ffrontend%2Fconnection.h;h=a2163bce9841d479557ad5f8c4f93bdf69ba4af5;hp=955180f0872daad53cd3ac4714bd278d2bcd52f0;hb=ddb7ffc175e49abfa69c82777b88d73e1f1103fb;hpb=af40f31c4128fe82d6d401dbe93631d0947d540e diff --git a/src/include/frontend/connection.h b/src/include/frontend/connection.h index 955180f..a2163bc 100644 --- a/src/include/frontend/connection.h +++ b/src/include/frontend/connection.h @@ -28,6 +28,7 @@ #ifndef SDB_FRONTEND_CONNECTION_H #define SDB_FRONTEND_CONNECTION_H 1 +#include "frontend/proto.h" #include "utils/strbuf.h" #include @@ -36,23 +37,6 @@ extern "C" { #endif -/* status codes returned to a client */ -typedef enum { - CONNECTION_OK = 0, - CONNECTION_ERROR -} sdb_conn_status_t; - -/* accepted commands / state of the connection */ -typedef enum { - /* connection handling */ - CONNECTION_IDLE = 0, - CONNECTION_PING, - CONNECTION_STARTUP, - - /* querying */ - CONNECTION_LIST, -} sdb_conn_state_t; - typedef struct sdb_conn sdb_conn_t; /*