TECH-PREVIEW
This interface may change without notice.
=============================================
The event_provider
interface is used internally in between
ISIM modules.
The method event_name returns name of event with index
n or NULL
if there is no event with that index.
The method event_value returns accumulated value for event with index n. Output is undefined if there is no event with that index.
Events must de indexed from 0
to last
without gaps.
To use the event-provider
add the following
EXTRA_MODULE_VPATH := event-provider-interface
to the modules Makefile.
SIM_INTERFACE(event_provider) { const char *(*event_name)(conf_object_t *obj, unsigned n); uint64 (*event_value)(conf_object_t *obj, unsigned n); }; #define EVENT_PROVIDER_INTERFACE "event_provider"