aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libmbpk.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/libmbpk.h b/include/libmbpk.h
index e97c789..319e464 100644
--- a/include/libmbpk.h
+++ b/include/libmbpk.h
@@ -1,7 +1,13 @@
#ifndef LIBMBPK_H
#define LIBMBPK_H
-typedef struct mbpk_pkg {
+#define MBPK_OK 0
+#define MBPK_DB_FAIL 1
+#define MBPK_REPO_FAIL 2
+
+typedef struct mbpk_pkg mbpk_pkg;
+
+struct mbpk_pkg {
const char *pkgname;
const char *version;
const char *desc;
@@ -9,7 +15,7 @@ typedef struct mbpk_pkg {
mbpk_pkg **deps;
const char *maintainer;
const char *license;
-} mbpk_pkg;
+};
int mbpk_init(void);
int mbpk_search(const char *package_name, mbpk_pkg ***pkgs);