xbps/bin/xbps-pkgdb
Juan RP 6010a24de6 libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes.
The funcs xbps_pkg_name() and xbps_pkgpattern_name() were
using malloc(3) to return the result, until now.

They now have been changed to not allocate the result
via malloc, the caller is responsible to provide a buffer
at least of XBPS_NAME_SIZE (64).

If for whatever reason the pkgname can't be guessed,
returns false. This should avoid lots of small allocs
around libxbps.

New functions have the following prototype:

bool xbps_pkg_name(char *dst, size_t len, const char *pkg)
bool xbps_pkgpattern_name(char *dst, size_t len, const char *pkg)

as suggested by @duncaen.
2020-02-08 19:49:57 +01:00
..
check_pkg_alternatives.c xbps-pkgdb/check_pkg_alternatives.c: dead store. 2019-06-18 18:49:29 +02:00
check_pkg_files.c Add noextract configuration option 2020-01-18 15:51:13 +01:00
check_pkg_rundeps.c Added LTO support and fix warnings (maybe-uninitialized). 2019-06-27 18:09:26 +02:00
check_pkg_symlinks.c Add noextract configuration option 2020-01-18 15:51:13 +01:00
check_pkg_unneeded.c Fix namespace violation 2018-09-25 22:11:30 -04:00
check.c libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes. 2020-02-08 19:49:57 +01:00
defs.h xbps-pkgdb: add alternatives check 2019-04-20 11:07:00 +02:00
main.c xbps-*: use xbps_pkgdb_update() correctly. 2019-06-22 18:50:40 +02:00
Makefile xbps-pkgdb: add alternatives check 2019-04-20 11:07:00 +02:00
xbps-pkgdb.1 xbps-pkgdb.1: proper credit. 2019-06-20 11:42:30 +02:00