Merge branch 'collectd-5.5' into collectd-5.6
[collectd.git] / src / utils_format_graphite.h
index a7a05bb..b82da9f 100644 (file)
 #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
+
+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 */