commit | c86568359c24342a100bfd6863a4a9f237fde061 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Wed Mar 06 16:05:42 2019 +0100 |
committer | Harald Welte <laforge@gnumonks.org> | Thu Mar 07 10:09:26 2019 +0100 |
tree | 1abb50e83f7df54b33e6c8be6d34849594dc7d97 | |
parent | 2bf39e0fe0188e87a246a754a55aae6723b291ce [diff] [blame] |
slotmap: Add slotmap_get_id() function to get numeric ID of slot map Change-Id: Ie476244d9ade30eed9215923275aa82a5d10176f
diff --git a/src/slotmap.h b/src/slotmap.h index 5d3d891..a26de6d 100644 --- a/src/slotmap.h +++ b/src/slotmap.h
@@ -68,6 +68,8 @@ pthread_rwlock_t rwlock; }; +uint32_t slotmap_get_id(const struct slot_mapping *map); + /* thread-safe lookup of map by client:slot */ struct slot_mapping *slotmap_by_client(struct slotmaps *maps, const struct client_slot *client);