From c16a1cea13c70e9c40a8db82d561e71bd04f404f Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 16 Nov 2014 16:51:30 -0500 Subject: Reorg a bit, introduce a control struct --- expac.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 expac.h (limited to 'expac.h') diff --git a/expac.h b/expac.h new file mode 100644 index 0000000..29536b2 --- /dev/null +++ b/expac.h @@ -0,0 +1,23 @@ +#ifndef _EXPAC_H +#define _EXPAC_H + +#include + +typedef enum SearchCorpus { + SEARCH_LOCAL, + SEARCH_SYNC, + SEARCH_FILE, +} SearchCorpus; + +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); + +#endif /* _EXPAC_H */ + +/* vim: set et ts=2 sw=2: */ -- cgit v1.2.3-54-g00ecf