Code

Merged branch 'master' of git://git.tokkee.org/sysdb.
[sysdb.git] / src / include / frontend / proto.h
index 1d021519cd02cf2de2f2e9c376067cd9cd4448fd..0f55a7c71d13b5ec80b2d57d5c98db6b2c8af154 100644 (file)
@@ -35,7 +35,9 @@ extern "C" {
 /* status codes returned to a client */
 typedef enum {
        CONNECTION_OK = 0,
-       CONNECTION_ERROR
+       CONNECTION_ERROR,
+
+       CONNECTION_LOG,
 } sdb_conn_status_t;
 
 /* accepted commands / state of the connection */
@@ -46,7 +48,14 @@ typedef enum {
        CONNECTION_STARTUP,
 
        /* querying */
+       CONNECTION_QUERY,
+       /* query commands */
+       CONNECTION_FETCH,
        CONNECTION_LIST,
+       CONNECTION_LOOKUP,
+
+       /* command elements */
+       CONNECTION_EXPR,
 } sdb_conn_state_t;
 
 #ifdef __cplusplus