From f7548d6d28c313cf80e6f3ef89aed16a19815df1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:51:24 +0200 Subject: Adding upstream version 1:2.3.19.1+dfsg1. Signed-off-by: Daniel Baumann --- src/lib-storage/mail-search-parser-private.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/lib-storage/mail-search-parser-private.h (limited to 'src/lib-storage/mail-search-parser-private.h') diff --git a/src/lib-storage/mail-search-parser-private.h b/src/lib-storage/mail-search-parser-private.h new file mode 100644 index 0000000..1e7af1f --- /dev/null +++ b/src/lib-storage/mail-search-parser-private.h @@ -0,0 +1,22 @@ +#ifndef MAIL_SEARCH_PARSER_PRIVATE_H +#define MAIL_SEARCH_PARSER_PRIVATE_H + +#include "mail-search-parser.h" + +struct mail_search_parser_vfuncs { + int (*parse_key)(struct mail_search_parser *parser, const char **key_r); + int (*parse_string)(struct mail_search_parser *parser, + const char **value_r); + bool (*parse_skip_next)(struct mail_search_parser *parser, + const char *str); +}; + +struct mail_search_parser { + struct mail_search_parser_vfuncs v; + + pool_t pool; + const char *cur_key; + const char *error; +}; + +#endif -- cgit v1.2.3