Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

su_source.c File Reference

Detailed Description

Wrapper for glib GSource.

Pekka Pessi <Pekka.Pessi@nokia.com>.
Created: Thu Mar 4 15:15:15 2004 ppessi

Definition in file su_source.c.

#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <limits.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"

Go to the source code of this file.


struct  _SuSource
struct  su_source_s


#define enter   (void)0
#define NTP_EPOCH   2208988800UL
#define SU_MSG_ARG_T   union { char anoymous[4]; }
#define su_port_s   su_source_s
#define SU_SOURCE_DECREF(p, f)   (g_source_unref(p->sup_source))
#define SU_SOURCE_INCREF(p, f)   (g_source_ref(p->sup_source))
#define SU_SOURCE_INITLOCK(p)   (g_static_mutex_init((p)->sup_mutex))
#define SU_SOURCE_LOCK(p, f)   (g_static_mutex_lock((p)->sup_mutex))
#define SU_SOURCE_OWN_THREAD(p)   ((p)->sup_tid == g_thread_self())
#define SU_SOURCE_UNLOCK(p, f)   (g_static_mutex_unlock((p)->sup_mutex))


typedef struct _SuSource SuSource


su_root_tsu_glib_root_create (su_root_magic_t *magic)
GSource * su_glib_root_gsource (su_root_t *root)
su_root_tsu_root_source_create (su_root_magic_t *magic)
static int su_source_add_prepoll (su_port_t *port, su_root_t *root, su_prepoll_f *, su_prepoll_magic_t *)
static void su_source_break (su_port_t *self)
static gboolean su_source_check (GSource *gs)
static su_port_tsu_source_create (void)
static void su_source_decref (su_port_t *self, int blocking, char const *who)
static int su_source_deregister (su_port_t *self, int i)
static gboolean su_source_dispatch (GSource *gs, GSourceFunc callback, gpointer user_data)
static int su_source_eventmask (su_port_t *self, int index, int socket, int events)
static void su_source_finalize (GSource *gs)
static int su_source_getmsgs (su_port_t *self)
static struct _GSource * su_source_gsource (su_port_t *port)
static void su_source_incref (su_port_t *self, char const *who)
static void su_source_lock (su_port_t *self, char const *who)
static int su_source_multishot (su_port_t *self, int multishot)
static int su_source_own_thread (su_port_t const *port)
static gboolean su_source_prepare (GSource *gs, gint *return_tout)
static int su_source_register (su_port_t *self, su_root_t *root, su_wait_t *wait, su_wakeup_f callback, su_wakeup_arg_t *arg, int priority)
static int su_source_remove_prepoll (su_port_t *port, su_root_t *root)
static void su_source_run (su_port_t *self)
static int su_source_send (su_port_t *self, su_msg_r rmsg)
static su_duration_t su_source_step (su_port_t *self, su_duration_t tout)
static int su_source_threadsafe (su_port_t *port)
static su_timer_t ** su_source_timers (su_port_t *port)
static void su_source_unlock (su_port_t *self, char const *who)
static int su_source_unregister (su_port_t *port, su_root_t *root, su_wait_t *wait, su_wakeup_f callback, su_wakeup_arg_t *arg)
static int su_source_unregister_all (su_port_t *self, su_root_t *root)


static su_port_vtable_t const su_source_vtable [1]

Generated by  Doxygen 1.6.0   Back to index