From 57c5f1cc4adb92482ce08f14eef0afbbdeef67fd Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Fri, 11 May 2012 21:50:30 +0000 Subject: [PATCH] inlining of helper functions --- src/lockmanager/gnunet-service-lockmanager.c | 26 ++++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/lockmanager/gnunet-service-lockmanager.c b/src/lockmanager/gnunet-service-lockmanager.c index 3642ca030..b4abf6b88 100644 --- a/src/lockmanager/gnunet-service-lockmanager.c +++ b/src/lockmanager/gnunet-service-lockmanager.c @@ -181,7 +181,7 @@ static struct ClientList *cl_tail; * @param lock_number * @param key set to the key */ -static void +static inline void get_key (const char *domain_name, uint32_t lock_number, struct GNUNET_HashCode *key) @@ -203,7 +203,7 @@ get_key (const char *domain_name, * @param lock_num the number of the lock * @return the lock if found; NULL if not */ -static struct Lock * +static inline struct Lock * find_lock (const char *domain_name, const uint32_t lock_num) @@ -240,7 +240,7 @@ find_lock (const char *domain_name, * @param lock_num the lock number * @return pointer to the lock structure which is added to lock map */ -static struct Lock * +static inline struct Lock * add_lock (const char *domain_name, uint32_t lock_num) { @@ -270,7 +270,7 @@ add_lock (const char *domain_name, * * @param lock the lock to remove */ -static void +static inline void remove_lock (struct Lock *lock) { struct GNUNET_HashCode key; @@ -296,7 +296,7 @@ remove_lock (struct Lock *lock) * @param lock the lock which has to be matched * @return the matching LockList entry; NULL if no match is found */ -static struct LockList * +static inline struct LockList * cl_ll_find_lock (struct ClientList *cl_entry, const struct Lock *lock) { @@ -318,7 +318,7 @@ cl_ll_find_lock (struct ClientList *cl_entry, * @param cl_entry the client which currently owns this lock * @param lock the lock to be added to the cl_entry's lock list */ -static void +static inline void cl_ll_add_lock (struct ClientList *cl_entry, struct Lock *lock) { @@ -341,7 +341,7 @@ cl_ll_add_lock (struct ClientList *cl_entry, * @param cl_entry the ClientList entry * @param ll_entry the LockList entry to be deleted */ -static void +static inline void cl_ll_remove_lock (struct ClientList *cl_entry, struct LockList *ll_entry) { @@ -365,7 +365,7 @@ cl_ll_remove_lock (struct ClientList *cl_entry, * @return the WaitList entry matching the given cl_entry; NULL if not match * was found */ -static struct WaitList * +static inline struct WaitList * lock_wl_find (const struct Lock *lock, const struct ClientList *cl_entry) { @@ -388,7 +388,7 @@ lock_wl_find (const struct Lock *lock, * @param lock the lock list entry of a lock * @param cl_entry the client to queue for the lock's wait list */ -static void +static inline void lock_wl_add_client (struct Lock *lock, struct ClientList *cl_entry) { @@ -412,7 +412,7 @@ lock_wl_add_client (struct Lock *lock, * @param lock the lock * @param wl_entry the wait list entry to be removed */ -static void +static inline void lock_wl_remove (struct Lock *lock, struct WaitList *wl_entry) { @@ -432,7 +432,7 @@ lock_wl_remove (struct Lock *lock, * @param client the client to be searched for * @return the ClientList entry; NULL if the client is not found */ -static struct ClientList * +static inline struct ClientList * cl_find_client (const struct GNUNET_SERVER_Client *client) { struct ClientList *current; @@ -450,7 +450,7 @@ cl_find_client (const struct GNUNET_SERVER_Client *client) * @param client the client to be appended to the list * @return the client list entry which is added to the client list */ -static struct ClientList * +static inline struct ClientList * cl_add_client (struct GNUNET_SERVER_Client *client) { struct ClientList *new_client; @@ -472,7 +472,7 @@ cl_add_client (struct GNUNET_SERVER_Client *client) * * @param cl_entry the client list entry to delete */ -static void +static inline void cl_remove_client (struct ClientList *cl_entry) { LOG (GNUNET_ERROR_TYPE_DEBUG, -- 2.25.1