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

Add GValueArray binding, patch by Mark Lee, fixes bug 557843

2008-10-25  Jürg Billeter  <j@bitron.ch>

	* vapi/gobject-2.0.vapi:

	Add GValueArray binding, patch by Mark Lee, fixes bug 557843

svn path=/trunk/; revision=1917
parent 94d15a46
2008-10-25 Jürg Billeter <j@bitron.ch>
* vapi/gobject-2.0.vapi:
Add GValueArray binding, patch by Mark Lee, fixes bug 557843
2008-10-25 Jürg Billeter <j@bitron.ch>
* vapi/packages/gconf-2.0/:
......
......@@ -41,6 +41,7 @@ Levi Bard
Maciej Piechotka
Marc-André Lureau
Marcelo Lira
Mark Lee
Mart Roosmaa
Mathias Hasselmann
Matías De la Puente
......
......@@ -253,7 +253,7 @@ namespace GLib {
public static delegate void ValueTransform (Value src_value, out Value dest_value);
[CCode (type_id = "G_TYPE_VALUE", marshaller_type_name = "BOXED", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed", type_signature = "v")]
[CCode (copy_function = "g_value_copy", destroy_function = "g_value_unset", type_id = "G_TYPE_VALUE", marshaller_type_name = "BOXED", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed", type_signature = "v")]
public struct Value {
[CCode (cname = "G_VALUE_HOLDS")]
public bool holds (Type type);
......@@ -353,8 +353,19 @@ namespace GLib {
public static delegate void ClosureNotify (void* data, Closure closure);
[Compact]
[CCode (type_id = "G_TYPE_VALUE_ARRAY")]
public struct ValueArray {
public class ValueArray : Boxed {
public uint n_values;
public Value[] values;
public ValueArray (uint n_prealloced);
public weak Value? get_nth (uint index_);
public void append (Value value);
public void prepend (Value value);
public void insert (uint index_, Value value);
public void remove (uint index_);
public void sort (CompareFunc compare_func);
public void sort_with_data (CompareDataFunc compare_func);
}
namespace Signal {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment