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

Go to the source code of this file.


struct  _SuSource
struct  su_source_s


#define enter   (void)0
#define NTP_EPOCH   2208988800UL
#define PORT_LOCK_DEBUG(x)   ((void)0)
#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_OWN_THREAD(p)   ((p)->sup_tid == g_thread_self())


typedef struct _SuSource SuSource


void su_glib_prefer_gsource (void)
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 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 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 char const * su_source_name (su_port_t const *self)
static su_port_tsu_source_port_create (void)
static void su_source_port_deinit (su_port_t *self)
static int su_source_port_init (su_port_t *self, su_port_vtable_t const *vtable)
void su_source_port_lock (su_port_t *self, char const *who)
void su_source_port_unlock (su_port_t *self, char const *who)
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_thread (su_port_t *self, enum su_port_thread_op op)
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_port_vtable [1]

Generated by  Doxygen 1.6.0   Back to index