summaryrefslogtreecommitdiffstats
path: root/expac.h
diff options
context:
space:
mode:
Diffstat (limited to 'expac.h')
-rw-r--r--expac.h23
1 files changed, 23 insertions, 0 deletions
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 <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: */