From 4f1b9570602c069746a9d63197df29e8b5195df2 Mon Sep 17 00:00:00 2001 From: "Enrico Loparco (eloparco)" Date: Thu, 24 Jun 2021 00:54:34 +0200 Subject: [HICN-711] Add tests for listener table and size check in bitmap Signed-off-by: Enrico Loparco (eloparco) Change-Id: I573477186fc9f0c294975b15b1c908444d5c5559 --- hicn-light/src/hicn/core/listener_table.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hicn-light/src/hicn/core/listener_table.h') 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 @@ -175,6 +175,11 @@ do { listener_table_validate_id(table, id) \ ? 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. * -- cgit 1.2.3-korg