Lines Matching full:glib
27 #include <glib-unix.h>
29 #define wsi_to_subclass(_w) ((_w)->w_read.glib.source)
31 #define pt_to_loop(_pt) ((_pt)->glib.loop)
50 * These helpers attach only to the main_context that belongs to the pt's glib
63 if (pt->glib.idle_tag) in lws_glib_set_idle()
71 pt->glib.idle_tag = g_source_attach(gis, pt_to_g_main_context(pt)); in lws_glib_set_idle()
86 pt->glib.hrtimer_tag = g_source_attach(gts, pt_to_g_main_context(pt)); in lws_glib_set_timeout()
103 /* translate from glib event namespace to platform */ in lws_glib_dispatch()
126 if (!pt->glib.idle_tag) in lws_glib_dispatch()
198 * For glib, this disables the idle callback. Otherwise we keep in lws_glib_idle_timer_cb()
204 pt->glib.idle_tag = 0; in lws_glib_idle_timer_cb()
286 lwsl_err("%s: creating glib loop failed\n", __func__); in elops_init_pt_glib()
291 pt->glib.loop = loop; in elops_init_pt_glib()
312 pt->glib.sigint_tag = g_unix_signal_add(SIGINT, in elops_init_pt_glib()
333 * LWS_EV_ common namespace, convert them to glib namespace bitfield in elops_io_glib()
412 if (pt->glib.hrtimer_tag) in elops_destroy_pt_glib()
413 g_source_remove(pt->glib.hrtimer_tag); in elops_destroy_pt_glib()
417 g_source_remove(pt->glib.sigint_tag); in elops_destroy_pt_glib()
448 /* name */ "glib",