]> 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)
committerEvan Nemerson <evan@coeus-group.com>
Sun, 16 Oct 2011 04:43:01 +0000 (21:43 -0700)
vapi/glib-2.0.vapi

index 03ef2c77cc65fddbe5dfca6de1e6dd5c1b7b6a2e..e540a4d65e4d2abf6cfdcf16116a22c6e74daa64 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;