dpkg 1.21.11
Data Structures | Macros | Functions
pkg-hash.c File Reference

(bc140c0ec)

#include <config.h>
#include <compat.h>
#include <string.h>
#include <stdlib.h>
#include <dpkg/i18n.h>
#include <dpkg/c-ctype.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/arch.h>
Include dependency graph for pkg-hash.c:

Data Structures

struct  pkg_hash_iter
 

Macros

#define BINS   65521
 

Functions

struct pkgsetpkg_hash_find_set (const char *inname)
 Return the package set with the given name. More...
 
struct pkginfopkg_hash_get_singleton (struct pkgset *set)
 Return the singleton package instance from a package set. More...
 
struct pkginfopkg_hash_find_singleton (const char *name)
 Return the singleton package instance with the given name. More...
 
struct pkginfopkg_hash_get_pkg (struct pkgset *set, const struct dpkg_arch *arch)
 Return the package instance in a set with the given architecture. More...
 
struct pkginfopkg_hash_find_pkg (const char *name, const struct dpkg_arch *arch)
 Return the package instance with the given name and architecture. More...
 
int pkg_hash_count_set (void)
 Return the number of package sets available in the database. More...
 
int pkg_hash_count_pkg (void)
 Return the number of package instances available in the database. More...
 
struct pkg_hash_iterpkg_hash_iter_new (void)
 Create a new package iterator. More...
 
iter The iterator.

Free the package database iterator.

struct pkgsetpkg_hash_iter_next_set (struct pkg_hash_iter *iter)
 
struct pkginfopkg_hash_iter_next_pkg (struct pkg_hash_iter *iter)
 
void pkg_hash_iter_free (struct pkg_hash_iter *iter)
 
void pkg_hash_reset (void)
 
void pkg_hash_report (FILE *file)
 

Macro Definition Documentation

◆ BINS

#define BINS   65521