[glib/wip/monotonic: 9/9] Deprecate g_source_get_current_time()
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/monotonic: 9/9] Deprecate g_source_get_current_time()
- Date: Fri, 22 Oct 2010 17:27:24 +0000 (UTC)
commit 5e46d14a53c80a0d74939ca42d3c6bfcca216840
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Oct 22 19:20:14 2010 +0200
Deprecate g_source_get_current_time()
glib/glib.symbols | 2 ++
glib/gmain.c | 2 ++
glib/gmain.h | 2 ++
3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/glib/glib.symbols b/glib/glib.symbols
index c499549..d0b3fa9 100644
--- a/glib/glib.symbols
+++ b/glib/glib.symbols
@@ -726,7 +726,9 @@ g_source_destroy
g_source_get_can_recurse
g_source_get_context
g_source_get_time
+#ifndef G_DISABLE_DEPRECATED
g_source_get_current_time
+#endif
g_source_get_id
g_source_get_name
g_source_get_priority
diff --git a/glib/gmain.c b/glib/gmain.c
index 71cd708..9745daa 100644
--- a/glib/gmain.c
+++ b/glib/gmain.c
@@ -3368,6 +3368,8 @@ g_main_context_remove_poll_unlocked (GMainContext *context,
* calling g_get_current_time() directly is that when
* checking multiple sources, GLib can cache a single value
* instead of having to repeatedly get the system time.
+ *
+ * Deprecated: 2.28: use g_source_get_time() instead
**/
void
g_source_get_current_time (GSource *source,
diff --git a/glib/gmain.h b/glib/gmain.h
index e166f44..73c888d 100644
--- a/glib/gmain.h
+++ b/glib/gmain.h
@@ -363,8 +363,10 @@ void g_source_add_poll (GSource *source,
void g_source_remove_poll (GSource *source,
GPollFD *fd);
+#ifndef G_DISABLE_DEPRECATED
void g_source_get_current_time (GSource *source,
GTimeVal *timeval);
+#endif
void g_source_get_time (GSource *source,
GTimeSpec *timespec);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]