X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_format_graphite.h;h=de90c44cc49895bc35b1184c522406b765ebdb92;hb=0d9f395599348e735e6f461e1c328293bef0d060;hp=a7a05bbbadfea7f006801b6649beb7ed56656f85;hpb=499cbd1605850e0feca405fb2579064d330eea8f;p=collectd.git diff --git a/src/utils_format_graphite.h b/src/utils_format_graphite.h index a7a05bbb..de90c44c 100644 --- a/src/utils_format_graphite.h +++ b/src/utils_format_graphite.h @@ -23,12 +23,18 @@ #define UTILS_FORMAT_GRAPHITE_H 1 #include "collectd.h" + #include "plugin.h" -int format_graphite (char *buffer, - size_t buffer_size, const data_set_t *ds, - const value_list_t *vl, const char *prefix, - const char *postfix, const char escape_char, - _Bool store_rates); +#define GRAPHITE_STORE_RATES 0x01 +#define GRAPHITE_SEPARATE_INSTANCES 0x02 +#define GRAPHITE_ALWAYS_APPEND_DS 0x04 +#define GRAPHITE_DROP_DUPE_FIELDS 0x08 +#define GRAPHITE_PRESERVE_SEPARATOR 0x10 + +int format_graphite(char *buffer, size_t buffer_size, const data_set_t *ds, + const value_list_t *vl, const char *prefix, + const char *postfix, const char escape_char, + unsigned int flags); #endif /* UTILS_FORMAT_GRAPHITE_H */