Source
104
104
AGENT_RESULT;
105
105
106
106
typedef struct
107
107
{
108
108
char *key;
109
109
unsigned flags;
110
110
int (*function)(AGENT_REQUEST *request, AGENT_RESULT *result);
111
111
char *test_param; /* item test parameters; user parameter items keep command here */
112
112
}
113
113
zbx_metric_t;
114
+
114
115
/* for backward-compatibility */
115
116
#define ZBX_METRIC zbx_metric_t
117
+
116
118
/* SET RESULT */
117
119
118
120
#define SET_UI64_RESULT(res, val) \
119
121
( \
120
122
(res)->type |= AR_UINT64, \
121
123
(res)->ui64 = (zbx_uint64_t)(val) \
122
124
)
123
125
124
126
#define SET_DBL_RESULT(res, val) \
125
127
( \