diff options
author | Glebs Ivanovskis <git-no-reply@zabbix.com> | 2016-08-29 14:16:36 +0300 |
---|---|---|
committer | Glebs Ivanovskis <git-no-reply@zabbix.com> | 2016-08-29 14:16:36 +0300 |
commit | 5f2097b89891d8e2192f850d09f9fbfd1ed04bb0 (patch) | |
tree | f1537dc4495226ddf246ec3179229e57e411ce7a /include/zbxmodules.h | |
parent | 934326e80722cdd29ea7481cb6f81c724d66bd93 (diff) |
...G...PS. [ZBXNEXT-3353] implemented new module loading and unloading as well as new history export
Diffstat (limited to 'include/zbxmodules.h')
-rw-r--r-- | include/zbxmodules.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/include/zbxmodules.h b/include/zbxmodules.h index 0b90456fec0..2755f91fb96 100644 --- a/include/zbxmodules.h +++ b/include/zbxmodules.h @@ -20,6 +20,54 @@ #ifndef ZABBIX_ZBXMODULES_H #define ZABBIX_ZBXMODULES_H +typedef struct +{ + void *lib; + char *name; +} +zbx_module_t; + +typedef struct +{ + zbx_module_t *module; + void (*history_float_cb)(ZBX_HISTORY_FLOAT *, int); +} +zbx_history_float_cb_t; + +typedef struct +{ + zbx_module_t *module; + void (*history_integer_cb)(ZBX_HISTORY_INTEGER *, int); +} +zbx_history_integer_cb_t; + +typedef struct +{ + zbx_module_t *module; + void (*history_string_cb)(ZBX_HISTORY_STRING *, int); +} +zbx_history_string_cb_t; + +typedef struct +{ + zbx_module_t *module; + void (*history_text_cb)(ZBX_HISTORY_TEXT *, int); +} +zbx_history_text_cb_t; + +typedef struct +{ + zbx_module_t *module; + void (*history_log_cb)(ZBX_HISTORY_LOG *, int); +} +zbx_history_log_cb_t; + +extern zbx_history_float_cb_t *history_float_cbs; +extern zbx_history_integer_cb_t *history_integer_cbs; +extern zbx_history_string_cb_t *history_string_cbs; +extern zbx_history_text_cb_t *history_text_cbs; +extern zbx_history_log_cb_t *history_log_cbs; + int load_modules(const char *path, char **file_names, int timeout, int verbose); void unload_modules(); |