diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-10-20 08:26:55 +0200 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-10-20 08:26:55 +0200 |
commit | 7131b7ac87b9793c06d7b7e59df103658dd76ec7 (patch) | |
tree | d20bcf43f1d93118577c50977ce34cc6340460e1 /lib/libalpm/db.h | |
parent | e7f886aac3991b6a12ede9781af741b402dffb64 (diff) | |
download | pacman-7131b7ac87b9793c06d7b7e59df103658dd76ec7.tar.gz pacman-7131b7ac87b9793c06d7b7e59df103658dd76ec7.tar.xz |
A handful of minor changes:
* Removed the PMList typedef, in favor of the same naming scheme other
structs use 'pmlist_t'
* Added a time stamp on debug output, to make it more informational
* Moved alpm_db_register to _alpm_db_register, making the public function
not take a callback parameter
Diffstat (limited to 'lib/libalpm/db.h')
-rw-r--r-- | lib/libalpm/db.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h index a374e096..571bf2ee 100644 --- a/lib/libalpm/db.h +++ b/lib/libalpm/db.h @@ -25,6 +25,7 @@ #include <limits.h> #include "package.h" +#include "alpm.h" /* Database entries */ #define INFRQ_NONE 0x00 @@ -41,15 +42,15 @@ typedef struct __pmdb_t { char *path; char treename[PATH_MAX]; void *handle; - PMList *pkgcache; - PMList *grpcache; - PMList *servers; + pmlist_t *pkgcache; + pmlist_t *grpcache; + pmlist_t *servers; } pmdb_t; 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 *_alpm_db_search(pmdb_t *db, PMList *needles); +pmlist_t *_alpm_db_search(pmdb_t *db, pmlist_t *needles); /* Prototypes for backends functions */ int _alpm_db_open(pmdb_t *db); void _alpm_db_close(pmdb_t *db); @@ -60,6 +61,7 @@ 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 */ |