xbps/bin/xbps-rindex
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
..
defs.h Revert "Sign repodata" 2020-01-06 14:31:40 +01:00
index-add.c libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes. 2020-02-08 19:49:57 +01:00
index-clean.c libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes. 2020-02-08 19:49:57 +01:00
main.c Revert "Sign repodata" 2020-01-06 14:31:40 +01:00
Makefile xbps-rindex: fix musl build: needs -lcrypto explicitly. 2014-09-14 20:01:05 +02:00
remove-obsoletes.c Fix namespace violation 2018-09-25 22:11:30 -04:00
repoflush.c Revert the repodata signature stuff. 2020-01-06 14:56:01 +01:00
sign.c Revert "Preserve meta-index data on change of signing key" 2020-01-06 14:46:12 +01:00
xbps-rindex.1 xbps-rindex.1: proper credit. 2019-06-20 11:44:45 +02:00