diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-28 14:03:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-28 14:03:46 +0000 |
commit | 4a4ff2f073debbe1b5967121fc4e1782bd004ed6 (patch) | |
tree | 7ca63f491039ade73ddcc0d93e8b3aa0918e5c59 /src/libserver/cfg_file.h | |
parent | b4ce748572e3097982b951fac69c0e65db8b4118 (diff) | |
download | rspamd-4a4ff2f073debbe1b5967121fc4e1782bd004ed6.tar.gz rspamd-4a4ff2f073debbe1b5967121fc4e1782bd004ed6.zip |
Rework host/port/priority parsing.
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r-- | src/libserver/cfg_file.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 9366b7718..f9e2aa46e 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -15,11 +15,6 @@ #define DEFAULT_BIND_PORT 11333 #define DEFAULT_CONTROL_PORT 11334 -/* Upstream timeouts */ -#define DEFAULT_UPSTREAM_ERROR_TIME 10 -#define DEFAULT_UPSTREAM_ERROR_TIME 10 -#define DEFAULT_UPSTREAM_DEAD_TIME 300 -#define DEFAULT_UPSTREAM_MAXERRORS 10 struct expression; struct tokenizer; @@ -331,34 +326,6 @@ struct rspamd_config { /** - * Parse host[:port[:priority]] line - * @param ina host address - * @param port port - * @param priority priority - * @return TRUE if string was parsed - */ -gboolean rspamd_parse_host_port_priority (rspamd_mempool_t *pool, - const gchar *str, gchar **addr, guint16 *port, guint *priority); - -/** - * Parse host:port line - * @param ina host address - * @param port port - * @return TRUE if string was parsed - */ -gboolean rspamd_parse_host_port (rspamd_mempool_t *pool, const gchar *str, - gchar **addr, guint16 *port); - -/** - * Parse host:priority line - * @param ina host address - * @param priority priority - * @return TRUE if string was parsed - */ -gboolean rspamd_parse_host_priority (rspamd_mempool_t *pool, const gchar *str, - gchar **addr, guint *priority); - -/** * Parse bind credits * @param cf config file to use * @param str line that presents bind line |