dpkg 1.21.11
Functions
db-ctrl-format.c File Reference

(6cad120a9)

#include <config.h>
#include <compat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/varbuf.h>
#include <dpkg/db-ctrl.h>
Include dependency graph for db-ctrl-format.c:

Functions

enum pkg_infodb_format pkg_infodb_get_format (void)
 
void pkg_infodb_set_format (enum pkg_infodb_format version)
 
bool pkg_infodb_is_upgrading (void)
 
const char * pkg_infodb_get_dir (void)
 
const char * pkg_infodb_get_file (const struct pkginfo *pkg, const struct pkgbin *pkgbin, const char *filetype)
 
const char * pkg_infodb_reset_dir (void)
 

Function Documentation

◆ pkg_infodb_get_dir()

const char * pkg_infodb_get_dir ( void  )

Referenced by pkg_infodb_get_file(), write_filehash_except(), and write_filelist_except().

Here is the caller graph for this function:

◆ pkg_infodb_get_file()

const char * pkg_infodb_get_file ( const struct pkginfo pkg,
const struct pkgbin pkgbin,
const char *  filetype 
)

References pkgbin::arch, varbuf::buf, pkgbin::multiarch, pkgset::name, PKG_INFODB_FORMAT_MULTIARCH, pkg_infodb_get_dir(), pkg_infodb_get_format(), PKG_MULTIARCH_SAME, pkginfo::set, varbuf_add_archqual(), varbuf_add_char(), varbuf_add_dir(), varbuf_add_str, varbuf_end_str(), and varbuf_reset().

Referenced by maintscript_fallback(), parse_filehash(), pkg_infodb_has_file(), trig_activate_packageprocessing(), write_filehash_except(), and write_filelist_except().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pkg_infodb_get_format()

enum pkg_infodb_format pkg_infodb_get_format ( void  )

Referenced by pkg_infodb_get_file().

Here is the caller graph for this function:

◆ pkg_infodb_is_upgrading()

bool pkg_infodb_is_upgrading ( void  )

◆ pkg_infodb_reset_dir()

const char * pkg_infodb_reset_dir ( void  )

◆ pkg_infodb_set_format()

void pkg_infodb_set_format ( enum pkg_infodb_format  version)