summaryrefslogtreecommitdiffstats
path: root/expac.h
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-11-16 17:33:21 -0500
committerDave Reisner <dreisner@archlinux.org>2014-11-16 17:33:36 -0500
commite54969e6ad8f6fe23c2703ef100e9dbeb050b1fe (patch)
treee74598965823bbe7a70e7a49810ae0c86383e0ea /expac.h
parentc16a1cea13c70e9c40a8db82d561e71bd04f404f (diff)
downloadexpac-e54969e6ad8f6fe23c2703ef100e9dbeb050b1fe.tar.xz
condense some globals, more tidying up
Diffstat (limited to 'expac.h')
-rw-r--r--expac.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/expac.h b/expac.h
index 29536b2..d3ba546 100644
--- a/expac.h
+++ b/expac.h
@@ -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);