mail-search-register.h revision 5c2d695acf9f95ae0dcdda89c4d2391ceda4d672
#ifndef MAIL_SEARCH_REGISTER_H
#define MAIL_SEARCH_REGISTER_H
struct mail_search_arg;
struct mail_search_build_context;
struct mail_search_register_arg {
const char *key;
/* returns parsed arg or NULL if error. error message is set to ctx. */
struct mail_search_arg *
};
extern struct mail_search_register *mail_search_register_imap;
extern struct mail_search_register *mail_search_register_human;
typedef struct mail_search_arg *
const char *key);
struct mail_search_register *mail_search_register_init(void);
const struct mail_search_register_arg *arg,
unsigned int count);
/* Register a fallback handler. It's responsible for giving also the
"unknown key" error. */
/* Return all registered args sorted. */
const struct mail_search_register_arg *
unsigned int *count_r);
/* Find key's registered arg, or NULL if not found. */
const struct mail_search_register_arg *
/* Get registered fallback arg. Returns FALSE if fallback hasn't been
registered. */
struct mail_search_register *mail_search_register_init_imap(void);
struct mail_search_register *
#endif