Wrapper for glib GSource. More...
#include "config.h"#include <glib.h>#include "sofia-sip/su_source.h"#include "sofia-sip/su_glib.h"#include "sofia-sip/su.h"#include "su_port.h"#include "sofia-sip/su_alloc.h"#include <stdlib.h>#include <assert.h>#include <stdio.h>#include <string.h>#include <limits.h>
Data Structures | |
| struct | su_source_s |
| Port is a per-thread reactor. More... | |
Functions | |
| su_root_t * | su_glib_root_create (su_root_magic_t *magic) |
| Create a root that uses GSource as reactor. | |
| su_root_t * | su_root_source_create (su_root_magic_t *magic) |
| Deprecated. | |
| GSource * | su_glib_root_gsource (su_root_t *root) |
| Returns a GSource object for the root. | |
| void | su_glib_prefer_gsource (void) |
| Use su_source implementation when su_root_create() is called. | |
Wrapper for glib GSource.
Refs:
| void su_glib_prefer_gsource | ( | void | ) |
Use su_source implementation when su_root_create() is called.
| GSource* su_glib_root_gsource | ( | su_root_t * | root | ) |
Returns a GSource object for the root.
Note that you need to unref the GSource with g_source_unref() before destroying the root object.