summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-01-14 19:48:30 +0200
committerTimo Teras <timo.teras@iki.fi>2009-01-14 19:48:30 +0200
commit2cfde12c8933c166feda81e52d6c091d2c7c5748 (patch)
tree3b302be3033c567f6e275131cc628720699c7e08 /src/apk_database.h
parent15b547c55b2045e68f9f48f7d929d47b300dc3a9 (diff)
downloadapk-tools-2cfde12c8933c166feda81e52d6c091d2c7c5748.tar.gz
apk-tools-2cfde12c8933c166feda81e52d6c091d2c7c5748.tar.bz2
apk-tools-2cfde12c8933c166feda81e52d6c091d2c7c5748.tar.xz
apk-tools-2cfde12c8933c166feda81e52d6c091d2c7c5748.zip
audit: new command to check changed files
Currently only implement --backup to get list of (config) files in protected directories to backup. This also fixes a database corruption bug in database.c.
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 14df1a2..0bbca9a 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -95,7 +95,11 @@ typedef union apk_database_or_void {
struct apk_name *apk_db_get_name(struct apk_database *db, apk_blob_t name);
struct apk_name *apk_db_query_name(struct apk_database *db, apk_blob_t name);
-void apk_name_free(struct apk_name *pkgname);
+struct apk_db_dir *apk_db_dir_query(struct apk_database *db,
+ apk_blob_t name);
+struct apk_db_file *apk_db_file_query(struct apk_database *db,
+ apk_blob_t dir,
+ apk_blob_t name);
int apk_db_create(const char *root);
int apk_db_open(struct apk_database *db, const char *root);