xbps/include
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
..
xbps
compat.h include/compat.h: fix musl build and include inttypes.h. 2014-07-14 08:50:14 +02:00
mainpage.h apidocs: sync with reality. 2015-10-20 11:37:29 +02:00
Makefile Make system/config repo.d paths always relative to rootdir. 2014-05-31 06:44:07 +02:00
queue.h Update queue.h with latest NetBSD's version. 2011-01-30 15:08:57 +01:00
xbps_api_impl.h Revert "Verify repodata signature" 2020-01-06 14:33:49 +01:00
xbps.h.in libxbps: ABI/API break due to xbps_pkg{,pattern}_name changes. 2020-02-08 19:49:57 +01:00