pkg: pass PKGF_* flags to traverse funcs

feature/tap-sh
William Pitcock 2012-05-11 19:58:34 -05:00
parent acf2ee260b
commit 559ae0951d
2 changed files with 2 additions and 2 deletions

2
pkg.c
View File

@ -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
View File

@ -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);