su_source.c File Reference


Detailed Description

Wrapper for glib GSource.

Refs:

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>.
Date:
Created: Thu Mar 4 15:15:15 2004 ppessi

#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>

Include dependency graph for su_source.c:


Data Structures

struct  su_source_s
 Port is a per-thread reactor. More...

Functions

su_root_tsu_glib_root_create (su_root_magic_t *magic)
 Create a root that uses GSource as reactor.
su_root_tsu_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.
int su_source_port_init (su_port_t *self, GSource *gs, su_port_vtable_t const *vtable)
 Initialize source port.
void su_glib_prefer_gsource (void)
 Use su_source implementation when su_root_create() is called.

Function Documentation

void su_glib_prefer_gsource ( void   ) 

Use su_source implementation when su_root_create() is called.

Since:
New in 1.12.5

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.

Returns:
NULL on error (for instance if root was not created with su_glib_root_create())


Sofia-SIP 1.12.6 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.