aboutsummaryrefslogtreecommitdiffstats
path: root/src/rrd.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-12-15 04:17:10 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-12-15 04:17:10 +0400
commitfbcc7af8a6bfb2c82d17180358bfdadf0228cddd (patch)
tree9990eedf87aa69052e646560b34372a9ad85f449 /src/rrd.h
parentebd09dbe9e4059a6e67a01a0383bed874cdf4d21 (diff)
downloadrspamd-fbcc7af8a6bfb2c82d17180358bfdadf0228cddd.tar.gz
rspamd-fbcc7af8a6bfb2c82d17180358bfdadf0228cddd.zip
* Add simple test for rrd.
Several fixes to RRD API. TODO: fix test building TODO: improve update of rrd files TODO: rework shared libraries again
Diffstat (limited to 'src/rrd.h')
-rw-r--r--src/rrd.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/rrd.h b/src/rrd.h
index 214f36d03..b1420a72a 100644
--- a/src/rrd.h
+++ b/src/rrd.h
@@ -340,4 +340,25 @@ gboolean rspamd_rrd_add_record (struct rspamd_rrd_file* file, guint rra_idx, GAr
*/
gint rspamd_rrd_close (struct rspamd_rrd_file* file);
+/*
+ * Conversion functions
+ */
+
+/**
+ * Convert rrd dst type from string to numeric value
+ */
+enum rrd_dst_type rrd_dst_from_string (const gchar *str);
+/**
+ * Convert numeric presentation of dst to string
+ */
+const gchar* rrd_dst_to_string (enum rrd_dst_type type);
+/**
+ * Convert rrd consolidation function type from string to numeric value
+ */
+enum rrd_cf_type rrd_cf_from_string (const gchar *str);
+/**
+ * Convert numeric presentation of cf to string
+ */
+const gchar* rrd_cf_to_string (enum rrd_cf_type type);
+
#endif /* RRD_H_ */