#ifndef NOTMUCH_OPTS_H #define NOTMUCH_OPTS_H #include "notmuch.h" enum notmuch_opt_type { NOTMUCH_OPT_NULL = 0, NOTMUCH_OPT_NO_ARG, NOTMUCH_OPT_KEYWORD }; typedef struct notmuch_keyword { const char *name; int keyword_id; } notmuch_keyword_t; typedef struct notmuch_opt_desc { const char *name; int arg_id; enum notmuch_opt_type opt_type; struct notmuch_keyword *keywords; } notmuch_opt_desc_t; typedef struct notmuch_opt { int arg_id; int keyword_id; const char *string; } notmuch_opt_t; notmuch_bool_t parse_argument (const char* name, const char *arg, const notmuch_opt_desc_t *options, notmuch_opt_t *result); #endif