summaryrefslogtreecommitdiffstats
path: root/contrib/librdns/rdns.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-26 12:57:53 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-26 14:37:21 +0100
commit71fee73561c771b761aee52fe1e6be986c3defa2 (patch)
tree41ca2bfd09a77c1e3d8dfae38b965998b1f3cd30 /contrib/librdns/rdns.h
parent719111c00e6debc2728b0436e41c237d7e200664 (diff)
downloadrspamd-71fee73561c771b761aee52fe1e6be986c3defa2.tar.gz
rspamd-71fee73561c771b761aee52fe1e6be986c3defa2.zip
[Minor] Add function to parse string to rdns request type
Diffstat (limited to 'contrib/librdns/rdns.h')
-rw-r--r--contrib/librdns/rdns.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/librdns/rdns.h b/contrib/librdns/rdns.h
index 82506d36a..ff8eadcc6 100644
--- a/contrib/librdns/rdns.h
+++ b/contrib/librdns/rdns.h
@@ -353,6 +353,13 @@ const char *rdns_strerror (enum dns_rcode rcode);
const char *rdns_strtype (enum rdns_request_type type);
/**
+ * Parse string and return request type
+ * @param str
+ * @return
+ */
+enum rdns_request_type rdns_type_fromstr (const char *str);
+
+/**
* Increase refcount for a request
* @param req
* @return