summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2008-04-21 16:30:10 +0000
committerTimo Teras <timo.teras@iki.fi>2008-04-21 16:30:10 +0000
commit823283edca0d8403742999917a4ff0698ad641cb (patch)
treec023160837e616ca5ff5e85cc754cd3e17bd1d2e /src/apk_database.h
parent951602e551bc56b433f7c6d908998b6289890b09 (diff)
downloadapk-tools-823283edca0d8403742999917a4ff0698ad641cb.tar.gz
apk-tools-823283edca0d8403742999917a4ff0698ad641cb.tar.bz2
apk-tools-823283edca0d8403742999917a4ff0698ad641cb.tar.xz
apk-tools-823283edca0d8403742999917a4ff0698ad641cb.zip
Argument parsing. Some other stuff too.
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 96ff361..fcb9c54 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -52,6 +52,7 @@ struct apk_repository {
struct apk_database {
char *root;
+ int root_fd;
unsigned pkg_id, num_repos;
struct apk_dependency_array *world;
@@ -76,10 +77,9 @@ struct apk_database {
struct apk_name *apk_db_get_name(struct apk_database *db, const char *name);
void apk_name_free(struct apk_name *pkgname);
-void apk_db_init(struct apk_database *db, const char *root);
-void apk_db_free(struct apk_database *db);
-int apk_db_read_config(struct apk_database *db);
-int apk_db_write_config(struct apk_database *db);
+int apk_db_create(const char *root);
+int apk_db_open(struct apk_database *db, const char *root);
+void apk_db_close(struct apk_database *db);
int apk_db_pkg_add_file(struct apk_database *db, const char *file);
struct apk_package *apk_db_get_pkg(struct apk_database *db, csum_t sum);