508
509 GLIB_DEPRECATED_IN_2_28_FOR(g_source_get_time)
510 void g_source_get_current_time (GSource *source,
511 GTimeVal *timeval);
512
513 GLIB_AVAILABLE_IN_ALL
514 gint64 g_source_get_time (GSource *source);
515
516 /* void g_source_connect_closure (GSource *source,
517 GClosure *closure);
518 */
519
520 /* Specific source types
521 */
522 GLIB_AVAILABLE_IN_ALL
523 GSource *g_idle_source_new (void);
524 GLIB_AVAILABLE_IN_ALL
525 GSource *g_child_watch_source_new (GPid pid);
526 GLIB_AVAILABLE_IN_ALL
527 GSource *g_timeout_source_new (guint interval);
528 GLIB_AVAILABLE_IN_ALL
529 GSource *g_timeout_source_new_seconds (guint interval);
530
531 /* Miscellaneous functions
532 */
533 GLIB_AVAILABLE_IN_ALL
534 void g_get_current_time (GTimeVal *result);
535 GLIB_AVAILABLE_IN_ALL
536 gint64 g_get_monotonic_time (void);
537 GLIB_AVAILABLE_IN_ALL
538 gint64 g_get_real_time (void);
539
540
541 /* Source manipulation by ID */
542 GLIB_AVAILABLE_IN_ALL
543 gboolean g_source_remove (guint tag);
544 GLIB_AVAILABLE_IN_ALL
545 gboolean g_source_remove_by_user_data (gpointer user_data);
546 GLIB_AVAILABLE_IN_ALL
547 gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs,
548 gpointer user_data);
549
550 /* Idles, child watchers and timeouts */
551 GLIB_AVAILABLE_IN_ALL
552 guint g_timeout_add_full (gint priority,
553 guint interval,
554 GSourceFunc function,
555 gpointer data,
556 GDestroyNotify notify);
557 GLIB_AVAILABLE_IN_ALL
558 guint g_timeout_add (guint interval,
559 GSourceFunc function,
560 gpointer data);
561 GLIB_AVAILABLE_IN_ALL
562 guint g_timeout_add_seconds_full (gint priority,
563 guint interval,
564 GSourceFunc function,
565 gpointer data,
566 GDestroyNotify notify);
567 GLIB_AVAILABLE_IN_ALL
568 guint g_timeout_add_seconds (guint interval,
569 GSourceFunc function,
570 gpointer data);
571 GLIB_AVAILABLE_IN_ALL
572 guint g_child_watch_add_full (gint priority,
573 GPid pid,
574 GChildWatchFunc function,
575 gpointer data,
576 GDestroyNotify notify);
577 GLIB_AVAILABLE_IN_ALL
578 guint g_child_watch_add (GPid pid,
579 GChildWatchFunc function,
580 gpointer data);
581 GLIB_AVAILABLE_IN_ALL
582 guint g_idle_add (GSourceFunc function,
583 gpointer data);
584 GLIB_AVAILABLE_IN_ALL
585 guint g_idle_add_full (gint priority,
586 GSourceFunc function,
587 gpointer data,
588 GDestroyNotify notify);
589 GLIB_AVAILABLE_IN_ALL
590 gboolean g_idle_remove_by_data (gpointer data);
|
508
509 GLIB_DEPRECATED_IN_2_28_FOR(g_source_get_time)
510 void g_source_get_current_time (GSource *source,
511 GTimeVal *timeval);
512
513 GLIB_AVAILABLE_IN_ALL
514 gint64 g_source_get_time (GSource *source);
515
516 /* void g_source_connect_closure (GSource *source,
517 GClosure *closure);
518 */
519
520 /* Specific source types
521 */
522 GLIB_AVAILABLE_IN_ALL
523 GSource *g_idle_source_new (void);
524 GLIB_AVAILABLE_IN_ALL
525 GSource *g_child_watch_source_new (GPid pid);
526 GLIB_AVAILABLE_IN_ALL
527 GSource *g_timeout_source_new (guint interval);
528 #ifndef GSTREAMER_LITE
529 GLIB_AVAILABLE_IN_ALL
530 GSource *g_timeout_source_new_seconds (guint interval);
531 #endif // GSTREAMER_LITE
532
533 /* Miscellaneous functions
534 */
535 GLIB_AVAILABLE_IN_ALL
536 void g_get_current_time (GTimeVal *result);
537 GLIB_AVAILABLE_IN_ALL
538 gint64 g_get_monotonic_time (void);
539 GLIB_AVAILABLE_IN_ALL
540 gint64 g_get_real_time (void);
541
542
543 /* Source manipulation by ID */
544 GLIB_AVAILABLE_IN_ALL
545 gboolean g_source_remove (guint tag);
546 GLIB_AVAILABLE_IN_ALL
547 gboolean g_source_remove_by_user_data (gpointer user_data);
548 GLIB_AVAILABLE_IN_ALL
549 gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs,
550 gpointer user_data);
551
552 /* Idles, child watchers and timeouts */
553 GLIB_AVAILABLE_IN_ALL
554 guint g_timeout_add_full (gint priority,
555 guint interval,
556 GSourceFunc function,
557 gpointer data,
558 GDestroyNotify notify);
559 GLIB_AVAILABLE_IN_ALL
560 guint g_timeout_add (guint interval,
561 GSourceFunc function,
562 gpointer data);
563 #ifndef GSTREAMER_LITE
564 GLIB_AVAILABLE_IN_ALL
565 guint g_timeout_add_seconds_full (gint priority,
566 guint interval,
567 GSourceFunc function,
568 gpointer data,
569 GDestroyNotify notify);
570 GLIB_AVAILABLE_IN_ALL
571 guint g_timeout_add_seconds (guint interval,
572 GSourceFunc function,
573 gpointer data);
574 #endif // GSTREAMER_LITE
575 GLIB_AVAILABLE_IN_ALL
576 guint g_child_watch_add_full (gint priority,
577 GPid pid,
578 GChildWatchFunc function,
579 gpointer data,
580 GDestroyNotify notify);
581 GLIB_AVAILABLE_IN_ALL
582 guint g_child_watch_add (GPid pid,
583 GChildWatchFunc function,
584 gpointer data);
585 GLIB_AVAILABLE_IN_ALL
586 guint g_idle_add (GSourceFunc function,
587 gpointer data);
588 GLIB_AVAILABLE_IN_ALL
589 guint g_idle_add_full (gint priority,
590 GSourceFunc function,
591 gpointer data,
592 GDestroyNotify notify);
593 GLIB_AVAILABLE_IN_ALL
594 gboolean g_idle_remove_by_data (gpointer data);
|