mirror of
https://github.com/wassname/ray.git
synced 2026-07-23 13:10:11 +08:00
Move get_client_id to db.h (#40)
This commit is contained in:
committed by
Robert Nishihara
parent
e57b87928c
commit
da3a3127e0
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user