diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-11-16 17:33:21 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-11-16 17:33:36 -0500 |
commit | e54969e6ad8f6fe23c2703ef100e9dbeb050b1fe (patch) | |
tree | e74598965823bbe7a70e7a49810ae0c86383e0ea /expac.h | |
parent | c16a1cea13c70e9c40a8db82d561e71bd04f404f (diff) | |
download | expac-e54969e6ad8f6fe23c2703ef100e9dbeb050b1fe.tar.xz |
condense some globals, more tidying up
Diffstat (limited to 'expac.h')
-rw-r--r-- | expac.h | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -3,17 +3,22 @@ #include <alpm.h> -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); |