aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/core/listener_table.h
diff options
context:
space:
mode:
authorEnrico Loparco (eloparco) <eloparco@cisco.com>2021-06-24 00:54:34 +0200
committerEnrico Loparco (eloparco) <eloparco@cisco.com>2021-06-24 09:32:40 +0200
commit4f1b9570602c069746a9d63197df29e8b5195df2 (patch)
tree7e227c9115d2c47722b2967de86b4fcccf9fbcd1 /hicn-light/src/hicn/core/listener_table.h
parent7c2dc50e82152fe4ef4a69a799a80b747e444a37 (diff)
[HICN-711] Add tests for listener table and size check in bitmap
Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com> Change-Id: I573477186fc9f0c294975b15b1c908444d5c5559
Diffstat (limited to 'hicn-light/src/hicn/core/listener_table.h')
-rw-r--r--hicn-light/src/hicn/core/listener_table.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/core/listener_table.h b/hicn-light/src/hicn/core/listener_table.h
index 3d21cc88f..292c489a5 100644
--- a/hicn-light/src/hicn/core/listener_table.h
+++ b/hicn-light/src/hicn/core/listener_table.h
@@ -176,6 +176,11 @@ do {
? listener_table_at(table, id) : NULL
/**
+ * @brief Helper function to avoid macro expansion in c++ tests. Wrapper around 'listener_table_get_by_id'.
+ */
+listener_t *_listener_table_get_by_id(listener_table_t *table, off_t id);
+
+/**
* @brief Returns the index of a given listener in the listener table.
*
* @param[in] table The listener table from which to retrieve the index.