libpkgconf: make pkgconf_pkg_dir_list_build() public

feature/tap-sh
William Pitcock 2016-12-01 15:11:37 -06:00
parent 434c465ca9
commit ad731d1948
2 changed files with 2 additions and 1 deletions

View File

@ -203,6 +203,7 @@ pkgconf_pkg_t *pkgconf_builtin_pkg_get(const char *name);
int pkgconf_compare_version(const char *a, const char *b); int pkgconf_compare_version(const char *a, const char *b);
pkgconf_pkg_t *pkgconf_scan_all(pkgconf_client_t *client, void *ptr, pkgconf_pkg_iteration_func_t func); pkgconf_pkg_t *pkgconf_scan_all(pkgconf_client_t *client, void *ptr, pkgconf_pkg_iteration_func_t func);
void pkgconf_pkg_dir_list_build(pkgconf_client_t *client, unsigned int flags);
/* parse.c */ /* parse.c */
pkgconf_pkg_t *pkgconf_pkg_new_from_file(const pkgconf_client_t *client, const char *path, FILE *f, unsigned int flags); pkgconf_pkg_t *pkgconf_pkg_new_from_file(const pkgconf_client_t *client, const char *path, FILE *f, unsigned int flags);

View File

@ -107,7 +107,7 @@ pkg_get_parent_dir(pkgconf_pkg_t *pkg)
return buf; return buf;
} }
static void void
pkgconf_pkg_dir_list_build(pkgconf_client_t *client, unsigned int flags) pkgconf_pkg_dir_list_build(pkgconf_client_t *client, unsigned int flags)
{ {
if (client->dir_list.head != NULL || client->dir_list.tail != NULL) if (client->dir_list.head != NULL || client->dir_list.tail != NULL)