From e54969e6ad8f6fe23c2703ef100e9dbeb050b1fe Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 16 Nov 2014 17:33:21 -0500 Subject: condense some globals, more tidying up --- expac.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'expac.h') diff --git a/expac.h b/expac.h index 29536b2..d3ba546 100644 --- a/expac.h +++ b/expac.h @@ -3,17 +3,22 @@ #include -typedef enum SearchCorpus { - SEARCH_LOCAL, - SEARCH_SYNC, - SEARCH_FILE, -} SearchCorpus; +typedef enum PackageCorpus { + CORPUS_LOCAL, + CORPUS_SYNC, + CORPUS_FILE, +} PackageCorpus; + +typedef enum SearchWhat { + SEARCH_GROUPS = (1 << 0), + SEARCH_REGEX = (1 << 1), + SEARCH_EXACT = (1 << 2), + _SEARCH_MAX = (1 << 15), +} SearchWhat; typedef struct Expac { alpm_handle_t *alpm; alpm_db_t *db_local; - - SearchCorpus search_type; } Expac; int expac_new(Expac **expac, int argc, char **argv); -- cgit v1.2.3-54-g00ecf