dpkg 1.21.11
Data Structures | Enumerations | Functions
Package specifiers
Collaboration diagram for Package specifiers:

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 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)
 

Detailed Description

Enumeration Type Documentation

◆ pkg_spec_flags

Enumerator
PKG_SPEC_PATTERNS 

Recognize glob patterns.

PKG_SPEC_ARCH_SINGLE 
PKG_SPEC_ARCH_WILDCARD 
PKG_SPEC_ARCH_MASK 

Function Documentation

◆ pkg_spec_destroy()

void pkg_spec_destroy ( struct pkg_spec ps)

References pkg_spec::name.

◆ 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_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 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.

Here is the call 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 
)

◆ pkg_spec_parse()

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

References m_strdup(), and m_strndup().

Referenced by 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_init(), and pkg_spec_parse().

Referenced by dpkg_options_parse_pkgname().

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 
)

Referenced by pkg_spec_find_pkg().

Here is the caller graph for this function: