dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
Package specifiers
Collaboration diagram for Package specifiers:

Data Structures

struct  pkg_spec
 

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 pkginfopkg_spec_parse_pkg (const char *str, struct dpkg_error *err)
 
struct pkginfopkg_spec_find_pkg (const char *pkgname, const char *archname, struct dpkg_error *err)
 
void pkg_spec_iter_init (struct pkg_spec *ps)
 
struct pkginfopkg_spec_iter_next_pkg (struct pkg_spec *ps)
 
void pkg_spec_iter_destroy (struct pkg_spec *ps)
 

Variables

enum DPKG_ATTR_ENUM_FLAGS pkg_spec_flags
 

Detailed Description

Function Documentation

◆ pkg_spec_destroy()

void pkg_spec_destroy ( struct pkg_spec ps)

References pkg_spec::name, and pkg_spec_iter_destroy().

Referenced by getselections(), pkg_spec_find_pkg(), and pkg_spec_parse_pkg().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pkg_spec_find_pkg()

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_destroy(), pkg_spec_init(), and pkg_spec_set().

Here is the call graph for this function:

◆ pkg_spec_init()

void pkg_spec_init ( struct pkg_spec ps,
enum pkg_spec_flags  flags 
)

References pkg_spec::flags.

Referenced by getselections(), pkg_spec_find_pkg(), and pkg_spec_parse_pkg().

Here is the caller graph for this function:

◆ pkg_spec_is_illegal()

const char * pkg_spec_is_illegal ( struct pkg_spec ps)

◆ pkg_spec_iter_destroy()

void pkg_spec_iter_destroy ( struct pkg_spec ps)

References pkg_hash_iter_free(), and pkg_spec::pkg_iter.

Referenced by pkg_spec_destroy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pkg_spec_iter_init()

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.

Here is the call graph for this function:

◆ pkg_spec_iter_next_pkg()

struct pkginfo * pkg_spec_iter_next_pkg ( struct pkg_spec ps)

◆ pkg_spec_match_pkg()

bool pkg_spec_match_pkg ( struct pkg_spec ps,
struct pkginfo pkg,
struct pkgbin pkgbin 
)

References pkgbin::arch, pkgset::name, pkgset::pkg, and pkginfo::set.

Referenced by getselections().

Here is the caller graph for this function:

◆ pkg_spec_parse()

const char * pkg_spec_parse ( struct pkg_spec ps,
const char *  str 
)

References m_strdup(), and m_strndup().

Referenced by getselections(), and pkg_spec_parse_pkg().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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_destroy(), pkg_spec_init(), and pkg_spec_parse().

Referenced by dpkg_options_parse_pkgname(), f_trigaw(), setselections(), and trig_file_interests_ensure().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pkg_spec_set()

const char * pkg_spec_set ( struct pkg_spec ps,
const char *  pkgname,
const char *  archname 
)

References m_strdup().

Referenced by pkg_spec_find_pkg().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ pkg_spec_flags

enum DPKG_ATTR_ENUM_FLAGS pkg_spec_flags