Source
54
54
55
55
56
56
int zbx_history_init(char **error);
57
57
void zbx_history_destroy(void);
58
58
59
59
int zbx_history_add_values(const zbx_vector_ptr_t *history, int *ret_flush);
60
60
int zbx_history_get_values(zbx_uint64_t itemid, int value_type, int start, int count, int end,
61
61
zbx_vector_history_record_t *values);
62
62
63
63
int zbx_history_requires_trends(int value_type);
64
-
void zbx_history_check_version(struct zbx_json *json);
64
+
void zbx_history_check_version(struct zbx_json *json, int *result);
65
65
66
66
#define FLUSH_SUCCEED 0
67
67
#define FLUSH_FAIL -1
68
68
#define FLUSH_DUPL_REJECTED -2
69
69
70
70
#endif