index cbe4c2ab233481208e32c815c2923b064be1c3b6..a2163bce9841d479557ad5f8c4f93bdf69ba4af5 100644 (file)
#ifndef SDB_FRONTEND_CONNECTION_H
#define SDB_FRONTEND_CONNECTION_H 1
+#include "frontend/proto.h"
#include "utils/strbuf.h"
#include <inttypes.h>
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;
/*
*/
/*
- * sdb_session_start:
+ * sdb_fe_session_start:
* Start a new user session on the specified connection.
*
* Returns:
* - a negative value else
*/
int
-sdb_session_start(sdb_conn_t *conn);
+sdb_fe_session_start(sdb_conn_t *conn);
/*
* store access