aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/addr.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-05 14:37:22 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-05 14:37:22 +0000
commited7ecf0d80246dc047676cfeb5f1726c678eb01b (patch)
tree3ed19699708e29bd5524726e73305043877c947d /src/libutil/addr.h
parent9f0e1cd979389a6a4aca66e99f3b18bf9e67b7f5 (diff)
downloadrspamd-ed7ecf0d80246dc047676cfeb5f1726c678eb01b.tar.gz
rspamd-ed7ecf0d80246dc047676cfeb5f1726c678eb01b.zip
[Minor] Core: Allow inet addresses to be parsed using memory pool
Diffstat (limited to 'src/libutil/addr.h')
-rw-r--r--src/libutil/addr.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libutil/addr.h b/src/libutil/addr.h
index 3aa24bb1c..46b705a4b 100644
--- a/src/libutil/addr.h
+++ b/src/libutil/addr.h
@@ -113,6 +113,17 @@ gboolean rspamd_parse_inet_address (rspamd_inet_addr_t **target,
gsize srclen);
/**
+ * Use memory pool allocated inet address
+ * @param src
+ * @param srclen
+ * @param pool
+ * @return
+ */
+rspamd_inet_addr_t* rspamd_parse_inet_address_pool (const char *src,
+ gsize srclen,
+ rspamd_mempool_t *pool);
+
+/**
* Returns string representation of inet address
* @param addr
* @return statically allocated string pointer (not thread safe)