Move get_client_id to db.h (#40)

This commit is contained in:
Stephanie Wang
2016-10-18 15:12:41 -07:00
committed by Robert Nishihara
parent e57b87928c
commit da3a3127e0
2 changed files with 9 additions and 9 deletions
+9
View File
@@ -20,4 +20,13 @@ void db_attach(db_handle *db, event_loop *loop);
/* Disconnect from the global system store. */
void db_disconnect(db_handle *db);
/**
* Returns the client ID, according to the database.
*
* @param db The handle to the database.
* @returns int The client ID for this connection to the database. If
* this client has no connection to the database, returns -1.
*/
int get_client_id(db_handle *db);
#endif
-9
View File
@@ -65,13 +65,4 @@ void object_table_lookup_callback(redisAsyncContext *c,
void *r,
void *privdata);
/**
* Returns the client ID, according to Redis.
*
* @param db The handle to the Redis database.
* @returns int The client ID for this connection to Redis. If
* this client has no connection to Redis, returns -1.
*/
int get_client_id(db_handle *db);
#endif