diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-29 11:26:08 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-29 11:26:08 +0000 |
commit | f58fb61175aa8616b307ec29e919f5556d42777d (patch) | |
tree | 03057c6dcb1e3a6e5972afab958a11c290b31ae2 /src/libutil/addr.h | |
parent | db1fd009599ba9c60f569b2ce5a99c373ad9f478 (diff) | |
download | rspamd-f58fb61175aa8616b307ec29e919f5556d42777d.tar.gz rspamd-f58fb61175aa8616b307ec29e919f5556d42777d.zip |
Allow addresses to be allocated in rspamd_mempool.
Diffstat (limited to 'src/libutil/addr.h')
-rw-r--r-- | src/libutil/addr.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libutil/addr.h b/src/libutil/addr.h index 5989b740b..16fe58a8d 100644 --- a/src/libutil/addr.h +++ b/src/libutil/addr.h @@ -24,6 +24,7 @@ #define ADDR_H_ #include "config.h" +#include "mem_pool.h" /** * Union that is used for storing sockaddrs @@ -97,7 +98,7 @@ gint rspamd_accept_from_socket (gint sock, rspamd_inet_addr_t *addr); gboolean rspamd_parse_host_port_priority_strv (gchar **tokens, rspamd_inet_addr_t **addr, guint *max_addrs, guint *priority, - gchar **name, guint default_port); + gchar **name, guint default_port, rspamd_mempool_t *pool); /** * Parse host[:port[:priority]] line @@ -108,7 +109,8 @@ gboolean rspamd_parse_host_port_priority_strv (gchar **tokens, */ gboolean rspamd_parse_host_port_priority (const gchar *str, rspamd_inet_addr_t **addr, guint *max_addrs, - guint *priority, gchar **name, guint default_port); + guint *priority, gchar **name, guint default_port, + rspamd_mempool_t *pool); /** * Parse host:port line @@ -118,7 +120,7 @@ gboolean rspamd_parse_host_port_priority (const gchar *str, */ gboolean rspamd_parse_host_port (const gchar *str, rspamd_inet_addr_t **addr, guint *max_addrs, - gchar **name, guint default_port); + gchar **name, guint default_port, rspamd_mempool_t *pool); #endif /* ADDR_H_ */ |