27#include <archive_entry.h>
34typedef enum _alpm_dbinfrq_t {
47enum _alpm_dbstatus_t {
66 alpm_handle_t *handle;
70 alpm_pkghash_t *pkgcache;
87alpm_db_t *_alpm_db_new(
const char *treename,
int is_local);
88void _alpm_db_free(alpm_db_t *db);
89const char *_alpm_db_path(alpm_db_t *db);
90int _alpm_db_cmp(
const void *d1,
const void *d2);
91int _alpm_db_search(alpm_db_t *db,
const alpm_list_t *needles,
93alpm_db_t *_alpm_db_register_local(alpm_handle_t *handle);
94alpm_db_t *_alpm_db_register_sync(alpm_handle_t *handle,
const char *treename,
96void _alpm_db_unregister(alpm_db_t *db);
99int _alpm_local_db_prepare(alpm_db_t *db, alpm_pkg_t *info);
100int _alpm_local_db_write(alpm_db_t *db, alpm_pkg_t *info,
int inforeq);
101int _alpm_local_db_remove(alpm_db_t *db, alpm_pkg_t *info);
102char *_alpm_local_db_pkgpath(alpm_db_t *db, alpm_pkg_t *info,
const char *filename);
106void _alpm_db_free_pkgcache(alpm_db_t *db);
107int _alpm_db_add_pkgincache(alpm_db_t *db, alpm_pkg_t *pkg);
108int _alpm_db_remove_pkgfromcache(alpm_db_t *db, alpm_pkg_t *pkg);
109alpm_pkghash_t *_alpm_db_get_pkgcache_hash(alpm_db_t *db);
111alpm_pkg_t *_alpm_db_get_pkgfromcache(alpm_db_t *db,
const char *target);
113alpm_list_t *_alpm_db_get_groupcache(alpm_db_t *db);
114alpm_group_t *_alpm_db_get_groupfromcache(alpm_db_t *db,
const char *target);
@ DB_STATUS_VALID
Definition db.h:48
int(* populate)(alpm_db_t *)
Definition db.h:60
@ DB_STATUS_LOCAL
Definition db.h:53
@ DB_STATUS_MISSING
Definition db.h:51
@ DB_STATUS_INVALID
Definition db.h:49
int(* validate)(alpm_db_t *)
Definition db.h:59
@ DB_STATUS_PKGCACHE
Definition db.h:54
alpm_dbinfrq_t
Definition db.h:34
@ INFRQ_SCRIPTLET
Definition db.h:38
@ INFRQ_BASE
Definition db.h:35
@ INFRQ_FILES
Definition db.h:37
@ INFRQ_ERROR
Definition db.h:43
@ INFRQ_DSIZE
Definition db.h:39
@ INFRQ_ALL
Definition db.h:41
@ INFRQ_DESC
Definition db.h:36
@ DB_STATUS_EXISTS
Definition db.h:50
void(* unregister)(alpm_db_t *)
Definition db.h:61
@ DB_STATUS_GRPCACHE
Definition db.h:55
Package group.
Definition alpm.h:179
A doubly linked list.
Definition alpm_list.h:51
alpm_loglevel_t level
Definition sandbox.h:40