aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/fstring.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-07 12:24:07 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-07 12:24:07 +0100
commit2567f0c4c7408fc3cd83794e7b12fed9bc33da83 (patch)
tree01103c9eabf7be3e0bf121dc63c2fa0354e8ebb5 /src/libutil/fstring.h
parent9a563389b1c9ecbbc696cbb5ab18ef8dbd394d24 (diff)
downloadrspamd-2567f0c4c7408fc3cd83794e7b12fed9bc33da83.tar.gz
rspamd-2567f0c4c7408fc3cd83794e7b12fed9bc33da83.zip
Add tokens comparision routines.
Diffstat (limited to 'src/libutil/fstring.h')
-rw-r--r--src/libutil/fstring.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libutil/fstring.h b/src/libutil/fstring.h
index 4d9c3678d..abb69dcbc 100644
--- a/src/libutil/fstring.h
+++ b/src/libutil/fstring.h
@@ -116,4 +116,16 @@ gint rspamd_fstring_casecmp (const rspamd_fstring_t *s1,
gint rspamd_fstring_cmp (const rspamd_fstring_t *s1,
const rspamd_fstring_t *s2);
+/**
+ * Compare two fixed tokens ignoring case
+ */
+gint rspamd_ftok_casecmp (const rspamd_ftok_t *s1,
+ const rspamd_ftok_t *s2);
+
+/**
+ * Compare two fixed tokens
+ */
+gint rspamd_ftok_cmp (const rspamd_ftok_t *s1,
+ const rspamd_ftok_t *s2);
+
#endif