diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-01-14 19:48:30 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-01-14 19:48:30 +0200 |
commit | 2cfde12c8933c166feda81e52d6c091d2c7c5748 (patch) | |
tree | 3b302be3033c567f6e275131cc628720699c7e08 /src/apk_database.h | |
parent | 15b547c55b2045e68f9f48f7d929d47b300dc3a9 (diff) | |
download | apk-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.h | 6 |
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); |