summaryrefslogtreecommitdiff
path: root/devel/pkgconf/files/patch-pkg.h
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-07-29 09:56:03 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-07-29 09:56:03 +0000
commitc75a54293871fc84978f2c6755f4b06253c6982b (patch)
treeeac5faa0904fe0a4d1145748aa10c582267d3f91 /devel/pkgconf/files/patch-pkg.h
parent- fix pkg-plist for option SHARED disabled (diff)
- import patches from upstream
- changes: * add support for --list-all * --version now shows pkg-config compatibility version (no need to modify anymore buggy configures that do check for --version instead of --modversion pkg-conf) * new --about to show the version of pkgconf Obtained from: pkgconf git repository
Diffstat (limited to 'devel/pkgconf/files/patch-pkg.h')
-rw-r--r--devel/pkgconf/files/patch-pkg.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/devel/pkgconf/files/patch-pkg.h b/devel/pkgconf/files/patch-pkg.h
new file mode 100644
index 000000000000..1c89073eaf86
--- /dev/null
+++ b/devel/pkgconf/files/patch-pkg.h
@@ -0,0 +1,17 @@
+--- ./pkg.h.orig 2012-07-26 04:13:43.000000000 +0200
++++ ./pkg.h 2012-07-29 11:31:53.000000000 +0200
+@@ -114,11 +114,14 @@
+ #define PKG_ERRF_PACKAGE_VER_MISMATCH 0x2
+ #define PKG_ERRF_PACKAGE_CONFLICT 0x4
+
++typedef void (*pkg_iteration_func_t)(const pkg_t *pkg);
+ typedef void (*pkg_traverse_func_t)(pkg_t *pkg, void *data, unsigned int flags);
+
+ /* pkg.c */
+ void pkg_free(pkg_t *pkg);
+ pkg_t *pkg_find(const char *name, unsigned int flags);
++void pkg_scan(const char *search_path, pkg_iteration_func_t func);
++void pkg_scan_all(pkg_iteration_func_t func);
+ unsigned int pkg_traverse(pkg_t *root, pkg_traverse_func_t func, void *data, int maxdepth, unsigned int flags);
+ unsigned int pkg_verify_graph(pkg_t *root, int depth, unsigned int flags);
+ int pkg_compare_version(const char *a, const char *b);