summaryrefslogtreecommitdiffstats
path: root/src/database/rrdfunctions-internals.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 14:45:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 14:48:03 +0000
commite55403ed71282d7bfd8b56df219de3c28a8af064 (patch)
tree524889e5becb81643bf8741e3082955dca076f09 /src/database/rrdfunctions-internals.h
parentReleasing debian version 1.47.5-1. (diff)
downloadnetdata-e55403ed71282d7bfd8b56df219de3c28a8af064.tar.xz
netdata-e55403ed71282d7bfd8b56df219de3c28a8af064.zip
Merging upstream version 2.0.3+dfsg:
- does not include dygraphs anymore (Closes: #923993) - does not include pako anymore (Closes: #1042533) - does not include dashboard binaries anymore (Closes: #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.h3
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