gdatetime: Add g_date_time_source_new()
authorColin Walters <walters@verbum.org>
Sat, 13 Aug 2011 12:55:20 +0000 (08:55 -0400)
committerColin Walters <walters@verbum.org>
Mon, 29 Aug 2011 14:24:08 +0000 (10:24 -0400)
commit1feb752996b404965a2f58b29a569a273d4374fa
tree8074af722f28600d772db2d3132eaa588b3bc5db
parent1dfe332e4505d9de9d5819087a60a591b40dde28
gdatetime: Add g_date_time_source_new()

Several different codebases in GNOME want to implement wall clocks.
While we could pretty easily share a private library, it's not a
substantial amount of code, and GLib already has a lot of the
necessary system-specific detection and handling infrastructure.

Note this initial implementation just wakes up once a second in the
cancel_on_set case; we'll add the Linux-specific handling in a
subsequent commit.

https://bugzilla.gnome.org/show_bug.cgi?id=655129
docs/reference/glib/glib-sections.txt
glib/gdatetime.c
glib/gdatetime.h
glib/glib.symbols
glib/gmain.h
glib/tests/Makefile.am
glib/tests/glib-clock.c [new file with mode: 0644]
glib/tests/timeout.c