[vala] girparser: use identifier prefix from GIR when appropriate



commit 362e94ffa7bc065e0a88f6f999c9c491b06e8946
Author: Luca Bruno <luca bruno immobiliare it>
Date:   Tue Jun 3 11:08:52 2014 +0200

    girparser: use identifier prefix from GIR when appropriate
    
    Fixes bug 731066

 vala/valagirparser.vala            |   37 +++++++++--
 vapi/gstreamer-audio-1.0.vapi      |    7 +--
 vapi/gstreamer-base-1.0.vapi       |   59 ++---------------
 vapi/gstreamer-check-1.0.vapi      |   20 +-----
 vapi/gstreamer-controller-1.0.vapi |   29 +++-----
 vapi/gstreamer-pbutils-1.0.vapi    |  126 ++++++------------------------------
 vapi/gstreamer-video-1.0.vapi      |   28 +-------
 vapi/rest-0.7.vapi                 |    8 +-
 8 files changed, 82 insertions(+), 232 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 5ac350e..b1561e8 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -639,13 +639,42 @@ public class Vala.GirParser : CodeVisitor {
 
                        var prefix = symbol.get_attribute_string ("CCode", "lower_case_cprefix");
                        if (prefix == null && (symbol is ObjectTypeSymbol || symbol is Struct)) {
-                               if (metadata.has_argument (ArgumentType.CPREFIX)) {
+                               if (metadata.has_argument (ArgumentType.LOWER_CASE_CPREFIX)) {
+                                       prefix = metadata.get_string (ArgumentType.LOWER_CASE_CPREFIX);
+                               } else if (metadata.has_argument (ArgumentType.CPREFIX)) {
                                        prefix = metadata.get_string (ArgumentType.CPREFIX);
                                } else {
                                        prefix = symbol.get_attribute_string ("CCode", "cprefix");
                                }
                        }
 
+                       if (prefix == null && girdata != null && (girdata.contains ("c:symbol-prefix") || 
girdata.contains("c:symbol-prefixes"))) {
+                               /* Use the prefix in the gir. We look up prefixes up to the root.
+                                  If some node does not have girdata, we ignore it as i might be
+                                  a namespace created due to reparenting. */
+                               unowned Node cur = this;
+                               do {
+                                       if (cur.girdata != null) {
+                                               var p = cur.girdata["c:symbol-prefix"];
+                                               if (p == null) {
+                                                       p = cur.girdata["c:symbol-prefixes"];
+                                                       if (p != null) {
+                                                               var idx = p.index_of (",");
+                                                               if (idx >= 0) {
+                                                                       p = p.substring (0, idx);
+                                                               }
+                                                       }
+                                               }
+
+                                               if (p != null) {
+                                                       prefix = p+"_"+prefix;
+                                               }
+                                       }
+
+                                       cur = cur.parent;
+                               } while (cur != null);
+                       }
+
                        if (prefix == null) {
                                prefix = get_default_lower_case_cprefix ();
                        }
@@ -1106,11 +1135,7 @@ public class Vala.GirParser : CodeVisitor {
 
                                // lower_case_cprefix
                                if (get_lower_case_cprefix () != get_default_lower_case_cprefix ()) {
-                                       if (symbol is Class) {
-                                               symbol.set_attribute_string ("CCode", "cprefix", 
get_lower_case_cprefix ());
-                                       } else {
-                                               symbol.set_attribute_string ("CCode", "lower_case_cprefix", 
get_lower_case_cprefix ());
-                                       }
+                                       symbol.set_attribute_string ("CCode", "lower_case_cprefix", 
get_lower_case_cprefix ());
                                }
                                // lower_case_csuffix
                                if (get_lower_case_csuffix () != get_default_lower_case_csuffix ()) {
diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi
index ecec039..4715435 100644
--- a/vapi/gstreamer-audio-1.0.vapi
+++ b/vapi/gstreamer-audio-1.0.vapi
@@ -353,18 +353,13 @@ namespace Gst {
                        [NoWrapper]
                        public virtual bool unprepare ();
                }
-               [CCode (cheader_filename = "gst/audio/audio.h", cname = "GstStreamVolume", type_cname = 
"GstStreamVolumeInterface", type_id = "gst_stream_volume_get_type ()")]
+               [CCode (cheader_filename = "gst/audio/audio.h", cname = "GstStreamVolume", lower_case_cprefix 
= "gst_stream_volume_", type_cname = "GstStreamVolumeInterface", type_id = "gst_stream_volume_get_type ()")]
                [GIR (name = "StreamVolume")]
                public interface StreamVolume : GLib.Object {
-                       [CCode (cname = "gst_stream_volume_convert_volume")]
                        public static double convert_volume (Gst.Audio.StreamVolumeFormat from, 
Gst.Audio.StreamVolumeFormat to, double val);
-                       [CCode (cname = "gst_stream_volume_get_mute")]
                        public bool get_mute ();
-                       [CCode (cname = "gst_stream_volume_get_volume")]
                        public double get_volume (Gst.Audio.StreamVolumeFormat format);
-                       [CCode (cname = "gst_stream_volume_set_mute")]
                        public void set_mute (bool mute);
-                       [CCode (cname = "gst_stream_volume_set_volume")]
                        public void set_volume (Gst.Audio.StreamVolumeFormat format, double val);
                        [NoAccessorMethod]
                        public abstract bool mute { get; set; }
diff --git a/vapi/gstreamer-base-1.0.vapi b/vapi/gstreamer-base-1.0.vapi
index 96f9c29..4ffe5b5 100644
--- a/vapi/gstreamer-base-1.0.vapi
+++ b/vapi/gstreamer-base-1.0.vapi
@@ -3,48 +3,31 @@
 [CCode (cprefix = "Gst", gir_namespace = "GstBase", gir_version = "1.0", lower_case_cprefix = "gst_")]
 namespace Gst {
        namespace Base {
-               [CCode (cheader_filename = "gst/base/base.h", cname = "GstAdapter", type_id = 
"gst_adapter_get_type ()")]
+               [CCode (cheader_filename = "gst/base/base.h", cname = "GstAdapter", lower_case_cprefix = 
"gst_adapter_", type_id = "gst_adapter_get_type ()")]
                [GIR (name = "Adapter")]
                public class Adapter : GLib.Object {
-                       [CCode (cname = "gst_adapter_new", has_construct_function = false)]
+                       [CCode (has_construct_function = false)]
                        public Adapter ();
-                       [CCode (cname = "gst_adapter_available")]
                        public size_t available ();
-                       [CCode (cname = "gst_adapter_available_fast")]
                        public size_t available_fast ();
-                       [CCode (cname = "gst_adapter_clear")]
                        public void clear ();
-                       [CCode (cname = "gst_adapter_copy")]
                        public void copy ([CCode (array_length_cname = "size", array_length_pos = 2.1, 
array_length_type = "gsize")] out unowned uint8[] dest, size_t offset);
-                       [CCode (cname = "gst_adapter_copy_bytes")]
                        public GLib.Bytes copy_bytes (size_t offset, size_t size);
-                       [CCode (cname = "gst_adapter_flush")]
                        public void flush (size_t flush);
-                       [CCode (array_length_pos = 0.1, array_length_type = "gsize", cname = 
"gst_adapter_map")]
+                       [CCode (array_length_pos = 0.1, array_length_type = "gsize")]
                        public unowned uint8[] map ();
-                       [CCode (cname = "gst_adapter_masked_scan_uint32")]
                        public ssize_t masked_scan_uint32 (uint32 mask, uint32 pattern, size_t offset, size_t 
size);
-                       [CCode (cname = "gst_adapter_masked_scan_uint32_peek")]
                        public ssize_t masked_scan_uint32_peek (uint32 mask, uint32 pattern, size_t offset, 
size_t size, uint32 value);
-                       [CCode (cname = "gst_adapter_prev_dts")]
                        public Gst.ClockTime prev_dts (out uint64 distance);
-                       [CCode (cname = "gst_adapter_prev_dts_at_offset")]
                        public Gst.ClockTime prev_dts_at_offset (size_t offset, out uint64 distance);
-                       [CCode (cname = "gst_adapter_prev_pts")]
                        public Gst.ClockTime prev_pts (out uint64 distance);
-                       [CCode (cname = "gst_adapter_prev_pts_at_offset")]
                        public Gst.ClockTime prev_pts_at_offset (size_t offset, out uint64 distance);
-                       [CCode (cname = "gst_adapter_push")]
                        public void push (owned Gst.Buffer buf);
-                       [CCode (array_length_pos = 0.1, array_length_type = "gsize", cname = 
"gst_adapter_take")]
+                       [CCode (array_length_pos = 0.1, array_length_type = "gsize")]
                        public uint8[] take ();
-                       [CCode (cname = "gst_adapter_take_buffer")]
                        public Gst.Buffer take_buffer (size_t nbytes);
-                       [CCode (cname = "gst_adapter_take_buffer_fast")]
                        public Gst.Buffer take_buffer_fast (size_t nbytes);
-                       [CCode (cname = "gst_adapter_take_list")]
                        public GLib.List<Gst.Buffer> take_list (size_t nbytes);
-                       [CCode (cname = "gst_adapter_unmap")]
                        public void unmap ();
                }
                [CCode (cheader_filename = 
"gst/base/gstadapter.h,gst/base/gstbaseparse.h,gst/base/gstbasesink.h,gst/base/gstbasesrc.h,gst/base/gstbasetransform.h,gst/base/gstbitreader.h,gst/base/gstbytereader.h,gst/base/gstbytewriter.h,gst/base/gstcollectpads.h,gst/base/gstpushsrc.h,gst/base/gsttypefindhelper.h",
 cname = "GstBitReader")]
@@ -314,69 +297,43 @@ namespace Gst {
                        public ByteWriter.with_data ([CCode (array_length_type = "guint")] uint8[] data, uint 
size, bool initialized);
                        public ByteWriter.with_size (uint size, bool fixed);
                }
-               [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectPads", type_id = 
"gst_collect_pads_get_type ()")]
+               [CCode (cheader_filename = "gst/base/base.h", cname = "GstCollectPads", lower_case_cprefix = 
"gst_collect_pads_", type_id = "gst_collect_pads_get_type ()")]
                [GIR (name = "CollectPads")]
                public class CollectPads : Gst.Object {
                        public weak GLib.SList<void*> data;
-                       [CCode (cname = "gst_collect_pads_new", has_construct_function = false)]
+                       [CCode (has_construct_function = false)]
                        public CollectPads ();
-                       [CCode (cname = "gst_collect_pads_available")]
                        public uint available ();
-                       [CCode (cname = "gst_collect_pads_clip_running_time")]
                        public Gst.FlowReturn clip_running_time (Gst.Base.CollectData cdata, Gst.Buffer buf, 
Gst.Buffer? outbuf, void* user_data);
-                       [CCode (cname = "gst_collect_pads_event_default")]
                        public bool event_default (Gst.Base.CollectData data, Gst.Event event, bool discard);
-                       [CCode (cname = "gst_collect_pads_flush")]
                        public uint flush (Gst.Base.CollectData data, uint size);
-                       [CCode (cname = "gst_collect_pads_peek")]
                        public Gst.Buffer peek (Gst.Base.CollectData data);
-                       [CCode (cname = "gst_collect_pads_pop")]
                        public Gst.Buffer pop (Gst.Base.CollectData data);
-                       [CCode (cname = "gst_collect_pads_query_default")]
                        public bool query_default (Gst.Base.CollectData data, Gst.Query query, bool discard);
-                       [CCode (cname = "gst_collect_pads_read_buffer")]
                        public Gst.Buffer read_buffer (Gst.Base.CollectData data, uint size);
-                       [CCode (cname = "gst_collect_pads_remove_pad")]
                        public bool remove_pad (Gst.Pad pad);
-                       [CCode (cname = "gst_collect_pads_set_flushing")]
                        public void set_flushing (bool flushing);
-                       [CCode (cname = "gst_collect_pads_set_waiting")]
                        public void set_waiting (Gst.Base.CollectData data, bool waiting);
-                       [CCode (cname = "gst_collect_pads_src_event_default")]
                        public bool src_event_default (Gst.Pad pad, Gst.Event event);
-                       [CCode (cname = "gst_collect_pads_start")]
                        public void start ();
-                       [CCode (cname = "gst_collect_pads_stop")]
                        public void stop ();
-                       [CCode (cname = "gst_collect_pads_take_buffer")]
                        public Gst.Buffer take_buffer (Gst.Base.CollectData data, uint size);
                }
-               [CCode (cheader_filename = "gst/base/base.h", cname = "GstDataQueue", type_id = 
"gst_data_queue_get_type ()")]
+               [CCode (cheader_filename = "gst/base/base.h", cname = "GstDataQueue", lower_case_cprefix = 
"gst_data_queue_", type_id = "gst_data_queue_get_type ()")]
                [GIR (name = "DataQueue")]
                public class DataQueue : GLib.Object {
                        [CCode (has_construct_function = false)]
                        protected DataQueue ();
-                       [CCode (cname = "gst_data_queue_drop_head")]
                        public bool drop_head (GLib.Type type);
-                       [CCode (cname = "gst_data_queue_flush")]
                        public void flush ();
-                       [CCode (cname = "gst_data_queue_get_level")]
                        public void get_level (Gst.Base.DataQueueSize level);
-                       [CCode (cname = "gst_data_queue_is_empty")]
                        public bool is_empty ();
-                       [CCode (cname = "gst_data_queue_is_full")]
                        public bool is_full ();
-                       [CCode (cname = "gst_data_queue_limits_changed")]
                        public void limits_changed ();
-                       [CCode (cname = "gst_data_queue_peek")]
                        public bool peek (Gst.Base.DataQueueItem item);
-                       [CCode (cname = "gst_data_queue_pop")]
                        public bool pop (Gst.Base.DataQueueItem item);
-                       [CCode (cname = "gst_data_queue_push")]
                        public bool push (Gst.Base.DataQueueItem item);
-                       [CCode (cname = "gst_data_queue_push_force")]
                        public bool push_force (Gst.Base.DataQueueItem item);
-                       [CCode (cname = "gst_data_queue_set_flushing")]
                        public void set_flushing (bool flushing);
                        [NoAccessorMethod]
                        public uint current_level_bytes { get; }
@@ -465,7 +422,7 @@ namespace Gst {
                        public void free ();
                        public void init ();
                }
-               [CCode (cheader_filename = "gst/base/base.h", cname = "GstPushSrc", type_id = 
"gst_push_src_get_type ()")]
+               [CCode (cheader_filename = "gst/base/base.h", cname = "GstPushSrc", lower_case_cprefix = 
"gst_push_src_", type_id = "gst_push_src_get_type ()")]
                [GIR (name = "PushSrc")]
                public class PushSrc : Gst.Base.Src {
                        [CCode (has_construct_function = false)]
diff --git a/vapi/gstreamer-check-1.0.vapi b/vapi/gstreamer-check-1.0.vapi
index d4344cb..bf939f3 100644
--- a/vapi/gstreamer-check-1.0.vapi
+++ b/vapi/gstreamer-check-1.0.vapi
@@ -3,7 +3,7 @@
 [CCode (cprefix = "Gst", gir_namespace = "GstCheck", gir_version = "1.0", lower_case_cprefix = "gst_")]
 namespace Gst {
        namespace Check {
-               [CCode (cheader_filename = 
"gst/check/gstbufferstraw.h,gst/check/gstcheck.h,gst/check/gstconsistencychecker.h,gst/check/internal-check.h",
 cname = "GstStreamConsistency", cprefix = "gst_consistency_checker_", lower_case_cprefix = 
"gst_consistency_checker_")]
+               [CCode (cheader_filename = 
"gst/check/gstbufferstraw.h,gst/check/gstcheck.h,gst/check/gstconsistencychecker.h,gst/check/internal-check.h",
 cname = "GstStreamConsistency", lower_case_cprefix = "gst_consistency_checker_")]
                [Compact]
                [GIR (name = "StreamConsistency")]
                public class StreamConsistency {
@@ -12,37 +12,25 @@ namespace Gst {
                        public void free ();
                        public void reset ();
                }
-               [CCode (cheader_filename = "gst/check/check.h", cname = "GstTestClock", type_id = 
"gst_test_clock_get_type ()")]
+               [CCode (cheader_filename = "gst/check/check.h", cname = "GstTestClock", lower_case_cprefix = 
"gst_test_clock_", type_id = "gst_test_clock_get_type ()")]
                [GIR (name = "TestClock")]
                public class TestClock : Gst.Clock {
-                       [CCode (cname = "gst_test_clock_new", has_construct_function = false, type = 
"GstClock*")]
+                       [CCode (has_construct_function = false, type = "GstClock*")]
                        public TestClock ();
-                       [CCode (cname = "gst_test_clock_advance_time")]
                        public void advance_time (Gst.ClockTimeDiff delta);
-                       [CCode (cname = "gst_test_clock_get_next_entry_time")]
                        public Gst.ClockTime get_next_entry_time ();
-                       [CCode (cname = "gst_test_clock_has_id")]
                        public bool has_id (Gst.ClockID id);
-                       [CCode (cname = "gst_test_clock_id_list_get_latest_time")]
                        public static Gst.ClockTime id_list_get_latest_time (GLib.List<Gst.ClockID?>? 
pending_list);
-                       [CCode (cname = "gst_test_clock_peek_id_count")]
                        public uint peek_id_count ();
-                       [CCode (cname = "gst_test_clock_peek_next_pending_id")]
                        public bool peek_next_pending_id (out Gst.ClockID pending_id);
-                       [CCode (cname = "gst_test_clock_process_id_list")]
                        public uint process_id_list (GLib.List<Gst.ClockID?>? pending_list);
-                       [CCode (cname = "gst_test_clock_process_next_clock_id")]
                        public Gst.ClockID process_next_clock_id ();
-                       [CCode (cname = "gst_test_clock_set_time")]
                        public void set_time (Gst.ClockTime new_time);
-                       [CCode (cname = "gst_test_clock_wait_for_multiple_pending_ids")]
                        public void wait_for_multiple_pending_ids (uint count, out GLib.List<Gst.ClockID?> 
pending_list);
-                       [CCode (cname = "gst_test_clock_wait_for_next_pending_id")]
                        public void wait_for_next_pending_id (out Gst.ClockID pending_id);
-                       [CCode (cname = "gst_test_clock_wait_for_pending_id_count")]
                        [Deprecated]
                        public void wait_for_pending_id_count (uint count);
-                       [CCode (cname = "gst_test_clock_new_with_start_time", has_construct_function = false, 
type = "GstClock*")]
+                       [CCode (has_construct_function = false, type = "GstClock*")]
                        public TestClock.with_start_time (Gst.ClockTime start_time);
                        [NoAccessorMethod]
                        public uint64 start_time { get; construct; }
diff --git a/vapi/gstreamer-controller-1.0.vapi b/vapi/gstreamer-controller-1.0.vapi
index de0d4e8..dacf931 100644
--- a/vapi/gstreamer-controller-1.0.vapi
+++ b/vapi/gstreamer-controller-1.0.vapi
@@ -3,10 +3,10 @@
 [CCode (cprefix = "Gst", gir_namespace = "GstController", gir_version = "1.0", lower_case_cprefix = "gst_")]
 namespace Gst {
        namespace Controller {
-               [CCode (cheader_filename = "gst/controller/controller.h", cname = "GstARGBControlBinding", 
type_id = "gst_argb_control_binding_get_type ()")]
+               [CCode (cheader_filename = "gst/controller/controller.h", cname = "GstARGBControlBinding", 
lower_case_cprefix = "gst_argb_control_binding_", type_id = "gst_argb_control_binding_get_type ()")]
                [GIR (name = "ARGBControlBinding")]
                public class ARGBControlBinding : Gst.ControlBinding {
-                       [CCode (cname = "gst_argb_control_binding_new", has_construct_function = false, type 
= "GstControlBinding*")]
+                       [CCode (has_construct_function = false, type = "GstControlBinding*")]
                        public ARGBControlBinding (Gst.Object object, string property_name, Gst.ControlSource 
cs_a, Gst.ControlSource cs_r, Gst.ControlSource cs_g, Gst.ControlSource cs_b);
                        [NoAccessorMethod]
                        public Gst.ControlSource control_source_a { owned get; set construct; }
@@ -17,26 +17,26 @@ namespace Gst {
                        [NoAccessorMethod]
                        public Gst.ControlSource control_source_r { owned get; set construct; }
                }
-               [CCode (cheader_filename = "gst/controller/controller.h", cname = "GstDirectControlBinding", 
type_id = "gst_direct_control_binding_get_type ()")]
+               [CCode (cheader_filename = "gst/controller/controller.h", cname = "GstDirectControlBinding", 
lower_case_cprefix = "gst_direct_control_binding_", type_id = "gst_direct_control_binding_get_type ()")]
                [GIR (name = "DirectControlBinding")]
                public class DirectControlBinding : Gst.ControlBinding {
-                       [CCode (cname = "gst_direct_control_binding_new", has_construct_function = false, 
type = "GstControlBinding*")]
+                       [CCode (has_construct_function = false, type = "GstControlBinding*")]
                        public DirectControlBinding (Gst.Object object, string property_name, 
Gst.ControlSource cs);
                        [NoAccessorMethod]
                        public Gst.ControlSource control_source { owned get; set construct; }
                }
-               [CCode (cheader_filename = "gst/controller/controller.h", cname = 
"GstInterpolationControlSource", type_id = "gst_interpolation_control_source_get_type ()")]
+               [CCode (cheader_filename = "gst/controller/controller.h", cname = 
"GstInterpolationControlSource", lower_case_cprefix = "gst_interpolation_control_source_", type_id = 
"gst_interpolation_control_source_get_type ()")]
                [GIR (name = "InterpolationControlSource")]
                public class InterpolationControlSource : Gst.Controller.TimedValueControlSource {
-                       [CCode (cname = "gst_interpolation_control_source_new", has_construct_function = 
false, type = "GstControlSource*")]
+                       [CCode (has_construct_function = false, type = "GstControlSource*")]
                        public InterpolationControlSource ();
                        [NoAccessorMethod]
                        public Gst.Controller.InterpolationMode mode { get; set; }
                }
-               [CCode (cheader_filename = "gst/controller/controller.h", cname = "GstLFOControlSource", 
type_id = "gst_lfo_control_source_get_type ()")]
+               [CCode (cheader_filename = "gst/controller/controller.h", cname = "GstLFOControlSource", 
lower_case_cprefix = "gst_lfo_control_source_", type_id = "gst_lfo_control_source_get_type ()")]
                [GIR (name = "LFOControlSource")]
                public class LFOControlSource : Gst.ControlSource {
-                       [CCode (cname = "gst_lfo_control_source_new", has_construct_function = false, type = 
"GstControlSource*")]
+                       [CCode (has_construct_function = false, type = "GstControlSource*")]
                        public LFOControlSource ();
                        [NoAccessorMethod]
                        public double amplitude { get; set; }
@@ -49,7 +49,7 @@ namespace Gst {
                        [NoAccessorMethod]
                        public Gst.Controller.LFOWaveform waveform { get; set; }
                }
-               [CCode (cheader_filename = "gst/controller/controller.h", cname = 
"GstTimedValueControlSource", type_id = "gst_timed_value_control_source_get_type ()")]
+               [CCode (cheader_filename = "gst/controller/controller.h", cname = 
"GstTimedValueControlSource", lower_case_cprefix = "gst_timed_value_control_source_", type_id = 
"gst_timed_value_control_source_get_type ()")]
                [GIR (name = "TimedValueControlSource")]
                public abstract class TimedValueControlSource : Gst.ControlSource {
                        public weak GLib.Mutex @lock;
@@ -58,25 +58,18 @@ namespace Gst {
                        public GLib.Sequence<Gst.Controller.ControlPoint?> values;
                        [CCode (has_construct_function = false)]
                        protected TimedValueControlSource ();
-                       [CCode (cname = "gst_timed_value_control_source_find_control_point_iter")]
                        public unowned GLib.SequenceIter find_control_point_iter (Gst.ClockTime timestamp);
-                       [CCode (cname = "gst_timed_value_control_source_get_all")]
                        public GLib.List<weak Gst.TimedValue?> get_all ();
-                       [CCode (cname = "gst_timed_value_control_source_get_count")]
                        public int get_count ();
-                       [CCode (cname = "gst_timed_value_control_source_set")]
                        public bool @set (Gst.ClockTime timestamp, double value);
-                       [CCode (cname = "gst_timed_value_control_source_set_from_list")]
                        public bool set_from_list (GLib.SList<Gst.TimedValue?> timedvalues);
-                       [CCode (cname = "gst_timed_value_control_source_unset")]
                        public bool unset (Gst.ClockTime timestamp);
-                       [CCode (cname = "gst_timed_value_control_source_unset_all")]
                        public void unset_all ();
                }
-               [CCode (cheader_filename = "gst/controller/controller.h", cname = "GstTriggerControlSource", 
type_id = "gst_trigger_control_source_get_type ()")]
+               [CCode (cheader_filename = "gst/controller/controller.h", cname = "GstTriggerControlSource", 
lower_case_cprefix = "gst_trigger_control_source_", type_id = "gst_trigger_control_source_get_type ()")]
                [GIR (name = "TriggerControlSource")]
                public class TriggerControlSource : Gst.Controller.TimedValueControlSource {
-                       [CCode (cname = "gst_trigger_control_source_new", has_construct_function = false, 
type = "GstControlSource*")]
+                       [CCode (has_construct_function = false, type = "GstControlSource*")]
                        public TriggerControlSource ();
                        [NoAccessorMethod]
                        public int64 tolerance { get; set; }
diff --git a/vapi/gstreamer-pbutils-1.0.vapi b/vapi/gstreamer-pbutils-1.0.vapi
index f493c5b..dd211cf 100644
--- a/vapi/gstreamer-pbutils-1.0.vapi
+++ b/vapi/gstreamer-pbutils-1.0.vapi
@@ -35,18 +35,14 @@ namespace Gst {
                                public static unowned string get_profile (uint8 vis_obj_seq, uint len);
                        }
                }
-               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscoverer", type_id = 
"gst_discoverer_get_type ()")]
+               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscoverer", 
lower_case_cprefix = "gst_discoverer_", type_id = "gst_discoverer_get_type ()")]
                [GIR (name = "Discoverer")]
                public class Discoverer : GLib.Object {
-                       [CCode (cname = "gst_discoverer_new", has_construct_function = false)]
+                       [CCode (has_construct_function = false)]
                        public Discoverer (Gst.ClockTime timeout) throws GLib.Error;
-                       [CCode (cname = "gst_discoverer_discover_uri")]
                        public Gst.PbUtils.DiscovererInfo discover_uri (string uri) throws GLib.Error;
-                       [CCode (cname = "gst_discoverer_discover_uri_async")]
                        public bool discover_uri_async (string uri);
-                       [CCode (cname = "gst_discoverer_start")]
                        public void start ();
-                       [CCode (cname = "gst_discoverer_stop")]
                        public void stop ();
                        [NoAccessorMethod]
                        public uint64 timeout { get; set construct; }
@@ -55,247 +51,165 @@ namespace Gst {
                        public virtual signal void source_setup (Gst.Element source);
                        public virtual signal void starting ();
                }
-               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererAudioInfo", type_id 
= "gst_discoverer_audio_info_get_type ()")]
+               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererAudioInfo", 
lower_case_cprefix = "gst_discoverer_audio_info_", type_id = "gst_discoverer_audio_info_get_type ()")]
                [GIR (name = "DiscovererAudioInfo")]
                public class DiscovererAudioInfo : Gst.PbUtils.DiscovererStreamInfo {
                        [CCode (has_construct_function = false)]
                        protected DiscovererAudioInfo ();
-                       [CCode (cname = "gst_discoverer_audio_info_get_bitrate")]
                        public uint get_bitrate ();
-                       [CCode (cname = "gst_discoverer_audio_info_get_channels")]
                        public uint get_channels ();
-                       [CCode (cname = "gst_discoverer_audio_info_get_depth")]
                        public uint get_depth ();
-                       [CCode (cname = "gst_discoverer_audio_info_get_language")]
                        public unowned string get_language ();
-                       [CCode (cname = "gst_discoverer_audio_info_get_max_bitrate")]
                        public uint get_max_bitrate ();
-                       [CCode (cname = "gst_discoverer_audio_info_get_sample_rate")]
                        public uint get_sample_rate ();
                }
-               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererContainerInfo", 
type_id = "gst_discoverer_container_info_get_type ()")]
+               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererContainerInfo", 
lower_case_cprefix = "gst_discoverer_container_info_", type_id = "gst_discoverer_container_info_get_type ()")]
                [GIR (name = "DiscovererContainerInfo")]
                public class DiscovererContainerInfo : Gst.PbUtils.DiscovererStreamInfo {
                        [CCode (has_construct_function = false)]
                        protected DiscovererContainerInfo ();
-                       [CCode (cname = "gst_discoverer_container_info_get_streams")]
                        public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_streams ();
                }
-               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererInfo", type_id = 
"gst_discoverer_info_get_type ()")]
+               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererInfo", 
lower_case_cprefix = "gst_discoverer_info_", type_id = "gst_discoverer_info_get_type ()")]
                [GIR (name = "DiscovererInfo")]
                public class DiscovererInfo : GLib.Object {
                        [CCode (has_construct_function = false)]
                        protected DiscovererInfo ();
-                       [CCode (cname = "gst_discoverer_info_copy")]
                        public Gst.PbUtils.DiscovererInfo copy ();
-                       [CCode (cname = "gst_discoverer_info_get_audio_streams")]
                        public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_audio_streams ();
-                       [CCode (cname = "gst_discoverer_info_get_container_streams")]
                        public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_container_streams ();
-                       [CCode (cname = "gst_discoverer_info_get_duration")]
                        public Gst.ClockTime get_duration ();
-                       [CCode (cname = "gst_discoverer_info_get_misc")]
                        [Deprecated]
                        public unowned Gst.Structure get_misc ();
-                       [CCode (array_length = false, array_null_terminated = true, cname = 
"gst_discoverer_info_get_missing_elements_installer_details")]
+                       [CCode (array_length = false, array_null_terminated = true)]
                        public string[] get_missing_elements_installer_details ();
-                       [CCode (cname = "gst_discoverer_info_get_result")]
                        public Gst.PbUtils.DiscovererResult get_result ();
-                       [CCode (cname = "gst_discoverer_info_get_seekable")]
                        public bool get_seekable ();
-                       [CCode (cname = "gst_discoverer_info_get_stream_info")]
                        public Gst.PbUtils.DiscovererStreamInfo get_stream_info ();
-                       [CCode (cname = "gst_discoverer_info_get_stream_list")]
                        public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_stream_list ();
-                       [CCode (cname = "gst_discoverer_info_get_streams")]
                        public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_streams (GLib.Type streamtype);
-                       [CCode (cname = "gst_discoverer_info_get_subtitle_streams")]
                        public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_subtitle_streams ();
-                       [CCode (cname = "gst_discoverer_info_get_tags")]
                        public unowned Gst.TagList get_tags ();
-                       [CCode (cname = "gst_discoverer_info_get_toc")]
                        public unowned Gst.Toc get_toc ();
-                       [CCode (cname = "gst_discoverer_info_get_uri")]
                        public unowned string get_uri ();
-                       [CCode (cname = "gst_discoverer_info_get_video_streams")]
                        public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_video_streams ();
                }
-               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererStreamInfo", 
type_id = "gst_discoverer_stream_info_get_type ()")]
+               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererStreamInfo", 
lower_case_cprefix = "gst_discoverer_stream_info_", type_id = "gst_discoverer_stream_info_get_type ()")]
                [GIR (name = "DiscovererStreamInfo")]
                public class DiscovererStreamInfo : GLib.Object {
                        [CCode (has_construct_function = false)]
                        protected DiscovererStreamInfo ();
-                       [CCode (cname = "gst_discoverer_stream_info_get_caps")]
                        public Gst.Caps get_caps ();
-                       [CCode (cname = "gst_discoverer_stream_info_get_misc")]
                        [Deprecated]
                        public unowned Gst.Structure get_misc ();
-                       [CCode (cname = "gst_discoverer_stream_info_get_next")]
                        public Gst.PbUtils.DiscovererStreamInfo get_next ();
-                       [CCode (cname = "gst_discoverer_stream_info_get_previous")]
                        public Gst.PbUtils.DiscovererStreamInfo get_previous ();
-                       [CCode (cname = "gst_discoverer_stream_info_get_stream_id")]
                        public unowned string get_stream_id ();
-                       [CCode (cname = "gst_discoverer_stream_info_get_stream_type_nick")]
                        public unowned string get_stream_type_nick ();
-                       [CCode (cname = "gst_discoverer_stream_info_get_tags")]
                        public unowned Gst.TagList get_tags ();
-                       [CCode (cname = "gst_discoverer_stream_info_get_toc")]
                        public unowned Gst.Toc get_toc ();
-                       [CCode (cname = "gst_discoverer_stream_info_list_free")]
                        public static void list_free (GLib.List<Gst.PbUtils.DiscovererStreamInfo> infos);
                }
-               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererSubtitleInfo", 
type_id = "gst_discoverer_subtitle_info_get_type ()")]
+               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererSubtitleInfo", 
lower_case_cprefix = "gst_discoverer_subtitle_info_", type_id = "gst_discoverer_subtitle_info_get_type ()")]
                [GIR (name = "DiscovererSubtitleInfo")]
                public class DiscovererSubtitleInfo : Gst.PbUtils.DiscovererStreamInfo {
                        [CCode (has_construct_function = false)]
                        protected DiscovererSubtitleInfo ();
-                       [CCode (cname = "gst_discoverer_subtitle_info_get_language")]
                        public unowned string get_language ();
                }
-               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererVideoInfo", type_id 
= "gst_discoverer_video_info_get_type ()")]
+               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererVideoInfo", 
lower_case_cprefix = "gst_discoverer_video_info_", type_id = "gst_discoverer_video_info_get_type ()")]
                [GIR (name = "DiscovererVideoInfo")]
                public class DiscovererVideoInfo : Gst.PbUtils.DiscovererStreamInfo {
                        [CCode (has_construct_function = false)]
                        protected DiscovererVideoInfo ();
-                       [CCode (cname = "gst_discoverer_video_info_get_bitrate")]
                        public uint get_bitrate ();
-                       [CCode (cname = "gst_discoverer_video_info_get_depth")]
                        public uint get_depth ();
-                       [CCode (cname = "gst_discoverer_video_info_get_framerate_denom")]
                        public uint get_framerate_denom ();
-                       [CCode (cname = "gst_discoverer_video_info_get_framerate_num")]
                        public uint get_framerate_num ();
-                       [CCode (cname = "gst_discoverer_video_info_get_height")]
                        public uint get_height ();
-                       [CCode (cname = "gst_discoverer_video_info_get_max_bitrate")]
                        public uint get_max_bitrate ();
-                       [CCode (cname = "gst_discoverer_video_info_get_par_denom")]
                        public uint get_par_denom ();
-                       [CCode (cname = "gst_discoverer_video_info_get_par_num")]
                        public uint get_par_num ();
-                       [CCode (cname = "gst_discoverer_video_info_get_width")]
                        public uint get_width ();
-                       [CCode (cname = "gst_discoverer_video_info_is_image")]
                        public bool is_image ();
-                       [CCode (cname = "gst_discoverer_video_info_is_interlaced")]
                        public bool is_interlaced ();
                }
-               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstEncodingAudioProfile", 
type_id = "gst_encoding_audio_profile_get_type ()")]
+               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstEncodingAudioProfile", 
lower_case_cprefix = "gst_encoding_audio_profile_", type_id = "gst_encoding_audio_profile_get_type ()")]
                [GIR (name = "EncodingAudioProfile")]
                public class EncodingAudioProfile : Gst.PbUtils.EncodingProfile {
-                       [CCode (cname = "gst_encoding_audio_profile_new", has_construct_function = false)]
+                       [CCode (has_construct_function = false)]
                        public EncodingAudioProfile (Gst.Caps format, string? preset, Gst.Caps? restriction, 
uint presence);
                }
-               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstEncodingContainerProfile", 
type_id = "gst_encoding_container_profile_get_type ()")]
+               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstEncodingContainerProfile", 
lower_case_cprefix = "gst_encoding_container_profile_", type_id = "gst_encoding_container_profile_get_type 
()")]
                [GIR (name = "EncodingContainerProfile")]
                public class EncodingContainerProfile : Gst.PbUtils.EncodingProfile {
-                       [CCode (cname = "gst_encoding_container_profile_new", has_construct_function = false)]
+                       [CCode (has_construct_function = false)]
                        public EncodingContainerProfile (string? name, string? description, Gst.Caps format, 
string? preset);
-                       [CCode (cname = "gst_encoding_container_profile_add_profile")]
                        public bool add_profile (owned Gst.PbUtils.EncodingProfile profile);
-                       [CCode (cname = "gst_encoding_container_profile_contains_profile")]
                        public bool contains_profile (Gst.PbUtils.EncodingProfile profile);
-                       [CCode (cname = "gst_encoding_container_profile_get_profiles")]
                        public unowned GLib.List<Gst.PbUtils.EncodingProfile> get_profiles ();
                }
-               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstEncodingProfile", type_id = 
"gst_encoding_profile_get_type ()")]
+               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstEncodingProfile", 
lower_case_cprefix = "gst_encoding_profile_", type_id = "gst_encoding_profile_get_type ()")]
                [GIR (name = "EncodingProfile")]
                public class EncodingProfile : GLib.Object {
                        [CCode (has_construct_function = false)]
                        protected EncodingProfile ();
-                       [CCode (cname = "gst_encoding_profile_find")]
                        public static Gst.PbUtils.EncodingProfile find (string targetname, string 
profilename, string? category);
-                       [CCode (cname = "gst_encoding_profile_from_discoverer")]
                        public static Gst.PbUtils.EncodingProfile from_discoverer (Gst.PbUtils.DiscovererInfo 
info);
-                       [CCode (cname = "gst_encoding_profile_get_description")]
                        public unowned string get_description ();
-                       [CCode (cname = "gst_encoding_profile_get_file_extension")]
                        public unowned string get_file_extension ();
-                       [CCode (cname = "gst_encoding_profile_get_format")]
                        public Gst.Caps get_format ();
-                       [CCode (cname = "gst_encoding_profile_get_input_caps")]
                        public Gst.Caps get_input_caps ();
-                       [CCode (cname = "gst_encoding_profile_get_name")]
                        public unowned string get_name ();
-                       [CCode (cname = "gst_encoding_profile_get_presence")]
                        public uint get_presence ();
-                       [CCode (cname = "gst_encoding_profile_get_preset")]
                        public unowned string get_preset ();
-                       [CCode (cname = "gst_encoding_profile_get_preset_name")]
                        public unowned string get_preset_name ();
-                       [CCode (cname = "gst_encoding_profile_get_restriction")]
                        public Gst.Caps get_restriction ();
-                       [CCode (cname = "gst_encoding_profile_get_type_nick")]
                        public unowned string get_type_nick ();
-                       [CCode (cname = "gst_encoding_profile_is_equal")]
                        public bool is_equal (Gst.PbUtils.EncodingProfile b);
-                       [CCode (cname = "gst_encoding_profile_set_description")]
                        public void set_description (string description);
-                       [CCode (cname = "gst_encoding_profile_set_format")]
                        public void set_format (Gst.Caps format);
-                       [CCode (cname = "gst_encoding_profile_set_name")]
                        public void set_name (string name);
-                       [CCode (cname = "gst_encoding_profile_set_presence")]
                        public void set_presence (uint presence);
-                       [CCode (cname = "gst_encoding_profile_set_preset")]
                        public void set_preset (string preset);
-                       [CCode (cname = "gst_encoding_profile_set_preset_name")]
                        public void set_preset_name (string preset_name);
-                       [CCode (cname = "gst_encoding_profile_set_restriction")]
                        public void set_restriction (owned Gst.Caps restriction);
                        [NoAccessorMethod]
                        public Gst.Caps restriction_caps { owned get; set; }
                }
-               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstEncodingTarget", type_id = 
"gst_encoding_target_get_type ()")]
+               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstEncodingTarget", 
lower_case_cprefix = "gst_encoding_target_", type_id = "gst_encoding_target_get_type ()")]
                [GIR (name = "EncodingTarget")]
                public class EncodingTarget : GLib.Object {
-                       [CCode (cname = "gst_encoding_target_new", has_construct_function = false)]
+                       [CCode (has_construct_function = false)]
                        public EncodingTarget (string name, string category, string description, 
GLib.List<Gst.PbUtils.EncodingProfile> profiles);
-                       [CCode (cname = "gst_encoding_target_add_profile")]
                        public bool add_profile (owned Gst.PbUtils.EncodingProfile profile);
-                       [CCode (cname = "gst_encoding_target_get_category")]
                        public unowned string get_category ();
-                       [CCode (cname = "gst_encoding_target_get_description")]
                        public unowned string get_description ();
-                       [CCode (cname = "gst_encoding_target_get_name")]
                        public unowned string get_name ();
-                       [CCode (cname = "gst_encoding_target_get_profile")]
                        public Gst.PbUtils.EncodingProfile get_profile (string name);
-                       [CCode (cname = "gst_encoding_target_get_profiles")]
                        public unowned GLib.List<Gst.PbUtils.EncodingProfile> get_profiles ();
-                       [CCode (cname = "gst_encoding_target_load")]
                        public static Gst.PbUtils.EncodingTarget load (string name, string? category) throws 
GLib.Error;
-                       [CCode (cname = "gst_encoding_target_load_from_file")]
                        public static Gst.PbUtils.EncodingTarget load_from_file (string filepath) throws 
GLib.Error;
-                       [CCode (cname = "gst_encoding_target_save")]
                        public bool save () throws GLib.Error;
-                       [CCode (cname = "gst_encoding_target_save_to_file")]
                        public bool save_to_file (string filepath) throws GLib.Error;
                }
-               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstEncodingVideoProfile", 
type_id = "gst_encoding_video_profile_get_type ()")]
+               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstEncodingVideoProfile", 
lower_case_cprefix = "gst_encoding_video_profile_", type_id = "gst_encoding_video_profile_get_type ()")]
                [GIR (name = "EncodingVideoProfile")]
                public class EncodingVideoProfile : Gst.PbUtils.EncodingProfile {
-                       [CCode (cname = "gst_encoding_video_profile_new", has_construct_function = false)]
+                       [CCode (has_construct_function = false)]
                        public EncodingVideoProfile (Gst.Caps format, string? preset, Gst.Caps? restriction, 
uint presence);
-                       [CCode (cname = "gst_encoding_video_profile_get_pass")]
                        public uint get_pass ();
-                       [CCode (cname = "gst_encoding_video_profile_get_variableframerate")]
                        public bool get_variableframerate ();
-                       [CCode (cname = "gst_encoding_video_profile_set_pass")]
                        public void set_pass (uint pass);
-                       [CCode (cname = "gst_encoding_video_profile_set_variableframerate")]
                        public void set_variableframerate (bool variableframerate);
                }
-               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstInstallPluginsContext", 
copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = 
"gst_install_plugins_context_get_type ()")]
+               [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstInstallPluginsContext", 
copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_cprefix = 
"gst_install_plugins_context_", type_id = "gst_install_plugins_context_get_type ()")]
                [Compact]
                [GIR (name = "InstallPluginsContext")]
                public class InstallPluginsContext {
-                       [CCode (cname = "gst_install_plugins_context_new", has_construct_function = false)]
+                       [CCode (has_construct_function = false)]
                        public InstallPluginsContext ();
-                       [CCode (cname = "gst_install_plugins_context_free")]
                        public void free ();
-                       [CCode (cname = "gst_install_plugins_context_set_xid")]
                        public void set_xid (uint xid);
                }
                [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererResult", cprefix = 
"GST_DISCOVERER_", type_id = "gst_discoverer_result_get_type ()")]
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index 5b1f4b5..658a820 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -50,7 +50,7 @@ namespace Gst {
                        public Gst.Video.CodecState @ref ();
                        public void unref ();
                }
-               [CCode (cheader_filename = "gst/video/video.h", cname = "GstColorBalanceChannel", type_id = 
"gst_color_balance_channel_get_type ()")]
+               [CCode (cheader_filename = "gst/video/video.h", cname = "GstColorBalanceChannel", 
lower_case_cprefix = "gst_color_balance_channel_", type_id = "gst_color_balance_channel_get_type ()")]
                [GIR (name = "ColorBalanceChannel")]
                public class ColorBalanceChannel : GLib.Object {
                        public weak string label;
@@ -244,7 +244,7 @@ namespace Gst {
                        [NoAccessorMethod]
                        public bool show_preroll_frame { get; set construct; }
                }
-               [CCode (cheader_filename = "gst/video/video.h", cname = "GstColorBalance", type_cname = 
"GstColorBalanceInterface", type_id = "gst_color_balance_get_type ()")]
+               [CCode (cheader_filename = "gst/video/video.h", cname = "GstColorBalance", lower_case_cprefix 
= "gst_color_balance_", type_cname = "GstColorBalanceInterface", type_id = "gst_color_balance_get_type ()")]
                [GIR (name = "ColorBalance")]
                public interface ColorBalance : GLib.Object {
                        public abstract Gst.Video.ColorBalanceType get_balance_type ();
@@ -254,53 +254,31 @@ namespace Gst {
                        [HasEmitter]
                        public virtual signal void value_changed (Gst.Video.ColorBalanceChannel channel, int 
value);
                }
-               [CCode (cheader_filename = "gst/video/video.h", cname = "GstNavigation", type_cname = 
"GstNavigationInterface", type_id = "gst_navigation_get_type ()")]
+               [CCode (cheader_filename = "gst/video/video.h", cname = "GstNavigation", lower_case_cprefix = 
"gst_navigation_", type_cname = "GstNavigationInterface", type_id = "gst_navigation_get_type ()")]
                [GIR (name = "Navigation")]
                public interface Navigation : GLib.Object {
-                       [CCode (cname = "gst_navigation_event_get_type")]
                        public static Gst.Video.NavigationEventType event_get_type (Gst.Event event);
-                       [CCode (cname = "gst_navigation_event_parse_command")]
                        public static bool event_parse_command (Gst.Event event, Gst.Video.NavigationCommand 
command);
-                       [CCode (cname = "gst_navigation_event_parse_key_event")]
                        public static bool event_parse_key_event (Gst.Event event, string key);
-                       [CCode (cname = "gst_navigation_event_parse_mouse_button_event")]
                        public static bool event_parse_mouse_button_event (Gst.Event event, int button, 
double x, double y);
-                       [CCode (cname = "gst_navigation_event_parse_mouse_move_event")]
                        public static bool event_parse_mouse_move_event (Gst.Event event, double x, double y);
-                       [CCode (cname = "gst_navigation_message_get_type")]
                        public static Gst.Video.NavigationMessageType message_get_type (Gst.Message message);
-                       [CCode (cname = "gst_navigation_message_new_angles_changed")]
                        public static Gst.Message message_new_angles_changed (Gst.Object src, uint cur_angle, 
uint n_angles);
-                       [CCode (cname = "gst_navigation_message_new_commands_changed")]
                        public static Gst.Message message_new_commands_changed (Gst.Object src);
-                       [CCode (cname = "gst_navigation_message_new_mouse_over")]
                        public static Gst.Message message_new_mouse_over (Gst.Object src, bool active);
-                       [CCode (cname = "gst_navigation_message_parse_angles_changed")]
                        public static bool message_parse_angles_changed (Gst.Message message, uint cur_angle, 
uint n_angles);
-                       [CCode (cname = "gst_navigation_message_parse_mouse_over")]
                        public static bool message_parse_mouse_over (Gst.Message message, bool active);
-                       [CCode (cname = "gst_navigation_query_get_type")]
                        public static Gst.Video.NavigationQueryType query_get_type (Gst.Query query);
-                       [CCode (cname = "gst_navigation_query_new_angles")]
                        public static Gst.Query query_new_angles ();
-                       [CCode (cname = "gst_navigation_query_new_commands")]
                        public static Gst.Query query_new_commands ();
-                       [CCode (cname = "gst_navigation_query_parse_angles")]
                        public static bool query_parse_angles (Gst.Query query, uint cur_angle, uint 
n_angles);
-                       [CCode (cname = "gst_navigation_query_parse_commands_length")]
                        public static bool query_parse_commands_length (Gst.Query query, out uint n_cmds);
-                       [CCode (cname = "gst_navigation_query_parse_commands_nth")]
                        public static bool query_parse_commands_nth (Gst.Query query, uint nth, out 
Gst.Video.NavigationCommand cmd);
-                       [CCode (cname = "gst_navigation_query_set_angles")]
                        public static void query_set_angles (Gst.Query query, uint cur_angle, uint n_angles);
-                       [CCode (cname = "gst_navigation_query_set_commandsv")]
                        public static void query_set_commandsv (Gst.Query query, int n_cmds, 
Gst.Video.NavigationCommand cmds);
-                       [CCode (cname = "gst_navigation_send_command")]
                        public void send_command (Gst.Video.NavigationCommand command);
                        public abstract void send_event (Gst.Structure structure);
-                       [CCode (cname = "gst_navigation_send_key_event")]
                        public void send_key_event (string event, string key);
-                       [CCode (cname = "gst_navigation_send_mouse_event")]
                        public void send_mouse_event (string event, int button, double x, double y);
                }
                [CCode (cheader_filename = "gst/video/video.h", type_id = "gst_video_orientation_get_type 
()")]
diff --git a/vapi/rest-0.7.vapi b/vapi/rest-0.7.vapi
index 444fb73..bce196e 100644
--- a/vapi/rest-0.7.vapi
+++ b/vapi/rest-0.7.vapi
@@ -2,7 +2,7 @@
 
 [CCode (cprefix = "Rest", gir_namespace = "Rest", gir_version = "0.7", lower_case_cprefix = "rest_")]
 namespace Rest {
-       [CCode (cheader_filename = "rest/oauth2-proxy.h", cname = "OAuth2Proxy", cprefix = "oauth2_proxy_", 
type_id = "oauth2_proxy_get_type ()")]
+       [CCode (cheader_filename = "rest/oauth2-proxy.h", cname = "OAuth2Proxy", lower_case_cprefix = 
"oauth2_proxy_", type_id = "oauth2_proxy_get_type ()")]
        public class OAuth2Proxy : Rest.Proxy {
                [CCode (has_construct_function = false, type = "RestProxy*")]
                public OAuth2Proxy (string client_id, string auth_endpoint, string url_format, bool 
binding_required);
@@ -19,12 +19,12 @@ namespace Rest {
                [NoAccessorMethod]
                public string client_id { owned get; construct; }
        }
-       [CCode (cheader_filename = "rest/oauth2-proxy-call.h", cname = "OAuth2ProxyCall", cprefix = 
"oauth2_proxy_call_", type_id = "oauth2_proxy_call_get_type ()")]
+       [CCode (cheader_filename = "rest/oauth2-proxy-call.h", cname = "OAuth2ProxyCall", lower_case_cprefix 
= "oauth2_proxy_call_", type_id = "oauth2_proxy_call_get_type ()")]
        public class OAuth2ProxyCall : Rest.ProxyCall {
                [CCode (has_construct_function = false)]
                protected OAuth2ProxyCall ();
        }
-       [CCode (cheader_filename = "rest/oauth-proxy.h", cname = "OAuthProxy", cprefix = "oauth_proxy_", 
type_id = "oauth_proxy_get_type ()")]
+       [CCode (cheader_filename = "rest/oauth-proxy.h", cname = "OAuthProxy", lower_case_cprefix = 
"oauth_proxy_", type_id = "oauth_proxy_get_type ()")]
        public class OAuthProxy : Rest.Proxy {
                [CCode (has_construct_function = false, type = "RestProxy*")]
                public OAuthProxy (string consumer_key, string consumer_secret, string url_format, bool 
binding_required);
@@ -54,7 +54,7 @@ namespace Rest {
                public string token { get; set; }
                public string token_secret { get; set; }
        }
-       [CCode (cheader_filename = "rest/oauth-proxy-call.h", cname = "OAuthProxyCall", cprefix = 
"oauth_proxy_call_", type_id = "oauth_proxy_call_get_type ()")]
+       [CCode (cheader_filename = "rest/oauth-proxy-call.h", cname = "OAuthProxyCall", lower_case_cprefix = 
"oauth_proxy_call_", type_id = "oauth_proxy_call_get_type ()")]
        public class OAuthProxyCall : Rest.ProxyCall {
                [CCode (has_construct_function = false)]
                protected OAuthProxyCall ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]