Module Meta Information
The su-glib module provides an interface to connect Sofia-SIP event loop to an existing glib main loop. Without this interface, a glib based application would have to create a separate thread for running the Sofia-SIP event loop.
- Contact:\n Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>
- Status:\n Core library
- License:\n LGPL
Contents of su-glib Module
The su-glib module contains the public header files as follows:
Examples of use
Below is a simple example of how to use su-glib:
#include <glib.h>
GMainLoop *ptr = g_main_loop_new(NULL, FALSE);
GSource *gsource;
g_source_attach(gsource, g_main_loop_get_context(ptr));
g_main_loop_run(ptr);
GSource * su_glib_root_gsource(su_root_t *root)
Returns a GSource object for the root.
Definition su_source.c:267
su_root_t * su_glib_root_create(su_root_magic_t *magic)
Create a root that uses GSource as reactor.
Definition su_source.c:247
su_task_r su_root_task(su_root_t const *root)
struct su_root_t su_root_t
su_timer_t * su_timer_create(su_task_r const, su_duration_t msec))
struct su_timer_s su_timer_t
Todo