aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/core/listener_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src/hicn/core/listener_table.c')
-rw-r--r--hicn-light/src/hicn/core/listener_table.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/core/listener_table.c b/hicn-light/src/hicn/core/listener_table.c
index 7a3987c..560c23f 100644
--- a/hicn-light/src/hicn/core/listener_table.c
+++ b/hicn-light/src/hicn/core/listener_table.c
@@ -107,4 +107,14 @@ listener_table_get_by_name(listener_table_t * table, const char * name)
listener_t *_listener_table_get_by_id(listener_table_t *table, off_t id) {
return listener_table_get_by_id(table, id);
+}
+
+void listener_table_print(const listener_table_t *table) {
+ const char *k;
+ unsigned v;
+
+ printf("*** Listener table ***\n");
+ kh_foreach(table->id_by_name, k, v, {
+ printf("%s:\t%u\n", k, v);
+ })
} \ No newline at end of file