forked from ariadne/pkgconf
pkg: add support for parsing Provides: entries
parent
d5d194f1db
commit
f9101659bc
|
@ -98,6 +98,7 @@ struct pkgconf_pkg_ {
|
||||||
pkgconf_list_t requires;
|
pkgconf_list_t requires;
|
||||||
pkgconf_list_t requires_private;
|
pkgconf_list_t requires_private;
|
||||||
pkgconf_list_t conflicts;
|
pkgconf_list_t conflicts;
|
||||||
|
pkgconf_list_t provides;
|
||||||
|
|
||||||
pkgconf_list_t vars;
|
pkgconf_list_t vars;
|
||||||
|
|
||||||
|
|
|
@ -241,6 +241,7 @@ static const pkgconf_pkg_parser_keyword_pair_t pkgconf_pkg_parser_keyword_funcs[
|
||||||
{"LIBS", pkgconf_pkg_parser_fragment_func, offsetof(pkgconf_pkg_t, libs)},
|
{"LIBS", pkgconf_pkg_parser_fragment_func, offsetof(pkgconf_pkg_t, libs)},
|
||||||
{"LIBS.private", pkgconf_pkg_parser_fragment_func, offsetof(pkgconf_pkg_t, libs_private)},
|
{"LIBS.private", pkgconf_pkg_parser_fragment_func, offsetof(pkgconf_pkg_t, libs_private)},
|
||||||
{"Name", pkgconf_pkg_parser_tuple_func, offsetof(pkgconf_pkg_t, realname)},
|
{"Name", pkgconf_pkg_parser_tuple_func, offsetof(pkgconf_pkg_t, realname)},
|
||||||
|
{"Provides", pkgconf_pkg_parser_dependency_func, offsetof(pkgconf_pkg_t, provides)},
|
||||||
{"Requires", pkgconf_pkg_parser_dependency_func, offsetof(pkgconf_pkg_t, requires)},
|
{"Requires", pkgconf_pkg_parser_dependency_func, offsetof(pkgconf_pkg_t, requires)},
|
||||||
{"Requires.private", pkgconf_pkg_parser_dependency_func, offsetof(pkgconf_pkg_t, requires_private)},
|
{"Requires.private", pkgconf_pkg_parser_dependency_func, offsetof(pkgconf_pkg_t, requires_private)},
|
||||||
{"Version", pkgconf_pkg_parser_tuple_func, offsetof(pkgconf_pkg_t, version)},
|
{"Version", pkgconf_pkg_parser_tuple_func, offsetof(pkgconf_pkg_t, version)},
|
||||||
|
|
2
main.c
2
main.c
|
@ -253,7 +253,6 @@ print_requires_private(pkgconf_pkg_t *pkg)
|
||||||
static void
|
static void
|
||||||
print_provides(pkgconf_pkg_t *pkg)
|
print_provides(pkgconf_pkg_t *pkg)
|
||||||
{
|
{
|
||||||
#ifdef NOTYET
|
|
||||||
pkgconf_node_t *node;
|
pkgconf_node_t *node;
|
||||||
|
|
||||||
PKGCONF_FOREACH_LIST_ENTRY(pkg->provides.head, node)
|
PKGCONF_FOREACH_LIST_ENTRY(pkg->provides.head, node)
|
||||||
|
@ -267,7 +266,6 @@ print_provides(pkgconf_pkg_t *pkg)
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
printf("%s = %s\n", pkg->id, pkg->version);
|
printf("%s = %s\n", pkg->id, pkg->version);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue