summaryrefslogtreecommitdiff
path: root/glib/gtimer.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@cvs.gnome.org>2006-03-23 02:54:29 +0000
committerEmmanuele Bassi <ebassi@src.gnome.org>2006-03-23 02:54:29 +0000
commit6db9ec40708a4ad60a11a21856a1d54a48b01abd (patch)
tree3bf85717b4903d7847fac54f356890ea2986f849 /glib/gtimer.h
parent0028b643bc40b38d59cdd3c74a33ec3e282dd397 (diff)
downloadglib-6db9ec40708a4ad60a11a21856a1d54a48b01abd.tar.gz
Check for timegm.
2006-03-23 Emmanuele Bassi <ebassi@cvs.gnome.org> * configure.in: Check for timegm. * glib/gtimer.h: * glib/gtimer.c: * glib/glib.symbols: * docs/reference/glib/glib-sections.txt: Added g_time_val_to_iso8601 and g_time_val_from_iso8601, to convert a GTimeVal to and from an ISO 8601 encoded date. * tests/testglib.c: Added test cases for g_time_val_to_iso8601() and g_time_val_from_iso8601() functions.
Diffstat (limited to 'glib/gtimer.h')
-rw-r--r--glib/gtimer.h29
1 files changed, 16 insertions, 13 deletions
diff --git a/glib/gtimer.h b/glib/gtimer.h
index fc434d06a..d602ae1b9 100644
--- a/glib/gtimer.h
+++ b/glib/gtimer.h
@@ -39,19 +39,22 @@ typedef struct _GTimer GTimer;
#define G_USEC_PER_SEC 1000000
-GTimer* g_timer_new (void);
-void g_timer_destroy (GTimer *timer);
-void g_timer_start (GTimer *timer);
-void g_timer_stop (GTimer *timer);
-void g_timer_reset (GTimer *timer);
-void g_timer_continue (GTimer *timer);
-gdouble g_timer_elapsed (GTimer *timer,
- gulong *microseconds);
-
-void g_usleep (gulong microseconds);
-
-void g_time_val_add (GTimeVal *time_,
- glong microseconds);
+GTimer* g_timer_new (void);
+void g_timer_destroy (GTimer *timer);
+void g_timer_start (GTimer *timer);
+void g_timer_stop (GTimer *timer);
+void g_timer_reset (GTimer *timer);
+void g_timer_continue (GTimer *timer);
+gdouble g_timer_elapsed (GTimer *timer,
+ gulong *microseconds);
+
+void g_usleep (gulong microseconds);
+
+void g_time_val_add (GTimeVal *time_,
+ glong microseconds);
+gboolean g_time_val_from_iso8601 (const gchar *iso_date,
+ GTimeVal *time_);
+gchar* g_time_val_to_iso8601 (GTimeVal *time_) G_GNUC_MALLOC;
G_END_DECLS