17#ifndef NMSG_STATSMOD_PLUGIN_H
18#define NMSG_STATSMOD_PLUGIN_H
50#define NMSG_STATSMOD_VERSION 1
118#define NMSG_STATSMOD_REQUIRED_INIT \
119 .statsmod_version = NMSG_STATSMOD_VERSION
Base nmsg support header.
void(* nmsg_statsmod_module_fini_fp)(void *mod_data)
Destroy the filter module.
nmsg_res(* nmsg_statsmod_remove_io_fp)(void *mod_data, nmsg_io_t io)
Remove an nmsg_io_t with the filter module.
nmsg_res(* nmsg_statsmod_module_init_fp)(const void *param, size_t len_param, void **mod_data)
Initialize the stats module.
nmsg_res(* nmsg_statsmod_add_io_fp)(void *mod_data, nmsg_io_t io, const char *name)
Add an nmsg_io_t with the statistics module for instrumentation.
Structure exported by statistics modules.
long statsmod_version
Module interface version.
nmsg_statsmod_add_io_fp io_add
Add an nmsg_io_t to statsmod instrumentation.
nmsg_statsmod_module_init_fp module_init
Module-wide initialization function.
nmsg_statsmod_remove_io_fp io_remove
Remove an nmsg_io_t from statsmod instrumentation.
nmsg_statsmod_module_fini_fp module_fini
Module-wide finalization function.