summaryrefslogtreecommitdiff
path: root/devel/pkgconf/files/patch-pkg.h
diff options
context:
space:
mode:
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);