summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 4628c23..4ede631 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -71,6 +71,9 @@ struct apk_db_dir {
char name[];
};
+#define PKG_FILE_FMT "%s%s%s"
+#define PKG_FILE_PRINTF(dir,file) (dir)->name, (dir)->namelen ? "/" : "", (file)->name
+
struct apk_db_dir_instance {
struct hlist_node pkg_dirs_list;
struct hlist_head owned_files;