]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: add annotations for using GTimeSpan as a GObject property
authorEvan Nemerson <evan@coeus-group.com>
Sun, 16 Oct 2011 04:42:09 +0000 (21:42 -0700)
committerJürg Billeter <j@bitron.ch>
Wed, 30 Nov 2011 13:30:47 +0000 (14:30 +0100)
vapi/glib-2.0.vapi

index 3637061dd5bc9bf1e3f81b5aa531b4c440c3c37e..194ff6b5d6d4feef70d229c55f56b5055dc01a96 100644 (file)
@@ -2459,6 +2459,9 @@ namespace GLib {
                public unowned string? strptime (string buf, string format);
        }
 
+       [SimpleType]
+       [CCode (cheader_filename = "glib.h", type_id = "G_TYPE_INT64", marshaller_type_name = "INT64", get_value_function = "g_value_get_int64", set_value_function = "g_value_set_int64", default_value = "0LL", type_signature = "x")]
+       [IntegerType (rank = 10)]
        public struct TimeSpan : int64 {
                public const TimeSpan DAY;
                public const TimeSpan HOUR;