Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Vladishev <alexei.vladishev@zabbix.com>2013-02-09 23:54:22 +0400
committerAlexei Vladishev <alexei.vladishev@zabbix.com>2013-02-09 23:54:22 +0400
commit64155044ac127d54fbf5d65b294f687ae96a233e (patch)
tree5685eb53a64f759dd7b9ba3b12ab13f138b634b1 /include/sysinfo.h
parentc6a2a9adf6d9202cfedd34fc29d63e25c70922ff (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.h2
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);