diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-12-15 04:17:10 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-12-15 04:17:10 +0400 |
commit | fbcc7af8a6bfb2c82d17180358bfdadf0228cddd (patch) | |
tree | 9990eedf87aa69052e646560b34372a9ad85f449 /src/rrd.h | |
parent | ebd09dbe9e4059a6e67a01a0383bed874cdf4d21 (diff) | |
download | rspamd-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.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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_ */ |