dpkg 1.22.7-3-g89f48
|
Functions | |
int | pkg_sorter_by_nonambig_name_arch (const void *a, const void *b) |
Compare a package to be sorted by non-ambiguous name and architecture. | |
const char * | pkgbin_synopsis (const struct pkginfo *pkg, const struct pkgbin *pkgbin, int *len_ret) |
Return a string representation of the package synopsis. | |
const char * | pkg_synopsis (const struct pkginfo *pkg, int *len_ret) |
Return a string representation of the package synopsis. | |
int | pkg_abbrev_want (const struct pkginfo *pkg) |
Return a character abbreviated representation of the package want status. | |
int | pkg_abbrev_status (const struct pkginfo *pkg) |
Return a character abbreviated representation of the package current status. | |
int | pkg_abbrev_eflag (const struct pkginfo *pkg) |
Return a character abbreviated representation of the package eflag status. | |
int pkg_abbrev_eflag | ( | const struct pkginfo * | pkg | ) |
Return a character abbreviated representation of the package eflag status.
pkg | The package to consider. |
References pkginfo::eflag.
int pkg_abbrev_status | ( | const struct pkginfo * | pkg | ) |
Return a character abbreviated representation of the package current status.
pkg | The package to consider. |
References pkginfo::status.
int pkg_abbrev_want | ( | const struct pkginfo * | pkg | ) |
Return a character abbreviated representation of the package want status.
pkg | The package to consider. |
References pkginfo::want.
int pkg_sorter_by_nonambig_name_arch | ( | const void * | a, |
const void * | b | ||
) |
Compare a package to be sorted by non-ambiguous name and architecture.
a | A pointer of a pointer to a struct pkginfo. |
b | A pointer of a pointer to a struct pkginfo. |
-1 | a is earlier than b. |
0 | a is equal to b. |
1 | a is later than b. |
References pkgbin::arch, pkginfo::installed, dpkg_arch::name, pkgset::name, pnaw_nonambig, and pkginfo::set.
Referenced by audit(), getselections(), and writedb_stanzas().
const char * pkg_synopsis | ( | const struct pkginfo * | pkg, |
int * | len | ||
) |
Return a string representation of the package synopsis.
The returned string must not be freed, and it's permanently allocated so can be used as long as the non-freeing memory pool has not been freed.
It will try to use the installed version, otherwise it will fallback to use the available version.
The package synopsis is the short description, but it is not NUL terminated, so the output len argument should be used to limit the string length.
pkg | The package to consider. | |
[out] | len | The length of the synopsis string within the description. |
References _, pkginfo::available, pkgbin::description, and pkginfo::installed.
const char * pkgbin_synopsis | ( | const struct pkginfo * | pkg, |
const struct pkgbin * | pkgbin, | ||
int * | len | ||
) |
Return a string representation of the package synopsis.
The returned string must not be freed, and it's permanently allocated so can be used as long as the non-freeing memory pool has not been freed.
The package synopsis is the short description, but it is not NUL terminated, so the output len argument should be used to limit the string length.
pkg | The package to consider. | |
pkgbin | The binary package instance to consider. | |
[out] | len | The length of the synopsis string within the description. |
References _, and pkgbin::description.