1#ifndef LIBNAGIOS_FANOUT_H_INCLUDED
2#define LIBNAGIOS_FANOUT_H_INCLUDED
fanout_table * fanout_create(unsigned long size)
Create a fanout table.
typedefNAGIOS_BEGIN_DECL struct fanout_table fanout_table
Primary (opaque) type for this api.
Definition fanout.h:21
void * fanout_get(fanout_table *t, unsigned long key)
Return a pointer from the fanout table t.
void fanout_destroy(fanout_table *t, void(*destructor)(void *))
Destroy a fanout table, with optional destructor.
int fanout_add(fanout_table *t, unsigned long key, void *data)
Add an entry to the fanout table.
void * fanout_remove(fanout_table *t, unsigned long key)
Remove an entry from the fanout table and return its data.
libnagios helper and compatibility macros that lack a "real" home.
#define NAGIOS_END_DECL
C++ compatibility macro that avoid confusing indentation programs.
Definition lnag-utils.h:32
#define NAGIOS_BEGIN_DECL
C++ compatibility macro that avoids confusing indentation programs.
Definition lnag-utils.h:30