aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_rcl.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-08-29 15:15:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-08-29 15:15:26 +0100
commit7ade35b5e8abb9fc5f7d0d92421ef20bfd0186bc (patch)
tree2b8d74296d42cff47fabcd2abd28c723617ee74b /src/cfg_rcl.h
parent627869c66dd4619908d116ca6d207b27dd6a9b34 (diff)
downloadrspamd-7ade35b5e8abb9fc5f7d0d92421ef20bfd0186bc.tar.gz
rspamd-7ade35b5e8abb9fc5f7d0d92421ef20bfd0186bc.zip
Add integer converting function.
Diffstat (limited to 'src/cfg_rcl.h')
-rw-r--r--src/cfg_rcl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cfg_rcl.h b/src/cfg_rcl.h
index 8b2a3fdc1..7ee2a4fbb 100644
--- a/src/cfg_rcl.h
+++ b/src/cfg_rcl.h
@@ -91,6 +91,7 @@ gboolean rspamd_read_rcl_config (struct rspamd_rcl_section *top,
struct rspamd_rcl_struct_parser {
gpointer user_struct;
goffset offset;
+ gsize size;
};
/**
@@ -105,4 +106,17 @@ struct rspamd_rcl_struct_parser {
gboolean rspamd_rcl_parse_struct_string (struct config_file *cfg, rspamd_cl_object_t *obj,
gpointer ud, struct rspamd_rcl_section *section, GError **err);
+/**
+ * Parse an integer field of a structure
+ * @param cfg config pointer
+ * @param obj object to parse
+ * @param ud struct_parser structure
+ * @param section the current section
+ * @param err error pointer
+ * @return TRUE if a value has been successfully parsed
+ */
+gboolean rspamd_rcl_parse_struct_integer (struct config_file *cfg, rspamd_cl_object_t *obj,
+ gpointer ud, struct rspamd_rcl_section *section, GError **err);
+
+
#endif /* CFG_RCL_H_ */