diff options
author | Alexei Vladishev <alexei.vladishev@zabbix.com> | 2013-02-09 23:54:22 +0400 |
---|---|---|
committer | Alexei Vladishev <alexei.vladishev@zabbix.com> | 2013-02-09 23:54:22 +0400 |
commit | 64155044ac127d54fbf5d65b294f687ae96a233e (patch) | |
tree | 5685eb53a64f759dd7b9ba3b12ab13f138b634b1 /include/sysinfo.h | |
parent | c6a2a9adf6d9202cfedd34fc29d63e25c70922ff (diff) |
...G...... [ZBXNEXT-1550] added initial support of loadable modules (shared libraries) for extending agent functionality
Diffstat (limited to 'include/sysinfo.h')
-rw-r--r-- | include/sysinfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysinfo.h b/include/sysinfo.h index bf69e173a47..38f86e7454e 100644 --- a/include/sysinfo.h +++ b/include/sysinfo.h @@ -218,6 +218,7 @@ int get_diskstat(const char *devname, zbx_uint64_t *dstat); /* flags for command */ #define CF_USEUPARAM 1 /* use user param */ +#define CF_MODFUNCTION 2 /* function called from external module */ /* flags for process */ #define PROCESS_TEST 1 @@ -230,6 +231,7 @@ void free_metrics(); int process(const char *in_command, unsigned flags, AGENT_RESULT *result); int add_user_parameter(const char *key, char *command); +int add_user_module(const char *key, int (*function)()); void test_parameters(); void test_parameter(const char *key, unsigned flags); |