dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Enumerations | Functions
fields.c File Reference

(17456a341)

#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_mode { PARSE_NV_LAST = 0 , PARSE_NV_NEXT = 1 , PARSE_NV_FALLBACK = 2 }
 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_mode

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::integer, archivedetails::md5sum, archivedetails::msdosname, archivedetails::name, fieldinfo::name, archivedetails::next, nfmalloc(), nfstrsave(), parse_error(), pdb_recordavailable, archivedetails::size, and STRUCTFIELD.

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 
)

References _, booleaninfos, dpkg_has_error(), parsedb_state::err, fieldinfo::integer, fieldinfo::name, parse_error(), PARSE_NV_LAST, dpkg_error::str, and STRUCTFIELD.

Here is the call graph for this function:

◆ 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 _, CONFFILE_NONE, CONFFILE_OBSOLETE, CONFFILE_REMOVE_ON_UPGRADE, pkgbin::conffiles, conffile::flags, conffile::hash, conffile::name, fieldinfo::name, conffile::next, nfmalloc(), parse_error(), and path_skip_slash_dotslash().

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 
)

◆ f_multiarch()

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

References _, dpkg_has_error(), parsedb_state::err, fieldinfo::integer, multiarchinfos, fieldinfo::name, parse_error(), PARSE_NV_LAST, dpkg_error::str, and STRUCTFIELD.

Here is the call graph for this function:

◆ 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, nfmalloc(), nfstrsave(), parse_warn(), dpkg_version::revision, pkgbin::version, and dpkg_version::version.

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 
)

References _, dpkg_has_error(), parsedb_state::err, fieldinfo::name, nfstrsave(), pkginfo::otherpriority, parse_error(), PARSE_NV_FALLBACK, PKG_PRIO_OTHER, pkginfo::priority, priorityinfos, and dpkg_error::str.

Here is the call 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 _, dpkg_has_error(), pkginfo::eflag, eflaginfos, parsedb_state::err, parsedb_state::flags, fieldinfo::name, parse_error(), PARSE_NV_LAST, PARSE_NV_NEXT, pdb_recordavailable, pdb_rejectstatus, pkginfo::status, statusinfos, dpkg_error::str, pkginfo::want, and wantinfos.

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(), pdb_rejectstatus, pkg_spec_parse_pkg(), dpkg_error::str, trig_awaited_pend_enqueue(), trig_note_aw(), and dpkg_error::type.

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, nfstrsave(), parse_error(), pdb_rejectstatus, trig_name_is_illegal(), and trig_note_pend_core().

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: