]> pd.if.org Git - zpackage/commitdiff
add define for local db default path
authorNathan Wagner <nw@hydaspes.if.org>
Fri, 21 Sep 2018 07:08:31 +0000 (07:08 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Mon, 24 Sep 2018 10:40:18 +0000 (10:40 +0000)
zpm.h

diff --git a/zpm.h b/zpm.h
index 43c6687a1208af219dd6dcc0f75715c8000675e4..6b8b469c544b4398dc52f61a0e9772ddd4057462 100644 (file)
--- a/zpm.h
+++ b/zpm.h
@@ -16,6 +16,8 @@
 #define ZPM_PATH_MAX 256
 #endif
 
+#define ZPM_LOCAL_DB "/var/lib/zpm/local.db"
+
 #define ZPM_PACKAGE_NAME_MAX 191
 #define ZPM_PACKAGE_VERSION_MAX 58
 #define ZPM_PACKAGE_RELEASE_MAX 4
@@ -174,5 +176,6 @@ void *data, char **errmsg);
 int zpm_script_hash(struct zpm *zpm, char *pkgstr, char *phase, char *hash);
 
 sqlite3_stmt *zpm_dbquery(struct zpm *zpm, char *query, ...);
+struct zpm *zpm_clearmem(struct zpm *zpm);
 
 #endif