dpkg 1.21.11
|
#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>
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) |
enum parse_nv_flags |
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.
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.
void f_boolean | ( | 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 | ||
) |
References fieldinfo::integer, nfstrsave(), and STRUCTFIELD.
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.
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.
void f_dependency | ( | 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_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.
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().
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().
void f_obs_revision | ( | 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_section | ( | 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 | ||
) |
References _, parsedb_state::flags, fieldinfo::name, parse_error(), pdb_recordavailable, pdb_rejectstatus, and pkginfo::want.
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.
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.
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.