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>2017-12-18 19:22:46 +0300
committerAlexei Vladishev <alexei.vladishev@zabbix.com>2017-12-18 19:22:46 +0300
commit0250dc51af81650fa42983aee623c632e98d4a78 (patch)
tree696417f4082cb8b9063ece8657620ecc86e7edbd /include/module.h
parent7443e021fbc6f11ff612dc85bd4feef0b9ebdd87 (diff)
...G...PS. [DEV-764] added ability to compile Zabbix as C++ code for stronger type safety and new class of warnings
Diffstat (limited to 'include/module.h')
-rw-r--r--include/module.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/module.h b/include/module.h
index 4419d6cb385..a7e7d872318 100644
--- a/include/module.h
+++ b/include/module.h
@@ -45,15 +45,6 @@
#define CF_MODULE 0x02 /* item is defined in a loadable module */
#define CF_USERPARAMETER 0x04 /* item is defined as user parameter */
-typedef struct
-{
- char *key;
- unsigned flags;
- int (*function)();
- char *test_param; /* item test parameters; user parameter items keep command here */
-}
-ZBX_METRIC;
-
/* agent request structure */
typedef struct
{
@@ -99,6 +90,15 @@ typedef struct
}
AGENT_RESULT;
+typedef struct
+{
+ char *key;
+ unsigned flags;
+ int (*function)(AGENT_REQUEST *request, AGENT_RESULT *result);
+ char *test_param; /* item test parameters; user parameter items keep command here */
+}
+ZBX_METRIC;
+
/* SET RESULT */
#define SET_UI64_RESULT(res, val) \