dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
pkg-hash.c File Reference

(72c00cf6d)

#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.
 
struct pkginfopkg_hash_get_singleton (struct pkgset *set)
 Return the singleton package instance from a package set.
 
struct pkginfopkg_hash_find_singleton (const char *name)
 Return the singleton package instance with the given name.
 
struct pkginfopkg_hash_get_pkg (struct pkgset *set, const struct dpkg_arch *arch)
 Return the package instance in a set with the given architecture.
 
struct pkginfopkg_hash_find_pkg (const char *name, const struct dpkg_arch *arch)
 Return the package instance with the given name and architecture.
 
int pkg_hash_count_set (void)
 Return the number of package sets available in the database.
 
int pkg_hash_count_pkg (void)
 Return the number of package instances available in the database.
 
struct pkg_hash_iterpkg_hash_iter_new (void)
 Create a new package iterator.
 
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