aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-26 19:44:44 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-26 19:44:44 +0400
commit7e440d6f4392a302d6cd4e886fe6da42ae87fed2 (patch)
tree6cfb4e7ce8e15c565688ebdd734b770eba167b23 /src/cfg_file.h
parent312a025f6ea39f044d12f93abc8b503e63ea15ba (diff)
downloadrspamd-7e440d6f4392a302d6cd4e886fe6da42ae87fed2.tar.gz
rspamd-7e440d6f4392a302d6cd4e886fe6da42ae87fed2.zip
* Add lua bindings for upstream API.
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r--src/cfg_file.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h
index b90171426..f07539295 100644
--- a/src/cfg_file.h
+++ b/src/cfg_file.h
@@ -336,6 +336,15 @@ struct config_file {
/**
+ * Parse host[:port[:priority]] line
+ * @param ina host address
+ * @param port port
+ * @param priority priority
+ * @return TRUE if string was parsed
+ */
+gboolean parse_host_port_priority (const gchar *str, struct in_addr *ina, guint16 *port, guint *priority);
+
+/**
* Parse host:port line
* @param ina host address
* @param port port
@@ -344,6 +353,14 @@ struct config_file {
gboolean parse_host_port (const gchar *str, struct in_addr *ina, guint16 *port);
/**
+ * Parse host:priority line
+ * @param ina host address
+ * @param priority priority
+ * @return TRUE if string was parsed
+ */
+gboolean parse_host_priority (const gchar *str, struct in_addr *ina, guint *priority);
+
+/**
* Parse bind credits
* @param cf config file to use
* @param str line that presents bind line