From da3a3127e095f679651119f0debfafcade1b0b94 Mon Sep 17 00:00:00 2001 From: Stephanie Wang Date: Tue, 18 Oct 2016 15:12:41 -0700 Subject: [PATCH] Move get_client_id to db.h (#40) --- state/db.h | 9 +++++++++ state/redis.h | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/state/db.h b/state/db.h index e6ca089a0..50536e271 100644 --- a/state/db.h +++ b/state/db.h @@ -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 diff --git a/state/redis.h b/state/redis.h index a3e0555e7..cf368b992 100644 --- a/state/redis.h +++ b/state/redis.h @@ -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