dpkg 1.21.11
Data Structures | Enumerations | Functions
pkg-spec.h File Reference

(31eb54491)

#include <stdbool.h>
#include <dpkg/macros.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/error.h>
#include <dpkg/arch.h>
Include dependency graph for pkg-spec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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)