~ubuntu-branches/ubuntu/trusty/vala/trusty

« back to all changes in this revision

Viewing changes to vapi/glib-2.0.vapi

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-01-06 10:31:36 UTC
  • mfrom: (1.5.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110106103136-e08fwvpxpqhz3rv0
Tags: 0.11.3-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
}
44
44
 
45
45
[SimpleType]
 
46
[GIR (name = "gint8")]
46
47
[CCode (cname = "gchar", cprefix = "g_ascii_", cheader_filename = "glib.h", type_id = "G_TYPE_CHAR", marshaller_type_name = "CHAR", get_value_function = "g_value_get_char", set_value_function = "g_value_set_char", default_value = "\'\\0\'", type_signature = "y")]
47
48
[IntegerType (rank = 2, min = 0, max = 127)]
48
49
public struct char {
73
74
}
74
75
 
75
76
[SimpleType]
 
77
[GIR (name = "guint8")]
76
78
[CCode (cname = "guchar", cheader_filename = "glib.h", type_id = "G_TYPE_UCHAR", marshaller_type_name = "UCHAR", get_value_function = "g_value_get_uchar", set_value_function = "g_value_set_uchar", default_value = "\'\\0\'", type_signature = "y")]
77
79
[IntegerType (rank = 3, min = 0, max = 255)]
78
80
public struct uchar {
265
267
}
266
268
 
267
269
[SimpleType]
 
270
[GIR (name = "gulong")]
268
271
[CCode (cname = "gsize", cheader_filename = "glib.h", type_id = "G_TYPE_ULONG", marshaller_type_name = "ULONG", get_value_function = "g_value_get_ulong", set_value_function = "g_value_set_ulong", default_value = "0UL")]
269
272
[IntegerType (rank = 9)]
270
273
public struct size_t {
293
296
}
294
297
 
295
298
[SimpleType]
 
299
[GIR (name = "glong")]
296
300
[CCode (cname = "gssize", cheader_filename = "glib.h", type_id = "G_TYPE_LONG", marshaller_type_name = "LONG", get_value_function = "g_value_get_long", set_value_function = "g_value_set_long", default_value = "0L")]
297
301
[IntegerType (rank = 8)]
298
302
public struct ssize_t {
1197
1201
        [CCode (cname = "g_utf8_strlen")]
1198
1202
        long utf8_strlen (ssize_t max);
1199
1203
 
1200
 
        public long length {
 
1204
        public int length {
1201
1205
                [CCode (cname = "strlen")]
1202
1206
                get;
1203
1207
        }
1623
1627
                public static unowned Thread<T> create<T> (ThreadFunc<T> func, bool joinable) throws ThreadError;
1624
1628
                [CCode (simple_generics = true)]
1625
1629
                public static unowned Thread<T> create_full<T> (ThreadFunc<T> func, ulong stack_size, bool joinable, bool bound, ThreadPriority priority) throws ThreadError;
 
1630
                [CCode (simple_generics = true)]
1626
1631
                public static unowned Thread<T> self<T> ();
1627
1632
                public T join ();
1628
1633
                public void set_priority (ThreadPriority priority);
2090
2095
                public string to_iso8601 ();
2091
2096
        }
2092
2097
 
2093
 
        public struct TimeSpec {
2094
 
                public time_t tv_usec;
2095
 
                public long tv_nsec;
2096
 
        }
2097
 
 
2098
2098
        public struct DateDay : uchar {
2099
2099
                [CCode (cname = "G_DATE_BAD_DAY")]
2100
2100
                public static DateDay BAD_DAY;
2432
2432
                PICTURES,
2433
2433
                PUBLIC_SHARE,
2434
2434
                TEMPLATES,
2435
 
                VIDEOS
 
2435
                VIDEOS,
 
2436
                [CCode (cname = "G_USER_N_DIRECTORIES")]
 
2437
                N_DIRECTORIES
2436
2438
        }
2437
2439
 
2438
2440
        namespace Path {
3689
3691
                public void @foreach (HFunc<K,V> func);
3690
3692
                [CCode (cname = "g_hash_table_foreach")]
3691
3693
                public void for_each (HFunc<K,V> func);
 
3694
                public unowned V find (HRFunc<K,V> predicate);
3692
3695
                public uint size ();
3693
3696
                public bool steal (K key);
3694
3697
                public void steal_all ();
3707
3710
        [CCode (has_target = false)]
3708
3711
        public delegate bool EqualFunc<G> (G a, G b);
3709
3712
        public delegate void HFunc<K,V> (K key, V value);
 
3713
        public delegate bool HRFunc<K,V> (K key, V value);
3710
3714
 
3711
3715
        [CCode (has_target = false)]
3712
3716
        public delegate void DestroyNotify (void* data);
4191
4195
        [Compact]
4192
4196
        [CCode (ref_function = "g_variant_ref", unref_function = "g_variant_unref", ref_sink_function = "g_variant_ref_sink", type_id = "G_TYPE_VARIANT", marshaller_type_name = "VARIANT", param_spec_function = "g_param_spec_variant", get_value_function = "g_value_get_variant", set_value_function = "g_value_set_variant", take_value_function = "g_value_take_variant", type_signature = "v")]
4193
4197
        public class Variant {
 
4198
                [CCode (has_type_id = false)]
4194
4199
                public enum Class {
4195
4200
                        BOOLEAN, BYTE, INT16, UINT16, INT32, UINT32, INT64,
4196
4201
                        UINT64, HANDLE, DOUBLE, STRING, OBJECT_PATH,
4317
4322
                [CCode (cname = "g_strdup")]
4318
4323
                public ObjectPath (string path);
4319
4324
        }
 
4325
 
 
4326
        [CCode (cname = "char", const_cname = "const char", copy_function = "g_strdup", free_function = "g_free", cheader_filename = "stdlib.h,string.h,glib.h", type_id = "G_TYPE_STRING", marshaller_type_name = "STRING", param_spec_function = "g_param_spec_string", get_value_function = "g_value_get_string", set_value_function = "g_value_set_string", take_value_function = "g_value_take_string")]
 
4327
        public class BusName : string {
 
4328
                [CCode (cname = "g_strdup")]
 
4329
                public BusName (string bus_name);
 
4330
        }
4320
4331
#endif
4321
4332
 
4322
4333
        [CCode (cname = "G_LIKELY", cheader_filename = "glib.h")]