diff options
author | Glebs Ivanovskis <git-no-reply@zabbix.com> | 2016-09-01 13:24:24 +0300 |
---|---|---|
committer | Glebs Ivanovskis <git-no-reply@zabbix.com> | 2016-09-01 13:24:24 +0300 |
commit | adc6b91960812b440dee5ef7142c6223e629b4f9 (patch) | |
tree | 755fe765ea9205ad854a20c8ada15f7ec966c84b /include/module.h | |
parent | ec570a47e42e4a40c6deb284298add87ab0b4e1a (diff) |
....I..... [ZBXNEXT-3353] added some (compile-time) protection so that modules have less chances of overwriting common resources
Diffstat (limited to 'include/module.h')
-rw-r--r-- | include/module.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/module.h b/include/module.h index 9b52f51a140..66824a283ac 100644 --- a/include/module.h +++ b/include/module.h @@ -167,7 +167,7 @@ typedef struct zbx_uint64_t itemid; int clock; int ns; - char *value; + const char *value; } ZBX_HISTORY_STRING; @@ -176,7 +176,7 @@ typedef struct zbx_uint64_t itemid; int clock; int ns; - char *value; + const char *value; } ZBX_HISTORY_TEXT; @@ -185,8 +185,8 @@ typedef struct zbx_uint64_t itemid; int clock; int ns; - char *value; - char *source; + const char *value; + const char *source; int timestamp; int logeventid; int severity; @@ -195,11 +195,11 @@ ZBX_HISTORY_LOG; typedef struct { - void (*history_float_cb)(ZBX_HISTORY_FLOAT *history, int history_num); - void (*history_integer_cb)(ZBX_HISTORY_INTEGER *history, int history_num); - void (*history_string_cb)(ZBX_HISTORY_STRING *history, int history_num); - void (*history_text_cb)(ZBX_HISTORY_TEXT *history, int history_num); - void (*history_log_cb)(ZBX_HISTORY_LOG *history, int history_num); + void (*history_float_cb)(const ZBX_HISTORY_FLOAT *history, int history_num); + void (*history_integer_cb)(const ZBX_HISTORY_INTEGER *history, int history_num); + void (*history_string_cb)(const ZBX_HISTORY_STRING *history, int history_num); + void (*history_text_cb)(const ZBX_HISTORY_TEXT *history, int history_num); + void (*history_log_cb)(const ZBX_HISTORY_LOG *history, int history_num); } ZBX_HISTORY_WRITE_CBS; |