diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-11-16 16:51:30 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-11-16 16:54:30 -0500 |
commit | c16a1cea13c70e9c40a8db82d561e71bd04f404f (patch) | |
tree | 1adf263ea9a8b1d7b2f84d0e858571a4888606f2 /expac.h | |
parent | 13145a3957ac029fc5e3f538f676c0075255822d (diff) | |
download | expac-c16a1cea13c70e9c40a8db82d561e71bd04f404f.tar.xz |
Reorg a bit, introduce a control struct
Diffstat (limited to 'expac.h')
-rw-r--r-- | expac.h | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -0,0 +1,23 @@ +#ifndef _EXPAC_H +#define _EXPAC_H + +#include <alpm.h> + +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: */ |