31#include <archive_entry.h>
46 const char *(*get_base) (alpm_pkg_t *);
47 const char *(*get_desc) (alpm_pkg_t *);
48 const char *(*get_url) (alpm_pkg_t *);
51 const char *(*get_packager) (alpm_pkg_t *);
52 const char *(*get_arch) (alpm_pkg_t *);
72 void *(*changelog_open) (alpm_pkg_t *);
76 struct archive *(*mtree_open) (alpm_pkg_t *);
77 int (*
mtree_next) (
const alpm_pkg_t *,
struct archive *,
struct archive_entry **);
91 unsigned long name_hash;
111 alpm_handle_t *handle;
151alpm_pkg_t *_alpm_pkg_new(
void);
152int _alpm_pkg_dup(alpm_pkg_t *pkg, alpm_pkg_t **new_ptr);
153void _alpm_pkg_free(alpm_pkg_t *pkg);
154void _alpm_pkg_free_trans(alpm_pkg_t *pkg);
156int _alpm_pkg_validate_internal(alpm_handle_t *handle,
157 const char *pkgfile, alpm_pkg_t *syncpkg,
int level,
159alpm_pkg_t *_alpm_pkg_load_internal(alpm_handle_t *handle,
160 const char *pkgfile,
int full);
162int _alpm_pkg_cmp(
const void *p1,
const void *p2);
163int _alpm_pkg_compare_versions(alpm_pkg_t *local_pkg, alpm_pkg_t *pkg);
168int _alpm_pkg_check_meta(alpm_pkg_t *pkg);
File in a package.
Definition alpm.h:134
Package filelist container.
Definition alpm.h:144
A doubly linked list.
Definition alpm_list.h:51
int64_t alpm_time_t
The time type used by libalpm.
Definition alpm.h:126
alpm_pkgreason_t
Package install reasons.
Definition alpm.h:2328
alpm_pkgfrom_t
Location a package object was loaded from.
Definition alpm.h:2338
Signature list.
Definition alpm.h:480
The extended data type used to store non-standard package data fields.
Definition alpm.h:119
int(* has_scriptlet)(alpm_pkg_t *)
Definition package.h:56
int(* force_load)(alpm_pkg_t *)
Definition package.h:80
int(* get_validation)(alpm_pkg_t *)
Definition package.h:55
int(* mtree_close)(const alpm_pkg_t *, struct archive *)
Definition package.h:78
off_t(* get_isize)(alpm_pkg_t *)
Definition package.h:53
int(* changelog_close)(const alpm_pkg_t *, void *)
Definition package.h:74
const struct pkg_operations default_pkg_ops
The standard package operations struct.
Definition package.c:143
alpm_pkgreason_t(* get_reason)(alpm_pkg_t *)
Definition package.h:54
alpm_time_t(* get_installdate)(alpm_pkg_t *)
Definition package.h:50
int(* mtree_next)(const alpm_pkg_t *, struct archive *, struct archive_entry **)
Definition package.h:77
alpm_time_t(* get_builddate)(alpm_pkg_t *)
Definition package.h:49
size_t(* changelog_read)(void *, size_t, const alpm_pkg_t *, void *)
Definition package.h:73
Package operations struct.
Definition package.h:45
alpm_loglevel_t level
Definition sandbox.h:40