[vala] gstreamer: Fix GstFormat bindings, needs bug #614543 fixed first
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gstreamer: Fix GstFormat bindings, needs bug #614543 fixed first
- Date: Thu, 8 Apr 2010 08:33:17 +0000 (UTC)
commit bb7b8381c3552e864de799e8b5f40e54b5e3a7fa
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date: Sun Apr 4 07:18:59 2010 +0200
gstreamer: Fix GstFormat bindings, needs bug #614543 fixed first
vapi/gstreamer-0.10.vapi | 4 ++-
.../gstreamer-0.10/gstreamer-0.10-custom.vala | 23 ++++++++++++++++++++
.../gstreamer-0.10/gstreamer-0.10.metadata | 2 +-
3 files changed, 27 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gstreamer-0.10.vapi b/vapi/gstreamer-0.10.vapi
index 6bef749..c4261b6 100644
--- a/vapi/gstreamer-0.10.vapi
+++ b/vapi/gstreamer-0.10.vapi
@@ -1848,7 +1848,9 @@ namespace Gst {
BYTES,
TIME,
BUFFERS,
- PERCENT
+ PERCENT;
+ [CCode (cname = "gst_format_get_name")]
+ public unowned string to_string ();
}
[CCode (cprefix = "GST_INDEX_", cheader_filename = "gst/gst.h")]
public enum IndexCertainty {
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
index 36af4bb..545bdd9 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
@@ -75,6 +75,29 @@ namespace Gst {
}
#endif
+#if 0
+ // FIXME: This can't be parsed by vapigen
+ public enum Format {
+ ;
+ [CCode (cname = "gst_format_get_details")]
+ public unowned FormatDefination get_details ();
+ [CCode (cname = "gst_format_to_quark")]
+ public GLib.Quark to_quark ();
+ [CCode (cname = "gst_format_get_name")]
+ public unowned string get_name ();
+
+ [CCode (cname = "gst_format_register")]
+ static Format register (string nick, string description);
+ [CCode (cname = "gst_format_get_by_nick")]
+ static Format get_by_nick (string nick);
+
+ [CCode (cname = "GST_FORMAT_PERCENT_MAX")]
+ public const int64 PERCENT_MAX;
+ [CCode (cname = "GST_FORMAT_PERCENT_SCALE")]
+ public const int64 PERCENT_SCALE;
+ }
+#endif
+
[CCode (ref_function = "gst_object_ref", unref_function = "gst_object_unref", ref_sink_function = "gst_object_ref_sink")]
public class Object {
public Gst.Object @ref ();
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
index 7ce72ad..97f7760 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
@@ -190,7 +190,7 @@ gst_event_parse_*.* is_out="1"
gst_filter_run transfer_ownership="1"
GstFlowReturn to_string="gst_flow_get_name"
gst_flow_get_name hidden="1"
-GstFormatReturn to_string="gst_format_get_name"
+GstFormat to_string="gst_format_get_name"
gst_format_get_name hidden="1"
GstFormatDefinition is_value_type="1"
GstGhostPad base_class="GstPad"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]