dpkg 1.21.11
|
Data Structures | |
struct | pkg_spec |
Enumerations | |
enum | pkg_spec_flags { PKG_SPEC_PATTERNS = DPKG_BIT(0) , PKG_SPEC_ARCH_SINGLE = DPKG_BIT(8) , PKG_SPEC_ARCH_WILDCARD = DPKG_BIT(9) , PKG_SPEC_ARCH_MASK = 0xff00 } |
Functions | |
void | pkg_spec_init (struct pkg_spec *ps, enum pkg_spec_flags flags) |
void | pkg_spec_destroy (struct pkg_spec *ps) |
const char * | pkg_spec_is_illegal (struct pkg_spec *ps) |
const char * | pkg_spec_set (struct pkg_spec *ps, const char *pkgname, const char *archname) |
const char * | pkg_spec_parse (struct pkg_spec *ps, const char *str) |
bool | pkg_spec_match_pkg (struct pkg_spec *ps, struct pkginfo *pkg, struct pkgbin *pkgbin) |
struct pkginfo * | pkg_spec_parse_pkg (const char *str, struct dpkg_error *err) |
struct pkginfo * | pkg_spec_find_pkg (const char *pkgname, const char *archname, struct dpkg_error *err) |
void | pkg_spec_iter_init (struct pkg_spec *ps) |
struct pkginfo * | pkg_spec_iter_next_pkg (struct pkg_spec *ps) |
void | pkg_spec_iter_destroy (struct pkg_spec *ps) |
enum pkg_spec_flags |
void pkg_spec_destroy | ( | struct pkg_spec * | ps | ) |
References pkg_spec::name.
struct pkginfo * pkg_spec_find_pkg | ( | const char * | pkgname, |
const char * | archname, | ||
struct dpkg_error * | err | ||
) |
References dpkg_put_error(), PKG_SPEC_ARCH_SINGLE, pkg_spec_init(), and pkg_spec_set().
void pkg_spec_init | ( | struct pkg_spec * | ps, |
enum pkg_spec_flags | flags | ||
) |
References pkg_spec::flags.
Referenced by pkg_spec_find_pkg(), and pkg_spec_parse_pkg().
const char * pkg_spec_is_illegal | ( | struct pkg_spec * | ps | ) |
References _, pkg_spec::arch, pkg_spec::arch_is_pattern, DPKG_ARCH_EMPTY, DPKG_ARCH_ILLEGAL, dpkg_arch_name_is_illegal(), DPKG_ARCH_NONE, pkg_spec::flags, dpkg_arch::name, pkg_spec::name, pkg_spec::name_is_pattern, pkg_hash_find_set(), pkg_name_is_illegal(), PKG_SPEC_ARCH_SINGLE, pkgset_installed_instances(), and dpkg_arch::type.
void pkg_spec_iter_destroy | ( | struct pkg_spec * | ps | ) |
void pkg_spec_iter_init | ( | struct pkg_spec * | ps | ) |
References pkg_spec::name, pkg_spec::name_is_pattern, pkgset::pkg, pkg_hash_find_set(), pkg_hash_iter_new(), pkg_spec::pkg_iter, and pkg_spec::pkg_next.
References pkg_spec::name_is_pattern.
const char * pkg_spec_parse | ( | struct pkg_spec * | ps, |
const char * | str | ||
) |
References m_strdup(), and m_strndup().
Referenced by pkg_spec_parse_pkg().
struct pkginfo * pkg_spec_parse_pkg | ( | const char * | str, |
struct dpkg_error * | err | ||
) |
References dpkg_put_error(), PKG_SPEC_ARCH_SINGLE, pkg_spec_init(), and pkg_spec_parse().
Referenced by dpkg_options_parse_pkgname().
const char * pkg_spec_set | ( | struct pkg_spec * | ps, |
const char * | pkgname, | ||
const char * | archname | ||
) |