dpkg 1.21.11
Enumerations | Functions
fields.c File Reference

(f79182cef)

#include <config.h>
#include <compat.h>
#include <string.h>
#include <stdio.h>
#include <dpkg/i18n.h>
#include <dpkg/c-ctype.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/arch.h>
#include <dpkg/path.h>
#include <dpkg/parsedump.h>
#include <dpkg/pkg-spec.h>
#include <dpkg/triglib.h>
Include dependency graph for fields.c:

Enumerations

enum  parse_nv_flags { PARSE_NV_LAST = 0 , PARSE_NV_NEXT = DPKG_BIT(0) , PARSE_NV_FALLBACK = DPKG_BIT(1) }
 Flags to parse a name associated to a value. More...
 

Functions

void f_name (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_archives (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_charfield (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_boolean (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_multiarch (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_architecture (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_section (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_priority (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_obs_class (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_status (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_version (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_obs_revision (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_configversion (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_conffiles (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_dependency (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_obs_dependency (struct pkginfo *pkg, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_trigpend (struct pkginfo *pend, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 
void f_trigaw (struct pkginfo *aw, struct pkgbin *pkgbin, struct parsedb_state *ps, const char *value, const struct fieldinfo *fip)
 

Enumeration Type Documentation

◆ parse_nv_flags

Flags to parse a name associated to a value.

Enumerator
PARSE_NV_LAST 

Expect no more words (default).

PARSE_NV_NEXT 

Expect another word after the parsed name.

PARSE_NV_FALLBACK 

Do not fail if there is no name with an associated value found.

Function Documentation

◆ f_architecture()

void f_architecture ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References _, pkgbin::arch, dpkg_arch_find(), DPKG_ARCH_ILLEGAL, dpkg_arch_name_is_illegal(), fieldinfo::name, parse_warn(), and dpkg_arch::type.

Here is the call graph for this function:

◆ f_archives()

void f_archives ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References _, pkginfo::archives, parsedb_state::flags, fieldinfo::name, nfstrsave(), parse_error(), and pdb_recordavailable.

Here is the call graph for this function:

◆ f_boolean()

void f_boolean ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

◆ f_charfield()

void f_charfield ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References fieldinfo::integer, nfstrsave(), and STRUCTFIELD.

Here is the call graph for this function:

◆ f_conffiles()

void f_conffiles ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References _, pkgbin::conffiles, fieldinfo::name, conffile::obsolete, parse_error(), and conffile::remove_on_upgrade.

Here is the call graph for this function:

◆ f_configversion()

void f_configversion ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References _, pkginfo::configversion, parsedb_state::flags, fieldinfo::name, parse_db_version(), parse_error(), parse_problem(), pdb_recordavailable, and pdb_rejectstatus.

Here is the call graph for this function:

◆ f_dependency()

void f_dependency ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

Referenced by f_obs_dependency().

Here is the caller graph for this function:

◆ f_multiarch()

void f_multiarch ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

◆ f_name()

void f_name ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References _, pkgset::name, fieldinfo::name, parse_error(), pkg_hash_find_set(), pkg_name_is_illegal(), pkginfo::set, and namevalue::value.

Here is the call graph for this function:

◆ f_obs_class()

void f_obs_class ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References _, f_priority(), fieldinfo::name, and parse_warn().

Here is the call graph for this function:

◆ f_obs_dependency()

void f_obs_dependency ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References _, f_dependency(), fieldinfo::name, and parse_warn().

Here is the call graph for this function:

◆ f_obs_revision()

void f_obs_revision ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References _, fieldinfo::name, and parse_warn().

Here is the call graph for this function:

◆ f_priority()

void f_priority ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

Referenced by f_obs_class().

Here is the caller graph for this function:

◆ f_section()

void f_section ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References nfstrsave(), and pkginfo::section.

Here is the call graph for this function:

◆ f_status()

void f_status ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References _, parsedb_state::flags, fieldinfo::name, parse_error(), pdb_recordavailable, pdb_rejectstatus, and pkginfo::want.

Here is the call graph for this function:

◆ f_trigaw()

void f_trigaw ( struct pkginfo aw,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References _, parsedb_state::flags, fieldinfo::name, parse_error(), and pdb_rejectstatus.

Here is the call graph for this function:

◆ f_trigpend()

void f_trigpend ( struct pkginfo pend,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References _, parsedb_state::flags, fieldinfo::name, parse_error(), and pdb_rejectstatus.

Here is the call graph for this function:

◆ f_version()

void f_version ( struct pkginfo pkg,
struct pkgbin pkgbin,
struct parsedb_state ps,
const char *  value,
const struct fieldinfo fip 
)

References _, fieldinfo::name, parse_db_version(), parse_problem(), and pkgbin::version.

Here is the call graph for this function: