From cffd54f39e25660ed5091f86717c6a549e81fc28 Mon Sep 17 00:00:00 2001 From: Vratislav Podzimek Date: Wed, 4 Nov 2015 12:03:31 -0500 Subject: [PATCH] Actually add the patch file required for the build --- blockdev_c_annotation_fix.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 blockdev_c_annotation_fix.patch diff --git a/blockdev_c_annotation_fix.patch b/blockdev_c_annotation_fix.patch new file mode 100644 index 0000000..b41a52c --- /dev/null +++ b/blockdev_c_annotation_fix.patch @@ -0,0 +1,31 @@ +From 5dea3ff0a5f9eb6fda3956192120bdb930307daf Mon Sep 17 00:00:00 2001 +From: Vratislav Podzimek +Date: Wed, 4 Nov 2015 11:39:29 -0500 +Subject: [PATCH] Annotate the plugins_names out parameters as zero-terminated + array + +Otherwise GI gets confused about its type. + +Signed-off-by: Vratislav Podzimek +--- + src/lib/blockdev.c.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/lib/blockdev.c.in b/src/lib/blockdev.c.in +index 01cea9b..eb6cf6c 100644 +--- a/src/lib/blockdev.c.in ++++ b/src/lib/blockdev.c.in +@@ -481,8 +481,8 @@ gboolean bd_ensure_init (BDPluginSpec **require_plugins, BDUtilsLogFunc log_func + * for the plugin, the default is used) or %NULL to load all + * plugins + * @log_func: (allow-none) (scope notified): logging function to use +- * @loaded_plugin_names: (allow-none) (out) (transfer container): names of the successfully +- * loaded plugins ++ * @loaded_plugin_names: (allow-none) (out) (transfer container) (array zero-terminated=1): names ++ * of the successfully loaded plugins + * @error: (out): place to store error (if any) + * + * Returns: whether the library was successfully initialized with all the +-- +2.4.3 +