mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 16:26:17 +01:00
Deprecate g_source_get_current_time()
This commit is contained in:
parent
83472b34ef
commit
2af4b6e544
@ -726,7 +726,9 @@ g_source_destroy
|
|||||||
g_source_get_can_recurse
|
g_source_get_can_recurse
|
||||||
g_source_get_context
|
g_source_get_context
|
||||||
g_source_get_time
|
g_source_get_time
|
||||||
|
#ifndef G_DISABLE_DEPRECATED
|
||||||
g_source_get_current_time
|
g_source_get_current_time
|
||||||
|
#endif
|
||||||
g_source_get_id
|
g_source_get_id
|
||||||
g_source_get_name
|
g_source_get_name
|
||||||
g_source_get_priority
|
g_source_get_priority
|
||||||
|
@ -3368,6 +3368,8 @@ g_main_context_remove_poll_unlocked (GMainContext *context,
|
|||||||
* calling g_get_current_time() directly is that when
|
* calling g_get_current_time() directly is that when
|
||||||
* checking multiple sources, GLib can cache a single value
|
* checking multiple sources, GLib can cache a single value
|
||||||
* instead of having to repeatedly get the system time.
|
* instead of having to repeatedly get the system time.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.28: use g_source_get_time() instead
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
g_source_get_current_time (GSource *source,
|
g_source_get_current_time (GSource *source,
|
||||||
|
@ -363,8 +363,10 @@ void g_source_add_poll (GSource *source,
|
|||||||
void g_source_remove_poll (GSource *source,
|
void g_source_remove_poll (GSource *source,
|
||||||
GPollFD *fd);
|
GPollFD *fd);
|
||||||
|
|
||||||
|
#ifndef G_DISABLE_DEPRECATED
|
||||||
void g_source_get_current_time (GSource *source,
|
void g_source_get_current_time (GSource *source,
|
||||||
GTimeVal *timeval);
|
GTimeVal *timeval);
|
||||||
|
#endif
|
||||||
void g_source_get_time (GSource *source,
|
void g_source_get_time (GSource *source,
|
||||||
GTimeSpec *timespec);
|
GTimeSpec *timespec);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user