diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-25 17:33:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-25 17:34:10 +0000 |
commit | 83ba6762cc43d9db581b979bb5e3445669e46cc2 (patch) | |
tree | 2e69833b43f791ed253a7a20318b767ebe56cdb8 /src/database/rrdfunctions-internals.h | |
parent | Releasing debian version 1.47.5-1. (diff) | |
download | netdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.tar.xz netdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.zip |
Merging upstream version 2.0.3+dfsg (Closes: #923993, #1042533, #1045145).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/database/rrdfunctions-internals.h')
-rw-r--r-- | src/database/rrdfunctions-internals.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/database/rrdfunctions-internals.h b/src/database/rrdfunctions-internals.h index a846e4de0..79eb52aa4 100644 --- a/src/database/rrdfunctions-internals.h +++ b/src/database/rrdfunctions-internals.h @@ -11,6 +11,7 @@ typedef enum __attribute__((packed)) { RRD_FUNCTION_LOCAL = (1 << 0), RRD_FUNCTION_GLOBAL = (1 << 1), RRD_FUNCTION_DYNCFG = (1 << 2), + RRD_FUNCTION_RESTRICTED = (1 << 3), // this function is restricted (hidden from user) // this is 8-bit } RRD_FUNCTION_OPTIONS; @@ -23,6 +24,7 @@ struct rrd_host_function { STRING *tags; int timeout; // the default timeout of the function int priority; + uint32_t version; rrd_function_execute_cb_t execute_cb; void *execute_cb_data; @@ -30,7 +32,6 @@ struct rrd_host_function { struct rrd_collector *collector; }; -size_t rrd_functions_sanitize(char *dst, const char *src, size_t dst_len); int rrd_functions_find_by_name(RRDHOST *host, BUFFER *wb, const char *name, size_t key_length, const DICTIONARY_ITEM **item); #endif //NETDATA_RRDFUNCTIONS_INTERNALS_H |