Commit ea9ca5af authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

Array length attribute fixes

2009-01-04  Jürg Billeter  <j@bitron.ch>

	* vapi/curses.vapi:
	* vapi/enchant.vapi:
	* vapi/gnome-keyring-1.vapi:
	* vapi/gobject-2.0.vapi:
	* vapi/goocanvas.vapi:
	* vapi/gsl.vapi:
	* vapi/hildon-1.vapi:
	* vapi/libftdi.vapi:
	* vapi/libpanelapplet-2.0.vapi:
	* vapi/libusb.vapi:
	* vapi/libxml-2.0.vapi:
	* vapi/packages/unique-1.0/:
	* vapi/sdl-gfx.vapi:
	* vapi/sdl-mixer.vapi:
	* vapi/sdl-net.vapi:
	* vapi/sdl-ttf.vapi:
	* vapi/sqlite3.vapi:
	* vapi/tiff.vapi:
	* vapi/unique-1.0.vapi:

	Array length attribute fixes

svn path=/trunk/; revision=2271
parent 29d84799
2009-01-04 Jürg Billeter <j@bitron.ch>
* vapi/curses.vapi:
* vapi/enchant.vapi:
* vapi/gnome-keyring-1.vapi:
* vapi/gobject-2.0.vapi:
* vapi/goocanvas.vapi:
* vapi/gsl.vapi:
* vapi/hildon-1.vapi:
* vapi/libftdi.vapi:
* vapi/libpanelapplet-2.0.vapi:
* vapi/libusb.vapi:
* vapi/libxml-2.0.vapi:
* vapi/packages/unique-1.0/:
* vapi/sdl-gfx.vapi:
* vapi/sdl-mixer.vapi:
* vapi/sdl-net.vapi:
* vapi/sdl-ttf.vapi:
* vapi/sqlite3.vapi:
* vapi/tiff.vapi:
* vapi/unique-1.0.vapi:
Array length attribute fixes
2009-01-04 Jürg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala:
......
......@@ -79,11 +79,9 @@ namespace Curses {
[CCode (cname = "mvwaddch")]
public int mvaddch(int y, int x, ulong ch);
[CCode (cname = "mvwaddchnstr")]
[NoArrayLength]
public int mvaddchnstr(int y, int x, ulong[] chstr, int n);
public int mvaddchnstr(int y, int x, [CCode (array_length = false)] ulong[] chstr, int n);
[CCode (cname = "mvwaddchstr")]
[NoArrayLength]
public int mvaddchstr(int y, int x, ulong[] chstr);
public int mvaddchstr(int y, int x, [CCode (array_length = false)] ulong[] chstr);
[CCode (cname = "mvwaddnstr")]
public int mvaddnstr(int y, int x, string str, int n);
[CCode (cname = "mvwaddstr")]
......@@ -104,11 +102,9 @@ namespace Curses {
[CCode (cname = "mvwinch")]
public ulong mvinch(int y, int x);
[CCode (cname = "mvwinchnstr")]
[NoArrayLength]
public int mvinchnstr(int y, int x, ulong[] chstr, int n);
public int mvinchnstr(int y, int x, [CCode (array_length = false)] ulong[] chstr, int n);
[CCode (cname = "mvwinchstr")]
[NoArrayLength]
public int mvinchstr(int y, int x, ulong[] chstr);
public int mvinchstr(int y, int x, [CCode (array_length = false)] ulong[] chstr);
[CCode (cname = "mvwinnstr")]
public int mvinnstr(int y, int x, string str, int n);
[CCode (cname = "mvwinsch")]
......@@ -145,10 +141,8 @@ namespace Curses {
public int untouchwin();
[CCode (cname = "waddch")]
public int addch(ulong ch);
[NoArrayLength]
public int waddchnstr(ulong[] chstr, int n);
[NoArrayLength]
public int waddchstr(ulong[] chstr);
public int waddchnstr([CCode (array_length = false)] ulong[] chstr, int n);
public int waddchstr([CCode (array_length = false)] ulong[] chstr);
public int waddnstr(string str, int n);
[CCode (cname = "waddstr")]
public int addstr(string str);
......@@ -203,11 +197,9 @@ namespace Curses {
[CCode (cname = "winch")]
public ulong inch();
[CCode (cname = "winchnstr")]
[NoArrayLength]
public int inchnstr(ulong[] chstr, int n);
public int inchnstr([CCode (array_length = false)] ulong[] chstr, int n);
[CCode (cname = "winchstr")]
[NoArrayLength]
public int inchstr(ulong[] chstr);
public int inchstr([CCode (array_length = false)] ulong[] chstr);
[CCode (cname = "winnstr")]
public int innstr(string str, int n);
[CCode (cname = "winsch")]
......@@ -278,10 +270,8 @@ namespace Curses {
}
public int addch(ulong ch);
[NoArrayLength]
public int addchnstr(ulong[] chstr, int n);
[NoArrayLength]
public int addchstr(ulong[] chstr);
public int addchnstr([CCode (array_length = false)] ulong[] chstr, int n);
public int addchstr([CCode (array_length = false)] ulong[] chstr);
public int addnstr(string str, int n);
public int addstr(string str);
public int attroff(ulong attr);
......@@ -329,10 +319,8 @@ namespace Curses {
public bool has_il();
public int hline(ulong ch, int n);
public ulong inch();
[NoArrayLength]
public int inchnstr(ulong[] chstr, int n);
[NoArrayLength]
public int inchstr(ulong[] chstr);
public int inchnstr([CCode (array_length = false)] ulong[] chstr, int n);
public int inchstr([CCode (array_length = false)] ulong[] chstr);
public weak Window initscr();
public int init_color(short color, short r, short g, short b);
public int init_pair(short pair, Color f, Color b);
......@@ -349,10 +337,8 @@ namespace Curses {
public string ulongname();
public int move(int y, int x);
public int mvaddch(int y, int x, ulong ch);
[NoArrayLength]
public int mvaddchnstr(int y, int x, ulong[] chstr, int n);
[NoArrayLength]
public int mvaddchstr(int y, int x, ulong[] chstr);
public int mvaddchnstr(int y, int x, [CCode (array_length = false)] ulong[] chstr, int n);
public int mvaddchstr(int y, int x, [CCode (array_length = false)] ulong[] chstr);
public int mvaddnstr(int y, int x, string str, int n);
public int mvaddstr(int y, int x, string str);
public int mvchgat(int y, int x, int n, ulong attr, short color);
......@@ -363,10 +349,8 @@ namespace Curses {
public int mvgetstr(int y, int x, string str);
public int mvhline(int y, int x, ulong ch, int n);
public ulong mvinch(int y, int x);
[NoArrayLength]
public int mvinchnstr(int y, int x, ulong[] chstr, int n);
[NoArrayLength]
public int mvinchstr(int y, int x, ulong[] chstr);
public int mvinchnstr(int y, int x, [CCode (array_length = false)] ulong[] chstr, int n);
public int mvinchstr(int y, int x, [CCode (array_length = false)] ulong[] chstr);
public int mvinnstr(int y, int x, string str, int n);
public int mvinsch(int y, int x, ulong ch);
public int mvinsnstr(int y, int x, string str, int n);
......
......@@ -23,14 +23,12 @@ namespace Enchant {
public class Dict {
public int check (string word, long len = -1);
public weak string[] suggest (string word, long len = -1);
[NoArrayLength ()]
public void free_string_list (string[] string_list);
public void free_string_list ([CCode (array_length = false)] string[] string_list);
public void add_to_session (string word, long len = -1);
public int is_in_session (string word, long len = -1);
public void store_replacement ( string mis, long mis_len, string cor, long cor_len);
public void add_to_pwl ( string word, long len = -1);
public void describe (DictDescribeFn fn);
[NoArrayLength ()]
public weak string get_error ();
}
}
......@@ -18,7 +18,7 @@ namespace GnomeKeyring {
}
[CCode (ref_function = "gnome_keyring_attribute_list_ref", unref_function = "gnome_keyring_attribute_list_unref", cheader_filename = "gnome-keyring.h")]
public class AttributeList {
[NoArrayLength]
[CCode (array_length = false)]
public GnomeKeyring.Attribute[] data;
public uint len;
public void append_string (string name, string value);
......
......@@ -385,8 +385,7 @@ namespace GLib {
public static void stop_emission (void* instance, uint signal_id, Quark detail);
public static void stop_emission_by_name (void* instance, string detailed_signal);
public static void override_class_closure (uint signal_id, Type instance_type, Closure class_closure);
[NoArrayLength]
public static void chain_from_overridden (Value[] instance_and_params, out Value return_value);
public static void chain_from_overridden ([CCode (array_length = false)] Value[] instance_and_params, out Value return_value);
public static ulong add_emission_hook (uint signal_id, Quark detail, SignalEmissionHook hook_func, DestroyNotify? data_destroy);
public static void remove_emission_hook (uint signal_id, ulong hook_id);
public static bool parse_name (string detailed_signal, Type itype, out uint signal_id, out Quark detail, bool force_detail_quark);
......@@ -420,7 +419,7 @@ namespace GLib {
public SignalFlags signal_flags;
public Type return_type;
public uint n_params;
[NoArrayLength]
[CCode (array_length = false)]
public weak Type[] param_types;
}
......
This diff is collapsed.
This diff is collapsed.
/* hildon-1.vapi generated by lt-vapigen, do not modify. */
/* hildon-1.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Hildon", lower_case_cprefix = "hildon_")]
namespace Hildon {
......@@ -10,11 +10,11 @@ namespace Hildon {
public void set_markup (string markup);
public void set_text (string text);
public void set_timeout (uint timeout);
public static weak Gtk.Widget show_animation (Gtk.Widget widget, string animation_name, string text);
public static weak Gtk.Widget show_information (Gtk.Widget widget, string icon_name, string text);
public static weak Gtk.Widget show_information_with_markup (Gtk.Widget widget, string icon_name, string markup);
public static weak Gtk.Widget show_informationf (Gtk.Widget widget, string icon_name, string format);
public static weak Gtk.Widget show_progress (Gtk.Widget widget, Gtk.ProgressBar bar, string text);
public static unowned Gtk.Widget show_animation (Gtk.Widget widget, string animation_name, string text);
public static unowned Gtk.Widget show_information (Gtk.Widget widget, string icon_name, string text);
public static unowned Gtk.Widget show_information_with_markup (Gtk.Widget widget, string icon_name, string markup);
public static unowned Gtk.Widget show_informationf (Gtk.Widget widget, string icon_name, string format);
public static unowned Gtk.Widget show_progress (Gtk.Widget widget, Gtk.ProgressBar bar, string text);
[NoAccessorMethod]
public bool is_timed { get; construct; }
[NoAccessorMethod]
......@@ -36,21 +36,21 @@ namespace Hildon {
}
[CCode (cheader_filename = "hildon/hildon.h")]
public class Calendar : Gtk.Widget, Atk.Implementor, Gtk.Buildable {
[NoArrayLength]
[CCode (array_length = false)]
public weak int[] day_month;
public Hildon.CalendarDisplayOptions display_flags;
public int focus_col;
public int focus_row;
public weak Gdk.GC gc;
[NoArrayLength]
[CCode (array_length = false)]
public weak char[] grow_space;
public weak Gtk.Style header_style;
public int highlight_col;
public int highlight_row;
public weak Gtk.Style label_style;
[NoArrayLength]
[CCode (array_length = false)]
public weak int[] marked_date;
[NoArrayLength]
[CCode (array_length = false)]
public weak Gdk.Color[] marked_date_color;
public int num_marked_dates;
public int selected_day;
......@@ -117,12 +117,12 @@ namespace Hildon {
[CCode (cheader_filename = "hildon/hildon.h")]
public class Caption : Gtk.EventBox, Atk.Implementor, Gtk.Buildable {
public bool get_child_expand ();
public weak Gtk.Widget get_icon_image ();
public unowned Gtk.Widget get_icon_image ();
public Hildon.CaptionIconPosition get_icon_position ();
public weak string get_label ();
public unowned string get_label ();
public float get_label_alignment ();
public weak string get_separator ();
public weak Gtk.SizeGroup get_size_group ();
public unowned string get_separator ();
public unowned Gtk.SizeGroup get_size_group ();
public Hildon.CaptionStatus get_status ();
public bool is_mandatory ();
[CCode (type = "GtkWidget*", has_construct_function = false)]
......@@ -150,7 +150,7 @@ namespace Hildon {
[CCode (cheader_filename = "hildon/hildon.h")]
public class CodeDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
public void clear_code ();
public weak string get_code ();
public unowned string get_code ();
[CCode (type = "GtkWidget*", has_construct_function = false)]
public CodeDialog ();
public void set_help_text (string text);
......@@ -227,7 +227,7 @@ namespace Hildon {
public class FindToolbar : Gtk.Toolbar, Atk.Implementor, Gtk.Buildable {
public int get_active ();
public bool get_active_iter (out Gtk.TreeIter iter);
public int get_last_index ();
public int32 get_last_index ();
public void highlight_entry (bool get_focus);
[CCode (type = "GtkWidget*", has_construct_function = false)]
public FindToolbar (string label);
......@@ -254,7 +254,7 @@ namespace Hildon {
}
[CCode (cheader_filename = "hildon/hildon.h")]
public class FontSelectionDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
public weak string get_preview_text ();
public unowned string get_preview_text ();
[CCode (type = "GtkWidget*", has_construct_function = false)]
public FontSelectionDialog (Gtk.Window parent, string title);
public void set_preview_text (string text);
......@@ -296,7 +296,7 @@ namespace Hildon {
}
[CCode (cheader_filename = "hildon/hildon.h")]
public class GetPasswordDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
public weak string get_password ();
public unowned string get_password ();
[CCode (type = "GtkWidget*", has_construct_function = false)]
public GetPasswordDialog (Gtk.Window parent, bool get_old);
public void set_caption (string new_caption);
......@@ -324,8 +324,8 @@ namespace Hildon {
}
[CCode (cheader_filename = "hildon/hildon.h")]
public class LoginDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
public weak string get_password ();
public weak string get_username ();
public unowned string get_password ();
public unowned string get_username ();
[CCode (type = "GtkWidget*", has_construct_function = false)]
public LoginDialog (Gtk.Window parent);
public void set_message (string msg);
......@@ -377,9 +377,9 @@ namespace Hildon {
public class Program : GLib.Object {
public void add_window (Hildon.Window window);
public bool get_can_hibernate ();
public weak Gtk.Menu get_common_menu ();
public weak Gtk.Toolbar get_common_toolbar ();
public static weak Hildon.Program get_instance ();
public unowned Gtk.Menu get_common_menu ();
public unowned Gtk.Toolbar get_common_toolbar ();
public static unowned Hildon.Program get_instance ();
public bool get_is_topmost ();
public void remove_window (Hildon.Window window);
public void set_can_hibernate (bool can_hibernate);
......@@ -395,7 +395,7 @@ namespace Hildon {
public int get_max ();
public int get_min ();
public void get_range (int start, int end);
public weak string get_separator ();
public unowned string get_separator ();
[CCode (type = "GtkWidget*", has_construct_function = false)]
public RangeEditor ();
public void set_higher (int value);
......@@ -429,7 +429,7 @@ namespace Hildon {
}
[CCode (cheader_filename = "hildon/hildon.h")]
public class SetPasswordDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
public weak string get_password ();
public unowned string get_password ();
public bool get_protected ();
[CCode (type = "GtkWidget*", has_construct_function = false)]
public SetPasswordDialog (Gtk.Window parent, bool modify_protection);
......@@ -501,7 +501,7 @@ namespace Hildon {
}
[CCode (cheader_filename = "hildon/hildon.h")]
public class Volumebar : Gtk.Container, Atk.Implementor, Gtk.Buildable {
public weak Gtk.Adjustment get_adjustment ();
public unowned Gtk.Adjustment get_adjustment ();
public double get_level ();
public bool get_mute ();
public void set_level (double level);
......@@ -542,7 +542,7 @@ namespace Hildon {
public void add_toolbar (Gtk.Toolbar toolbar);
public void add_with_scrollbar (Gtk.Widget child);
public bool get_is_topmost ();
public weak Gtk.Menu get_menu ();
public unowned Gtk.Menu get_menu ();
[CCode (type = "GtkWidget*", has_construct_function = false)]
public Window ();
public void remove_toolbar (Gtk.Toolbar toolbar);
......
......@@ -89,8 +89,7 @@ namespace FTDI {
public int set_interface (Interface iface);
public void set_usbdev (USB.Device * usbdev);
public int usb_find_all (out DeviceList devlist, int vendor, int product);
[NoArrayLength]
public int usb_get_strings (USB.Device * usbdev, char[] manufacturer, int manufacturer_len, char[] description, int description_len, char[] serial, int serial_len);
public int usb_get_strings (USB.Device * usbdev, [CCode (array_length = false)] char[] manufacturer, int manufacturer_len, [CCode (array_length = false)] char[] description, int description_len, [CCode (array_length = false)] char[] serial, int serial_len);
public int usb_open_dev (USB.Device * usbdev);
public int usb_open (int vendor, int product);
public int usb_open_desc (int vendor, int product, string description, string serial);
......@@ -99,12 +98,10 @@ namespace FTDI {
public int usb_close ();
public int set_baudrate (int baudrate);
public int set_line_property (BitsType bits, StopBitsType sbit, ParityType parity);
[NoArrayLength]
public int write_data (uchar[] buf, int size);
public int write_data ([CCode (array_length = false)] uchar[] buf, int size);
public int write_data_set_chunksize (int chunksize);
public int write_data_get_chunksize (out int chunksize);
[NoArrayLength]
public int read_data (uchar[] buf, uint size);
public int read_data ([CCode (array_length = false)] uchar[] buf, uint size);
public int read_data_set_chunksize (int chunksize);
public int read_data_get_chunksize (out int chunksize);
public int enable_bitbang (uchar bitmask);
......@@ -125,7 +122,7 @@ namespace FTDI {
public ChipType type;
public int baudrate;
public uchar bitbang_enabled;
[NoArrayLength]
[CCode (array_length = false)]
public uchar[] readbuffer;
public uint readbuffer_offset;
public uint readbuffer_remaining;
......@@ -136,7 +133,6 @@ namespace FTDI {
public int in_ep;
public int out_ep;
public uchar bitbang_mode;
[NoArrayLength]
public string error_str;
}
}
......@@ -29,8 +29,7 @@ namespace Panel {
public void set_flags (AppletFlags flags);
public static int factory_main (string iid, GLib.Type applet_type, AppletFactoryCallback callback);
public void set_background_widget (Gtk.Widget widget);
[NoArrayLength]
public void setup_menu (string xml, BonoboUI.Verb[] verb_list, void* data);
public void setup_menu (string xml, [CCode (array_length = false)] BonoboUI.Verb[] verb_list, void* data);
public signal void change_background (AppletBackgroundType type, ref Gdk.Color color, Gdk.Pixmap pixmap);
}
......
......@@ -136,7 +136,7 @@ namespace USB {
public uint8 bmAttributes;
public uint8 MaxPower;
[NoArrayLength]
[CCode (array_length = false)]
public Interface[] @interface;
public uchar[] extra;
......@@ -168,7 +168,7 @@ namespace USB {
public string filename;
public Bus * bus;
public DeviceDescriptor descriptor;
[NoArrayLength]
[CCode (array_length = false)]
public ConfigDescriptor[] config;
public void * dev;
public uint8 devnum;
......@@ -191,21 +191,15 @@ namespace USB {
public class DeviceHandle {
[CCode (cname = "usb_open")]
public DeviceHandle (Device * dev);
[NoArrayLength]
public int get_string (int index, int langid, char[] buf, size_t buflen);
[NoArrayLength]
public int get_string_simple (int index, char[] buf, size_t buflen);
public int get_string (int index, int langid, [CCode (array_length = false)] char[] buf, size_t buflen);
public int get_string_simple (int index, [CCode (array_length = false)] char[] buf, size_t buflen);
public int get_descriptor_by_endpoint (int ep, uchar type, uchar index, void * buf, int size);
public int get_descriptor (uchar type, uchar index, void * buf, int size);
[NoArrayLength]
public int bulk_write (int ep, char[] bytes, int size, int timeout);
[NoArrayLength]
public int bulk_read (int ep, char[] bytes, int size, int timeout);
[NoArrayLength]
public int interrupt_write (int ep, char[] bytes, int size, int timeout);
[NoArrayLength]
public int interrupt_read (int ep, char[] bytes, int size, int timeout);
public int bulk_write (int ep, [CCode (array_length = false)] char[] bytes, int size, int timeout);
public int bulk_read (int ep, [CCode (array_length = false)] char[] bytes, int size, int timeout);
public int interrupt_write (int ep, [CCode (array_length = false)] char[] bytes, int size, int timeout);
public int interrupt_read (int ep, [CCode (array_length = false)] char[] bytes, int size, int timeout);
public int control_msg (int requesttype, int request, int value, int index, char[] bytes, int size, int timeout);
public int set_configuration (int configuration);
public int claim_interface (int @interface);
......@@ -217,7 +211,7 @@ namespace USB {
public Device * device ();
}
[NoArrayLength]
[CCode (array_length = false)]
public static weak char[] strerror ();
public static void init ();
public static void set_debug (int level);
......
......@@ -27,8 +27,7 @@ namespace Xml {
/* nanoftp - minimal FTP implementation */
[CCode (cname = "ftpDataCallback", cheader_filename = "libxml/nanoftp.h")]
[NoArrayLength]
public static delegate void FtpDataCallback (void* userData, char[] data, int len);
public static delegate void FtpDataCallback (void* userData, [CCode (array_length = false)] char[] data, int len);
[CCode (cname = "ftpListCallback", cheader_filename = "libxml/nanoftp.h")]
public static delegate void FtpListCallback (void* userData, string filename, string attrib, string owner, string group, ulong size, int links, int year, string month, int day, int hour, int minute);
......@@ -805,8 +804,7 @@ namespace Xml {
public static delegate int InputCloseCallback (void* context);
[CCode (cname = "xmlInputReadCallback", cheader_filename = "libxml/xmlIO.h")]
[NoArrayLength]
public static delegate int InputReadCallback (void* context, char[] buffer, int len);
public static delegate int InputReadCallback (void* context, [CCode (array_length = false)] char[] buffer, int len);
/* xmlschemas - incomplete XML Schemas structure implementation */
......@@ -876,8 +874,7 @@ namespace Xml {
public TextReader.for_io (InputReadCallback ioread, InputCloseCallback ioclose, void* ioctx, string url, string encoding, int options);
[CCode (cname = "xmlReaderForMemory")]
[NoArrayLength]
public TextReader.for_memory (char[] buffer, int size, string url, string encoding, int options);
public TextReader.for_memory ([CCode (array_length = false)] char[] buffer, int size, string url, string encoding, int options);
[CCode (cname = "xmlReaderNewDoc")]
public int new_doc (string cur, string url, string? encoding, int options);
......@@ -892,8 +889,7 @@ namespace Xml {
public int new_io (InputReadCallback ioread, InputCloseCallback ioclose, void* ioctx, string url, string encoding, int options);
[CCode (cname = "xmlReaderNewMemory")]
[NoArrayLength]
public int new_memory (char[] buffer, int size, string url, string? encoding, int options);
public int new_memory ([CCode (array_length = false)] char[] buffer, int size, string url, string? encoding, int options);
[CCode (cname = "xmlReaderNewWalker")]
public int new_walker (Doc* doc);
......@@ -1043,8 +1039,7 @@ namespace Xml {
public Node* preserve ();
[CCode (cname = "xmlTextReaderPreservePattern")]
[NoArrayLength]
public int preserve_pattern (string pattern, string[] namespaces);
public int preserve_pattern (string pattern, [CCode (array_length = false)] string[] namespaces);
[CCode (cname = "xmlTextReaderQuoteChar")]
public int quote_char ();
......@@ -1283,13 +1278,11 @@ namespace Xml {
[CCode (cname = "startDocumentSAXFunc")]
public static delegate void startDocumentSAXFunc (void* ctx);
[NoArrayLength]
[CCode (cname = "startElementNsSAX2Func")]
public static delegate void startElementNsSAX2Func (void* ctx, string localname, string prefix, string URI, int nb_namespaces, string[] namespaces, int nb_attributes, int nb_defaulted, string[] attributes);
public static delegate void startElementNsSAX2Func (void* ctx, string localname, string prefix, string URI, int nb_namespaces, [CCode (array_length = false)] string[] namespaces, int nb_attributes, int nb_defaulted, [CCode (array_length = false)] string[] attributes);
[NoArrayLength]
[CCode (cname = "startElementSAXFunc")]
public static delegate void startElementSAXFunc (void* ctx, string name, string[] atts);
public static delegate void startElementSAXFunc (void* ctx, string name, [CCode (array_length = false)] string[] atts);
[CCode (cname = "unparsedEntityDeclSAXFunc")]
public static delegate void unparsedEntityDeclSAXFunc (void* ctx, string name, string publicId, string systemId, string notationName);
......
......@@ -7,5 +7,4 @@ unique_message_data_copy transfer_ownership="1"
unique_message_data_set.data nullable="1"
unique_message_data_get_text transfer_ownership="1"
unique_message_data_get_uris is_array="1" no_array_length="1" transfer_ownership="1"
unique_message_data_set_uris no_array_length="1"
unique_message_data_set_uris.uris is_array="1"
unique_message_data_set_uris.uris is_array="1" no_array_length="1"
......@@ -180,33 +180,27 @@ namespace SDLGraphics {
[Compact]
public class Polygon {
[CCode (cname="polygonColor")]
[NoArrayLength]
public static int outline_color(Surface dst, int16[] vx, int16[] vy,
public static int outline_color(Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int n, uint32 color);
[CCode (cname="polygonRGBA")]
[NoArrayLength]
public static int outline_rgba(Surface dst, int16[] vx, int16[] vy,
public static int outline_rgba(Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int n, uchar r, uchar g, uchar b, uchar a);
[CCode (cname="aapolygonColor")]
[NoArrayLength]
public static int outline_color_aa(Surface dst, int16[] vx, int16[] vy,
public static int outline_color_aa(Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int n, uint32 color);
[CCode (cname="aapolygonRGBA")]
[NoArrayLength]
public static int outline_rgba_aa(Surface dst, int16[] vx, int16[] vy,
public static int outline_rgba_aa(Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int n, uchar r, uchar g, uchar b, uchar a);
[CCode (cname="filledPolygonColor")]
[NoArrayLength]
public static int fill_color(Surface dst, int16[] vx, int16[] vy,
public static int fill_color(Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int n, uint32 color);
[CCode (cname="filledPolygonRGBA")]
[NoArrayLength]
public static int fill_rgba(Surface dst, int16[] vx, int16[] vy,
public static int fill_rgba(Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int n, uchar r, uchar g, uchar b, uchar a);
}// Polygon
......@@ -214,13 +208,11 @@ namespace SDLGraphics {
[Compact]
public class BezierCurve {
[CCode (cname="bezierColor")]
[NoArrayLength]
public static int color(Surface dst, int16[] vx, int16[] vy,
public static int color(Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int vertices, int steps, uint32 color);
[CCode (cname="bezierRGBA")]
[NoArrayLength]
public static int rgba(Surface dst, int16[] vx, int16[] vy,
public static int rgba(Surface dst, [CCode (array_length = false)] int16[] vx, [CCode (array_length = false)] int16[] vy,
int vertices, int steps, uchar r, uchar g, uchar b, uchar a);
}// BezierCurve
......@@ -295,147 +287,111 @@ namespace SDLGraphics {
public static void disable_mmx();
[CCode (cname="SDL_imageFilterAdd")]
[NoArrayLength]
public static int add(uchar[] src1, uchar[] src2, uchar[] dst, int length);
public static int add([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterMean")]
[NoArrayLength]
public static int mean(uchar[] src1, uchar[] src2, uchar[] dst, int length);
public static int mean([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterSub")]
[NoArrayLength]
public static int subtract(uchar[] src1, uchar[] src2, uchar[] dst, int length);
public static int subtract([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterAbsDiff")]
[NoArrayLength]
public static int absolute_difference(uchar[] src1, uchar[] src2, uchar[] dst, int length);
public static int absolute_difference([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterMult")]
[NoArrayLength]
public static int multiply(uchar[] src1, uchar[] src2, uchar[] dst, int length);
public static int multiply([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterMultNor")]
[NoArrayLength]
public static int multiply_normalized(uchar[] src1, uchar[] src2, uchar[] dst, int length);
public static int multiply_normalized([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterMultDivby2")]
[NoArrayLength]
public static int multiply_half(uchar[] src1, uchar[] src2, uchar[] dst, int length);
public static int multiply_half([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterMultDivby4")]
[NoArrayLength]
public static int multiply_quarter(uchar[] src1, uchar[] src2, uchar[] dst, int length);
public static int multiply_quarter([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterBitAnd")]
[NoArrayLength]
public static int and(uchar[] src1, uchar[] src2, uchar[] dst, int length);
public static int and([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterBitOr")]
[NoArrayLength]
public static int or(uchar[] src1, uchar[] src2, uchar[] dst, int length);
public static int or([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterDiv")]
[NoArrayLength]
public static int divide(uchar[] src1, uchar[] src2, uchar[] dst, int length);
public static int divide([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] src2, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterBitNegation")]
[NoArrayLength]
public static int negate(uchar[] src1, uchar[] dst, int length);
public static int negate([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length);
[CCode (cname="SDL_imageFilterAddByte")]
[NoArrayLength]
public static int add_uchar(uchar[] src1, uchar[] dst, int length, uchar addend);
public static int add_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar addend);
[CCode (cname="SDL_imageFilterAddUint")]
[NoArrayLength]
public static int add_uint(uchar[] src1, uchar[] dst, int length, uint addend);
public static int add_uint([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uint addend);
[CCode (cname="SDL_imageFilterAddByteToHalf")]
[NoArrayLength]
public static int halve_add_uchar(uchar[] src1, uchar[] dst, int length, uchar addend);
public static int halve_add_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar addend);
[CCode (cname="SDL_imageFilterSubByte")]
[NoArrayLength]
public static int subtract_uchar(uchar[] src1, uchar[] dst, int length, uchar subtrahend);
public static int subtract_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar subtrahend);
[CCode (cname="SDL_imageFilterSubUint")]
[NoArrayLength]
public static int subtract_uint(uchar[] src1, uchar[] dst, int length, uint subtrahend);
public static int subtract_uint([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uint subtrahend);
[CCode (cname="SDL_imageFilterShiftRight")]
[NoArrayLength]
public static int shift_right_uchar(uchar[] src1, uchar[] dst, int length, uchar shiftcount);
public static int shift_right_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar shiftcount);
[CCode (cname="SDL_imageFilterShiftRightUint")]
[NoArrayLength]
public static int shift_right_uint(uchar[] src1, uchar[] dst, int length, uint shiftcount);
public static int shift_right_uint([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uint shiftcount);
[CCode (cname="SDL_imageFilterMultByByte")]
[NoArrayLength]
public static int multiply_uchar(uchar[] src1, uchar[] dst, int length, uchar multiplicand);
public static int multiply_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar multiplicand);
[CCode (cname="SDL_imageFilterShiftRightAndMultByByte")]
[NoArrayLength]
public static int shift_right_multiply_uchar(uchar[] src1, uchar[] dst, int length, uchar shiftcount, uchar multiplicand);
public static int shift_right_multiply_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar shiftcount, uchar multiplicand);
[CCode (cname="SDL_imageFilterShiftLeftByte")]
[NoArrayLength]
public static int shift_left_uchar(uchar[] src1, uchar[] dst, int length, uchar shiftcount);
public static int shift_left_uchar([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar shiftcount);
[CCode (cname="SDL_imageFilterShiftLeftUint")]
[NoArrayLength]
public static int shift_left_uint(uchar[] src1, uchar[] dst, int length, uint shiftcount);
public static int shift_left_uint([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uint shiftcount);
[CCode (cname="SDL_imageFilterBinarizeUsingThreshold")]
[NoArrayLength]
public static int binarize(uchar[] src1, uchar[] dst, int length, uchar threshold);
public static int binarize([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar threshold);
[CCode (cname="SDL_imageFilterClipToRange")]
[NoArrayLength]
public static int clip(uchar[] src1, uchar[] dst, int length, uchar min, uchar max);
public static int clip([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, uchar min, uchar max);
[CCode (cname="SDL_imageFilterNormalize")]
[NoArrayLength]
public static int normalize(uchar[] src1, uchar[] dst, int length, int cmin, int cmax, int nmin, int nmax);
public static int normalize([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int length, int cmin, int cmax, int nmin, int nmax);
[CCode (cname="SDL_imageFilterConvolveKernel3x3Divide")]
[NoArrayLength]
public static int convolve_3x3_divide(uchar[] src1, uchar[] dst, int rows, int columns, int16[] kernel, uchar divisor);
public static int convolve_3x3_divide([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar divisor);
[CCode (cname="SDL_imageFilterConvolveKernel5x5Divide")]
[NoArrayLength]
public static int convolve_5x5_divide(uchar[] src1, uchar[] dst, int rows, int columns, int16[] kernel, uchar divisor);
public static int convolve_5x5_divide([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar divisor);
[CCode (cname="SDL_imageFilterConvolveKernel7x7Divide")]
[NoArrayLength]
public static int convolve_7x7_divide(uchar[] src1, uchar[] dst, int rows, int columns, int16[] kernel, uchar divisor);
public static int convolve_7x7_divide([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar divisor);
[CCode (cname="SDL_imageFilterConvolveKernel9x9Divide")]
[NoArrayLength]
public static int convolve_9x9_divide(uchar[] src1, uchar[] dst, int rows, int columns, int16[] kernel, uchar divisor);
public static int convolve_9x9_divide([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar divisor);
[CCode (cname="SDL_imageFilterConvolveKernel3x3ShiftRight")]
[NoArrayLength]
public static int convolve_3x3_shift(uchar[] src1, uchar[] dst, int rows, int columns, int16[] kernel, uchar shiftcount);
public static int convolve_3x3_shift([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar shiftcount);
[CCode (cname="SDL_imageFilterConvolveKernel5x5ShiftRight")]
[NoArrayLength]
public static int convolve_5x5_shift(uchar[] src1, uchar[] dst, int rows, int columns, int16[] kernel, uchar shiftcount);
public static int convolve_5x5_shift([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar shiftcount);
[CCode (cname="SDL_imageFilterConvolveKernel7x7ShiftRight")]
[NoArrayLength]
public static int convolve_7x7_shift(uchar[] src1, uchar[] dst, int rows, int columns, int16[] kernel, uchar shiftcount);
public static int convolve_7x7_shift([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar shiftcount);
[CCode (cname="SDL_imageFilterConvolveKernel9x9ShiftRight")]
[NoArrayLength]
public static int convolve_9x9_shift(uchar[] src1, uchar[] dst, int rows, int columns, int16[] kernel, uchar shiftcount);
public static int convolve_9x9_shift([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, [CCode (array_length = false)] int16[] kernel, uchar shiftcount);
[CCode (cname="SDL_imageFilterSobelX")]
[NoArrayLength]
public static int sobel(uchar[] src1, uchar[] dst, int rows, int columns);
public static int sobel([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns);
[CCode (cname="SDL_imageFilterSobelXShiftRight")]
[NoArrayLength]
public static int sobel_shift(uchar[] src1, uchar[] dst, int rows, int columns, uchar shiftcount);
public static int sobel_shift([CCode (array_length = false)] uchar[] src1, [CCode (array_length = false)] uchar[] dst, int rows, int columns, uchar shiftcount);
}// Filter
}// SDLGraphics
......@@ -47,8 +47,7 @@ namespace SDLMixer {
public Chunk.WAV(RWops src, int freesrc=0);
[CCode (cname="Mix_QuickLoad_WAV")]
[NoArrayLength]
public Chunk.QuickWAV(uchar[] mem);
public Chunk.QuickWAV([CCode ([CCode (array_length = false)] uchar[] mem);
[CCode (cname="Mix_QuickLoad_RAW")]
public Chunk.QuickRAW(uchar[] mem);
......
......@@ -56,7 +56,6 @@ namespace SDLNet {
* If 'host' is NULL, the resolved host will be set to INADDR_ANY.
*/
[CCode (cname="SDLNet_ResolveHost")]
[NoArrayLength]
public static int from_host(IPAddress address, string host, uint16 port);
/**
......@@ -249,8 +248,7 @@ namespace SDLNet {
* on error. This function does not block, so can return 0 packets pending.
*/
[CCode (cname="SDLNet_UDP_RecvV")]
[NoArrayLength]
public int receive_many(UDPPacket[] packets);
public int receive_many([CCode (array_length = false)] UDPPacket[] packets);
}// UDPSocket
[CCode (cname="struct _SDLNet_SocketSet", free_function="SDLNet_FreeSocketSet")]
......
......@@ -79,8 +79,7 @@ namespace SDLTTF {
public int size_utf8(string text, ref int w, ref int h);
[CCode (cname="TTF_SizeUNICODE")]