forked from ariadne/pkgconf
pkg: pass PKGF_* flags to traverse funcs
parent
acf2ee260b
commit
559ae0951d
2
pkg.c
2
pkg.c
|
@ -643,7 +643,7 @@ pkg_traverse(pkg_t *root,
|
|||
return eflags;
|
||||
|
||||
if (func != NULL)
|
||||
func(root, data);
|
||||
func(root, data, flags);
|
||||
|
||||
return eflags;
|
||||
}
|
||||
|
|
2
pkg.h
2
pkg.h
|
@ -121,7 +121,7 @@ struct pkg_ {
|
|||
#define PKG_ERRF_PACKAGE_NOT_FOUND 0x1
|
||||
#define PKG_ERRF_PACKAGE_VER_MISMATCH 0x2
|
||||
|
||||
typedef void (*pkg_traverse_func_t)(pkg_t *pkg, void *data);
|
||||
typedef void (*pkg_traverse_func_t)(pkg_t *pkg, void *data, unsigned int flags);
|
||||
|
||||
/* pkg.c */
|
||||
void pkg_free(pkg_t *pkg);
|
||||
|
|
Loading…
Reference in New Issue