[vala] gstreamer-1.0: use boxed GValue functions for MiniObject
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gstreamer-1.0: use boxed GValue functions for MiniObject
- Date: Sun, 21 Jun 2015 13:43:06 +0000 (UTC)
commit cf3e4c37676f5290badcded1efdb9ad1adfc6fa9
Author: Luca Bruno <lucabru src gnome org>
Date: Sun Jun 21 15:40:21 2015 +0200
gstreamer-1.0: use boxed GValue functions for MiniObject
Fixes bug 742734
vapi/gstreamer-1.0.vapi | 2 +-
vapi/metadata/Gst-1.0-custom.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index e4f539c..1e246d6 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -1392,7 +1392,7 @@ namespace Gst {
[CCode (has_construct_function = false)]
public Message.warning (Gst.Object src, GLib.Error error, string debug);
}
- [CCode (cheader_filename = "gst/gst.h", ref_function = "gst_mini_object_ref", unref_function =
"gst_mini_object_unref")]
+ [CCode (cheader_filename = "gst/gst.h", get_value_function = "g_value_get_boxed", ref_function =
"gst_mini_object_ref", set_value_function = "g_value_set_boxed", take_value_function = "g_value_take_boxed",
unref_function = "gst_mini_object_unref")]
[Compact]
public abstract class MiniObject {
public weak Gst.MiniObjectDisposeFunction dispose;
diff --git a/vapi/metadata/Gst-1.0-custom.vala b/vapi/metadata/Gst-1.0-custom.vala
index 2c7c38a..9566d9a 100644
--- a/vapi/metadata/Gst-1.0-custom.vala
+++ b/vapi/metadata/Gst-1.0-custom.vala
@@ -58,7 +58,7 @@ namespace Gst {
public bool find_custom<T> ([CCode (type = "GCompareFunc")] GLib.SearchFunc<GLib.Value,T>
func, out GLib.Value elem, T user_data);
}
- [Compact, CCode (ref_function = "gst_mini_object_ref", unref_function = "gst_mini_object_unref")]
+ [Compact, CCode (ref_function = "gst_mini_object_ref", unref_function = "gst_mini_object_unref",
get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed", take_value_function =
"g_value_take_boxed")]
public abstract class MiniObject {
[CCode (simple_generics = true)]
public T get_qdata<T> (GLib.Quark quark);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]