aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/fstring.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-31 17:41:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-31 17:41:19 +0100
commit7c09818f4165382cbd65a6a33b655a2def0ffc65 (patch)
tree11a292a170d91d0f15caed2f14b5ec97bedeac2b /src/libutil/fstring.h
parent4e26d2d0567d90ef85c4415ae207ecb3b235d3b4 (diff)
downloadrspamd-7c09818f4165382cbd65a6a33b655a2def0ffc65.tar.gz
rspamd-7c09818f4165382cbd65a6a33b655a2def0ffc65.zip
[Minor] Add macros to access strings data
Diffstat (limited to 'src/libutil/fstring.h')
-rw-r--r--src/libutil/fstring.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/fstring.h b/src/libutil/fstring.h
index e83c44a1c..e5d34e022 100644
--- a/src/libutil/fstring.h
+++ b/src/libutil/fstring.h
@@ -30,6 +30,9 @@ typedef struct f_str_s {
gchar str[];
} rspamd_fstring_t;
+#define RSPAMD_FSTRING_DATA(s) ((s)->str)
+#define RSPAMD_FSTRING_LEN(s) ((s)->len)
+
typedef struct f_str_tok {
gsize len;
const gchar *begin;