summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.h
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-12-22 20:38:55 +0100
committerAaron Griffin <aaron@archlinux.org>2006-12-22 20:38:55 +0100
commite3aace4a4d821d388a40545d6497069a973636d8 (patch)
treea5043edfd56135b43162587c34669515ed3ba613 /lib/libalpm/db.h
parentd8d82215561305cb7af0a33d7810cbb9cadb2cea (diff)
downloadpacman-e3aace4a4d821d388a40545d6497069a973636d8.tar.gz
pacman-e3aace4a4d821d388a40545d6497069a973636d8.tar.xz
Cleanup from Dan McGee <dpmcgee@gmail.com> and Jürgen Hötzel <juergen@hoetzel.info>
* configure swig check * misc libalpm cleanup
Diffstat (limited to 'lib/libalpm/db.h')
-rw-r--r--lib/libalpm/db.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h
index d894c213..9224d69a 100644
--- a/lib/libalpm/db.h
+++ b/lib/libalpm/db.h
@@ -43,11 +43,14 @@ struct __pmdb_t {
pmlist_t *grpcache;
pmlist_t *servers;
};
-
+/* db.c, database general calls */
pmdb_t *_alpm_db_new(char *root, char *dbpath, char *treename);
void _alpm_db_free(void *data);
int _alpm_db_cmp(const void *db1, const void *db2);
pmlist_t *_alpm_db_search(pmdb_t *db, pmlist_t *needles);
+pmdb_t *_alpm_db_register(char *treename, alpm_cb_db_register callback);
+
+/* be.c, backend specific calls */
int _alpm_db_install(pmdb_t *db, const char *dbfile);
int _alpm_db_open(pmdb_t *db);
void _alpm_db_close(pmdb_t *db);
@@ -58,7 +61,6 @@ int _alpm_db_write(pmdb_t *db, pmpkg_t *info, unsigned int inforeq);
int _alpm_db_remove(pmdb_t *db, pmpkg_t *info);
int _alpm_db_getlastupdate(pmdb_t *db, char *ts);
int _alpm_db_setlastupdate(pmdb_t *db, char *ts);
-pmdb_t *_alpm_db_register(char *treename, alpm_cb_db_register callback);
#endif /* _ALPM_DB_H */