Skip to content

Commit

Permalink
Renergate GIR-based bindings to pick up array length-types
Browse files Browse the repository at this point in the history
  • Loading branch information
ricotz committed May 6, 2021
1 parent 2eb2711 commit 67a58ca
Show file tree
Hide file tree
Showing 30 changed files with 429 additions and 429 deletions.
48 changes: 24 additions & 24 deletions vapi/clutter-1.0.vapi
Expand Up @@ -4625,15 +4625,15 @@ namespace Clutter {
[CCode (cheader_filename = "clutter/clutter.h")]
[Version (since = "1.10")]
public static unowned Clutter.PaintNode get_paint_node (GLib.Value value);
[CCode (array_length_pos = 1.1, array_length_type = "gsize", cheader_filename = "clutter/clutter.h")]
[CCode (array_length_pos = 1.1, cheader_filename = "clutter/clutter.h")]
[Version (since = "0.8")]
public static unowned float[] get_shader_float (GLib.Value value);
[CCode (array_length_pos = 1.1, array_length_type = "gsize", cheader_filename = "clutter/clutter.h")]
public static unowned float[:size_t] get_shader_float (GLib.Value value);
[CCode (array_length_pos = 1.1, cheader_filename = "clutter/clutter.h")]
[Version (since = "0.8")]
public static unowned int[] get_shader_int (GLib.Value value);
[CCode (array_length_pos = 1.1, array_length_type = "gsize", cheader_filename = "clutter/clutter.h")]
public static unowned int[:size_t] get_shader_int (GLib.Value value);
[CCode (array_length_pos = 1.1, cheader_filename = "clutter/clutter.h")]
[Version (since = "0.8")]
public static unowned float[] get_shader_matrix (GLib.Value value);
public static unowned float[:size_t] get_shader_matrix (GLib.Value value);
[CCode (cheader_filename = "clutter/clutter.h")]
[Version (since = "0.8")]
public static unowned Clutter.Units? get_units (GLib.Value value);
Expand Down Expand Up @@ -5697,7 +5697,7 @@ namespace Clutter {
public BehaviourPath.with_description (Clutter.Alpha? alpha, string desc);
[CCode (has_construct_function = false, type = "ClutterBehaviour*")]
[Version (since = "1.0")]
public BehaviourPath.with_knots (Clutter.Alpha? alpha, [CCode (array_length_cname = "n_knots", array_length_pos = 2.1, array_length_type = "guint")] Clutter.Knot[] knots);
public BehaviourPath.with_knots (Clutter.Alpha? alpha, [CCode (array_length_cname = "n_knots", array_length_pos = 2.1)] Clutter.Knot[:uint] knots);
public Clutter.Path path { get; set; }
public virtual signal void knot_reached (uint knot_num);
}
Expand Down Expand Up @@ -5826,7 +5826,7 @@ namespace Clutter {
[Version (deprecated = true, deprecated_since = "1.10", since = "1.2")]
public void pack_before (Clutter.Actor actor, Clutter.Actor? sibling, ...);
[Version (deprecated = true, deprecated_since = "1.10", since = "1.2")]
public void packv (Clutter.Actor actor, [CCode (array_length_cname = "n_properties", array_length_pos = 1.5, array_length_type = "guint")] string[] properties, [CCode (array_length_cname = "n_properties", array_length_pos = 1.5, array_length_type = "guint")] GLib.Value[] values);
public void packv (Clutter.Actor actor, [CCode (array_length_cname = "n_properties", array_length_pos = 1.5)] string[:uint] properties, [CCode (array_length_cname = "n_properties", array_length_pos = 1.5)] GLib.Value[:uint] values);
[Version (deprecated = true, deprecated_since = "1.10", since = "1.2")]
public void set_color (Clutter.Color? color);
[Version (deprecated = true, deprecated_since = "1.10", since = "1.2")]
Expand Down Expand Up @@ -6614,9 +6614,9 @@ namespace Clutter {
public void get_key_frame (uint index_, out double key, out Clutter.AnimationMode mode, out GLib.Value value);
public uint get_n_key_frames ();
public void set_key_frame (uint index_, double key, Clutter.AnimationMode mode, GLib.Value value);
public void set_key_frames ([CCode (array_length_cname = "n_key_frames", array_length_pos = 0.5, array_length_type = "guint")] double[] key_frames);
public void set_modes ([CCode (array_length_cname = "n_modes", array_length_pos = 0.5, array_length_type = "guint")] Clutter.AnimationMode[] modes);
public void set_values ([CCode (array_length_cname = "n_values", array_length_pos = 0.5, array_length_type = "guint")] GLib.Value[] values);
public void set_key_frames ([CCode (array_length_cname = "n_key_frames", array_length_pos = 0.5)] double[:uint] key_frames);
public void set_modes ([CCode (array_length_cname = "n_modes", array_length_pos = 0.5)] Clutter.AnimationMode[:uint] modes);
public void set_values ([CCode (array_length_cname = "n_values", array_length_pos = 0.5)] GLib.Value[:uint] values);
}
[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_layout_manager_get_type ()")]
[Version (since = "1.2")]
Expand All @@ -6643,8 +6643,8 @@ namespace Clutter {
public virtual GLib.Type get_child_meta_type ();
public virtual void get_preferred_height (Clutter.Container container, float for_width, out float min_height_p, out float nat_height_p);
public virtual void get_preferred_width (Clutter.Container container, float for_height, out float min_width_p, out float nat_width_p);
[CCode (array_length_pos = 0.1, array_length_type = "guint")]
public GLib.ParamSpec[] list_child_properties ();
[CCode (array_length_pos = 0.1)]
public GLib.ParamSpec[:uint] list_child_properties ();
public virtual void set_container (Clutter.Container? container);
[HasEmitter]
public virtual signal void layout_changed ();
Expand All @@ -6663,15 +6663,15 @@ namespace Clutter {
[CCode (has_construct_function = false, type = "ClutterModel*")]
public ListModel (uint n_columns, ...);
[CCode (cname = "clutter_list_model_newv", has_construct_function = false, type = "ClutterModel*")]
public ListModel.newv ([CCode (array_length_cname = "n_columns", array_length_pos = 0.5, array_length_type = "guint")] GLib.Type[] types, [CCode (array_length_cname = "n_columns", array_length_pos = 0.5, array_length_type = "guint")] string[] names);
public ListModel.newv ([CCode (array_length_cname = "n_columns", array_length_pos = 0.5)] GLib.Type[:uint] types, [CCode (array_length_cname = "n_columns", array_length_pos = 0.5)] string[:uint] names);
}
[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_model_get_type ()")]
[Version (deprecated = true, deprecated_since = "1.24", since = "0.6")]
public abstract class Model : GLib.Object, Clutter.Scriptable {
[CCode (has_construct_function = false)]
protected Model ();
public void append (...);
public void appendv ([CCode (array_length_cname = "n_columns", array_length_pos = 0.5, array_length_type = "guint")] uint[] columns, [CCode (array_length_cname = "n_columns", array_length_pos = 0.5, array_length_type = "guint")] GLib.Value[] values);
public void appendv ([CCode (array_length_cname = "n_columns", array_length_pos = 0.5)] uint[:uint] columns, [CCode (array_length_cname = "n_columns", array_length_pos = 0.5)] GLib.Value[:uint] values);
public bool filter_iter (Clutter.ModelIter iter);
public bool filter_row (uint row);
public void @foreach (Clutter.ModelForeachFunc func);
Expand All @@ -6689,18 +6689,18 @@ namespace Clutter {
[NoWrapper]
public virtual unowned Clutter.ModelIter insert_row (int index_);
public void insert_value (uint row, uint column, GLib.Value value);
public void insertv (uint row, [CCode (array_length_cname = "n_columns", array_length_pos = 1.5, array_length_type = "guint")] uint[] columns, [CCode (array_length_cname = "n_columns", array_length_pos = 1.5, array_length_type = "guint")] GLib.Value[] values);
public void insertv (uint row, [CCode (array_length_cname = "n_columns", array_length_pos = 1.5)] uint[:uint] columns, [CCode (array_length_cname = "n_columns", array_length_pos = 1.5)] GLib.Value[:uint] values);
public void prepend (...);
public void prependv ([CCode (array_length_cname = "n_columns", array_length_pos = 0.5, array_length_type = "guint")] uint[] columns, [CCode (array_length_cname = "n_columns", array_length_pos = 0.5, array_length_type = "guint")] GLib.Value[] values);
public void prependv ([CCode (array_length_cname = "n_columns", array_length_pos = 0.5)] uint[:uint] columns, [CCode (array_length_cname = "n_columns", array_length_pos = 0.5)] GLib.Value[:uint] values);
public void remove (uint row);
[NoWrapper]
public virtual void remove_row (uint row);
public void resort ();
public void set_filter (owned Clutter.ModelFilterFunc? func);
public void set_names ([CCode (array_length_cname = "n_columns", array_length_pos = 0.5, array_length_type = "guint")] string[] names);
public void set_names ([CCode (array_length_cname = "n_columns", array_length_pos = 0.5)] string[:uint] names);
public void set_sort (int column, owned Clutter.ModelSortFunc? func);
public void set_sorting_column (int column);
public void set_types ([CCode (array_length_cname = "n_columns", array_length_pos = 0.5, array_length_type = "guint")] GLib.Type[] types);
public void set_types ([CCode (array_length_cname = "n_columns", array_length_pos = 0.5)] GLib.Type[:uint] types);
[Version (since = "1.0")]
public bool filter_set { get; }
public virtual signal void filter_changed ();
Expand Down Expand Up @@ -6967,7 +6967,7 @@ namespace Clutter {
[CCode (has_construct_function = false)]
public Script ();
[Version (since = "0.8")]
public void add_search_paths ([CCode (array_length_cname = "n_paths", array_length_pos = 1.1, array_length_type = "gsize")] string[] paths);
public void add_search_paths ([CCode (array_length_cname = "n_paths", array_length_pos = 1.1)] string[:size_t] paths);
[Version (deprecated = true, deprecated_since = "1.12", since = "1.8")]
public void add_states (string? name, Clutter.State state);
public void connect_signals (void* user_data);
Expand Down Expand Up @@ -7745,9 +7745,9 @@ namespace Clutter {
[Version (since = "0.8")]
public bool has_marker (string marker_name);
public bool is_playing ();
[CCode (array_length = true, array_length_pos = 1.1, array_length_type = "gsize", array_null_terminated = true)]
[CCode (array_length = true, array_length_pos = 1.1, array_null_terminated = true)]
[Version (since = "0.8")]
public string[] list_markers (int msecs);
public string[:size_t] list_markers (int msecs);
public void pause ();
[Version (since = "0.8")]
public void remove_marker (string marker_name);
Expand Down Expand Up @@ -7937,9 +7937,9 @@ namespace Clutter {
public void child_set_property (Clutter.Actor child, string property, GLib.Value value);
[Version (since = "0.8")]
public static unowned GLib.ParamSpec class_find_child_property (GLib.ObjectClass klass, string property_name);
[CCode (array_length_pos = 1.1, array_length_type = "guint")]
[CCode (array_length_pos = 1.1)]
[Version (since = "0.8")]
public static GLib.ParamSpec[] class_list_child_properties (GLib.ObjectClass klass);
public static GLib.ParamSpec[:uint] class_list_child_properties (GLib.ObjectClass klass);
[Version (since = "1.2")]
public virtual void create_child_meta (Clutter.Actor actor);
[Version (since = "1.2")]
Expand Down
20 changes: 10 additions & 10 deletions vapi/gdk-pixbuf-2.0.vapi
Expand Up @@ -78,9 +78,9 @@ namespace Gdk {
public GLib.HashTable<weak string,weak string> get_options ();
[CCode (array_length = false)]
public unowned uint8[] get_pixels ();
[CCode (array_length_pos = 0.1, array_length_type = "guint")]
[CCode (array_length_pos = 0.1)]
[Version (since = "2.26")]
public unowned uint8[] get_pixels_with_length ();
public unowned uint8[:uint] get_pixels_with_length ();
public int get_rowstride ();
public int get_width ();
[Version (since = "2.40")]
Expand All @@ -96,9 +96,9 @@ namespace Gdk {
public void saturate_and_pixelate (Gdk.Pixbuf dest, float saturation, bool pixelate);
public bool save (string filename, string type, ...) throws GLib.Error;
[Version (since = "2.4")]
public bool save_to_buffer ([CCode (array_length_cname = "buffer_size", array_length_pos = 1.5, array_length_type = "gsize")] out uint8[] buffer, string type, ...) throws GLib.Error;
public bool save_to_buffer ([CCode (array_length_cname = "buffer_size", array_length_pos = 1.5)] out uint8[:size_t] buffer, string type, ...) throws GLib.Error;
[Version (since = "2.4")]
public bool save_to_bufferv ([CCode (array_length_cname = "buffer_size", array_length_pos = 1.5, array_length_type = "gsize")] out uint8[] buffer, string type, [CCode (array_length = false, array_null_terminated = true)] string[]? option_keys, [CCode (array_length = false, array_null_terminated = true)] string[]? option_values) throws GLib.Error;
public bool save_to_bufferv ([CCode (array_length_cname = "buffer_size", array_length_pos = 1.5)] out uint8[:size_t] buffer, string type, [CCode (array_length = false, array_null_terminated = true)] string[]? option_keys, [CCode (array_length = false, array_null_terminated = true)] string[]? option_values) throws GLib.Error;
[Version (since = "2.4")]
public bool save_to_callback ([CCode (delegate_target_pos = 1.5)] Gdk.PixbufSaveFunc save_func, string type, ...) throws GLib.Error;
[Version (since = "2.4")]
Expand Down Expand Up @@ -218,7 +218,7 @@ namespace Gdk {
public PixbufLoader.with_mime_type (string mime_type) throws GLib.Error;
[CCode (has_construct_function = false)]
public PixbufLoader.with_type (string image_type) throws GLib.Error;
public bool write ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] buf) throws GLib.Error;
public bool write ([CCode (array_length_cname = "count", array_length_pos = 1.1)] uint8[:size_t] buf) throws GLib.Error;
[Version (since = "2.30")]
public bool write_bytes (GLib.Bytes buffer) throws GLib.Error;
public virtual signal void area_prepared ();
Expand Down Expand Up @@ -286,9 +286,9 @@ namespace Gdk {
public uint32 height;
[CCode (array_length = false)]
public weak uint8[] pixel_data;
public bool deserialize ([CCode (array_length_cname = "stream_length", array_length_pos = 0.5, array_length_type = "guint")] uint8[] stream) throws GLib.Error;
[CCode (array_length_pos = 0.1, array_length_type = "guint")]
public uint8[] serialize ();
public bool deserialize ([CCode (array_length_cname = "stream_length", array_length_pos = 0.5)] uint8[:uint] stream) throws GLib.Error;
[CCode (array_length_pos = 0.1)]
public uint8[:uint] serialize ();
public GLib.StringBuilder to_csource (string name, Gdk.PixdataDumpType dump_type);
}
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", cprefix = "GDK_COLORSPACE_", type_id = "gdk_colorspace_get_type ()")]
Expand Down Expand Up @@ -377,7 +377,7 @@ namespace Gdk {
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", has_target = false, has_typedef = false)]
public delegate unowned Gdk.Pixbuf PixbufModuleLoadFunc (void* f) throws GLib.Error;
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", has_target = false, has_typedef = false)]
public delegate bool PixbufModuleLoadIncrementFunc (void* context, [CCode (array_length_cname = "size", array_length_pos = 2.1, array_length_type = "guint", type = "const guchar*")] uint8[] buf) throws GLib.Error;
public delegate bool PixbufModuleLoadIncrementFunc (void* context, [CCode (array_length_cname = "size", array_length_pos = 2.1, type = "const guchar*")] uint8[:uint] buf) throws GLib.Error;
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", has_target = false, has_typedef = false)]
public delegate unowned Gdk.Pixbuf PixbufModuleLoadXpmDataFunc (string data);
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", instance_pos = 2.9)]
Expand All @@ -397,7 +397,7 @@ namespace Gdk {
public delegate void PixbufModuleUpdatedFunc (Gdk.Pixbuf pixbuf, int x, int y, int width, int height);
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", error_pos = 1.8, instance_pos = 1.9)]
[Version (since = "2.4")]
public delegate bool PixbufSaveFunc ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] buf) throws GLib.Error;
public delegate bool PixbufSaveFunc ([CCode (array_length_cname = "count", array_length_pos = 1.1)] uint8[:size_t] buf) throws GLib.Error;
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", cname = "GDK_PIXBUF_MAGIC_NUMBER")]
public const int PIXBUF_MAGIC_NUMBER;
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", cname = "GDK_PIXBUF_MAJOR")]
Expand Down

0 comments on commit 67a58ca

Please sign in to comment.