vala r1357 - in trunk: . vala vapi vapi/packages/gstreamer-0.10
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1357 - in trunk: . vala vapi vapi/packages/gstreamer-0.10
- Date: Sat, 10 May 2008 22:45:23 +0100 (BST)
Author: juergbi
Date: Sat May 10 21:45:23 2008
New Revision: 1357
URL: http://svn.gnome.org/viewvc/vala?rev=1357&view=rev
Log:
2008-05-10 Juerg Billeter <j bitron ch>
* vala/valainterfacewriter.vala: support base types for structs
* vapi/packages/gstreamer-0.10/: fix GstClockTime and
GstClockTimeDiff bindings, fixes bug 530809
* vapi/gstreamer-0.10.vapi: regenerated
Modified:
trunk/ChangeLog
trunk/vala/valainterfacewriter.vala
trunk/vapi/gstreamer-0.10.vapi
trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
Modified: trunk/vala/valainterfacewriter.vala
==============================================================================
--- trunk/vala/valainterfacewriter.vala (original)
+++ trunk/vala/valainterfacewriter.vala Sat May 10 21:45:23 2008
@@ -217,6 +217,22 @@
write_accessibility (st);
write_string ("struct ");
write_identifier (st.name);
+
+ var base_types = st.get_base_types ();
+ if (base_types.size > 0) {
+ write_string (" : ");
+
+ bool first = true;
+ foreach (DataType base_type in base_types) {
+ if (!first) {
+ write_string (", ");
+ } else {
+ first = false;
+ }
+ write_type (base_type);
+ }
+ }
+
write_begin_block ();
st.accept_children (this);
Modified: trunk/vapi/gstreamer-0.10.vapi
==============================================================================
--- trunk/vapi/gstreamer-0.10.vapi (original)
+++ trunk/vapi/gstreamer-0.10.vapi Sat May 10 21:45:23 2008
@@ -517,8 +517,8 @@
[NoArrayLength]
public uchar[] data;
public uint size;
- public weak Gst.ClockTime timestamp;
- public weak Gst.ClockTime duration;
+ public Gst.ClockTime timestamp;
+ public Gst.ClockTime duration;
public weak Gst.Caps caps;
public uint64 offset;
public uint64 offset_end;
@@ -548,8 +548,8 @@
public int refcount;
public weak Gst.Clock clock;
public Gst.ClockEntryType type;
- public weak Gst.ClockTime time;
- public weak Gst.ClockTime interval;
+ public Gst.ClockTime time;
+ public Gst.ClockTime interval;
public Gst.ClockReturn status;
public Gst.ClockCallback func;
public void* user_data;
@@ -557,18 +557,12 @@
[CCode (ref_function = "gst_clock_id_ref", unref_function = "gst_clock_id_unref", cheader_filename = "gst/gst.h")]
public class ClockID {
public static int compare_func (void* id1, void* id2);
- public weak Gst.ClockTime get_time ();
+ public Gst.ClockTime get_time ();
public void unschedule ();
public Gst.ClockReturn wait (Gst.ClockTimeDiff jitter);
public Gst.ClockReturn wait_async (Gst.ClockCallback func);
}
[CCode (cheader_filename = "gst/gst.h")]
- public class ClockTime {
- }
- [CCode (cheader_filename = "gst/gst.h")]
- public class ClockTimeDiff {
- }
- [CCode (cheader_filename = "gst/gst.h")]
public class DebugCategory {
public int threshold;
public uint color;
@@ -1133,34 +1127,34 @@
[CCode (cheader_filename = "gst/gst.h")]
public class Clock : Gst.Object {
public weak GLib.Mutex slave_lock;
- public weak Gst.ClockTime internal_calibration;
- public weak Gst.ClockTime external_calibration;
- public weak Gst.ClockTime rate_numerator;
- public weak Gst.ClockTime rate_denominator;
- public weak Gst.ClockTime last_time;
+ public Gst.ClockTime internal_calibration;
+ public Gst.ClockTime external_calibration;
+ public Gst.ClockTime rate_numerator;
+ public Gst.ClockTime rate_denominator;
+ public Gst.ClockTime last_time;
public weak GLib.List entries;
public weak GLib.Cond entries_changed;
- public weak Gst.ClockTime resolution;
+ public Gst.ClockTime resolution;
public weak Gst.Clock master;
public bool filling;
public int time_index;
- public weak Gst.ClockTime times;
+ public Gst.ClockTime times;
public weak Gst.ClockID clockid;
public bool add_observation (Gst.ClockTime slave, Gst.ClockTime master, double r_squared);
- public weak Gst.ClockTime adjust_unlocked (Gst.ClockTime internal);
+ public Gst.ClockTime adjust_unlocked (Gst.ClockTime internal);
public void get_calibration (Gst.ClockTime internal, Gst.ClockTime external, Gst.ClockTime rate_num, Gst.ClockTime rate_denom);
public weak Gst.Clock get_master ();
- public weak Gst.ClockTime get_time ();
+ public Gst.ClockTime get_time ();
public Clock.periodic_id (Gst.Clock clock, Gst.ClockTime start_time, Gst.ClockTime interval);
public Clock.single_shot_id (Gst.Clock clock, Gst.ClockTime time);
public void set_calibration (Gst.ClockTime internal, Gst.ClockTime external, Gst.ClockTime rate_num, Gst.ClockTime rate_denom);
public bool set_master (Gst.Clock master);
- public weak Gst.ClockTime set_resolution (Gst.ClockTime resolution);
- public weak Gst.ClockTime unadjust_unlocked (Gst.ClockTime external);
+ public Gst.ClockTime set_resolution (Gst.ClockTime resolution);
+ public Gst.ClockTime unadjust_unlocked (Gst.ClockTime external);
[NoWrapper]
- public virtual weak Gst.ClockTime change_resolution (Gst.ClockTime old_resolution, Gst.ClockTime new_resolution);
- public virtual weak Gst.ClockTime get_internal_time ();
- public virtual weak Gst.ClockTime get_resolution ();
+ public virtual Gst.ClockTime change_resolution (Gst.ClockTime old_resolution, Gst.ClockTime new_resolution);
+ public virtual Gst.ClockTime get_internal_time ();
+ public virtual Gst.ClockTime get_resolution ();
[NoWrapper]
public virtual void unschedule (Gst.ClockEntry entry);
[NoWrapper]
@@ -1189,7 +1183,7 @@
public Gst.StateChangeReturn last_return;
public weak Gst.Bus bus;
public weak Gst.Clock clock;
- public weak Gst.ClockTimeDiff base_time;
+ public Gst.ClockTimeDiff base_time;
public ushort numpads;
public weak GLib.List pads;
public ushort numsrcpads;
@@ -1210,7 +1204,7 @@
public void create_all_pads ();
public void found_tags (Gst.TagList list);
public void found_tags_for_pad (Gst.Pad pad, Gst.TagList list);
- public weak Gst.ClockTime get_base_time ();
+ public Gst.ClockTime get_base_time ();
public weak Gst.Bus get_bus ();
public weak Gst.Clock get_clock ();
public weak Gst.Pad get_compatible_pad (Gst.Pad pad, Gst.Caps caps);
@@ -1523,13 +1517,13 @@
[CCode (cheader_filename = "gst/gst.h")]
public class Pipeline : Gst.Bin, Gst.ChildProxy {
public weak Gst.Clock fixed_clock;
- public weak Gst.ClockTime stream_time;
+ public Gst.ClockTime stream_time;
public void auto_clock ();
public bool get_auto_flush_bus ();
public weak Gst.Bus get_bus ();
public weak Gst.Clock get_clock ();
- public weak Gst.ClockTime get_delay ();
- public weak Gst.ClockTime get_last_stream_time ();
+ public Gst.ClockTime get_delay ();
+ public Gst.ClockTime get_last_stream_time ();
public Pipeline (string name);
public void set_auto_flush_bus (bool auto_flush);
public bool set_clock (Gst.Clock clock);
@@ -1711,6 +1705,14 @@
public signal void new_uri (string uri);
}
[CCode (cheader_filename = "gst/gst.h")]
+ [SimpleType]
+ public struct ClockTime : uint64 {
+ }
+ [CCode (cheader_filename = "gst/gst.h")]
+ [SimpleType]
+ public struct ClockTimeDiff : int64 {
+ }
+ [CCode (cheader_filename = "gst/gst.h")]
public delegate bool BusFunc (Gst.Bus bus, Gst.Message message);
[CCode (cheader_filename = "gst/gst.h")]
public delegate Gst.BusSyncReply BusSyncHandler (Gst.Bus bus, Gst.Message message);
@@ -2067,7 +2069,7 @@
[CCode (cheader_filename = "gst/gst.h")]
public static uint64 util_gdouble_to_guint64 (double value);
[CCode (cheader_filename = "gst/gst.h")]
- public static weak Gst.ClockTime util_get_timestamp ();
+ public static Gst.ClockTime util_get_timestamp ();
[CCode (cheader_filename = "gst/gst.h")]
public static double util_guint64_to_gdouble (uint64 value);
[CCode (cheader_filename = "gst/gst.h")]
Modified: trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
==============================================================================
--- trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala (original)
+++ trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala Sat May 10 21:45:23 2008
@@ -22,4 +22,10 @@
namespace Gst {
public extern void init ([CCode (array_length_pos = 0.9)] ref string[] args);
+
+ public struct ClockTime : uint64 {
+ }
+
+ public struct ClockTimeDiff : int64 {
+ }
}
Modified: trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata
==============================================================================
--- trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata (original)
+++ trunk/vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata Sat May 10 21:45:23 2008
@@ -10,6 +10,8 @@
GstBuffer.data is_array="1"
GstChildProxy::child_added has_emitter="1"
GstChildProxy::child_removed has_emitter="1"
+GstClockTime hidden="1"
+GstClockTimeDiff hidden="1"
GstControlSource.get_value hidden="1"
GstControlSource.get_value_array hidden="1"
gst_element_link_many ellipsis="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]