gst: updating datetime functions
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 17 Nov 2010 12:36:44 +0000 (09:36 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 17 Nov 2010 12:59:29 +0000 (09:59 -0300)
Updating datetime _from_unix functions for the new 2 variants (utc/local)

https://bugzilla.gnome.org/show_bug.cgi?id=635031

gst/gst.defs

index d00c4f9..bd60104 100644 (file)
   (return-type "gfloat")
 )
 
-(define-function date_time_new_from_unix_epoch
-  (c-name "gst_date_time_new_from_unix_epoch")
+(define-function date_time_new_from_unix_epoch_local_time
+  (c-name "gst_date_time_new_from_unix_epoch_local_time")
+  (return-type "GstDateTime*")
+  (caller-owns-return #t)
+  (parameters
+    '("gint64" "secs")
+  )
+)
+
+(define-function date_time_new_from_unix_epoch_utc
+  (c-name "gst_date_time_new_from_unix_epoch_utc")
   (return-type "GstDateTime*")
   (caller-owns-return #t)
   (parameters