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

nua_glib.c File Reference


Detailed Description

Interface towards libsofia-sip-ua.

Author:
Kai Vehmanen <kai.vehmanen@nokia.com>

Rob Taylor <rob.taylor@collabora.co.uk>

Pekka Pessi <pekka.pessi@nokia.com>

Martti Mela <martti.mela@nokia.com>

Interface towards libsofia-sip-ua.

Author:
Kai Vehmanen <kai.vehmanen@nokia.com>

Rob Taylor <rob.taylor@collabora.co.uk>

Pekka Pessi <pekka.pessi@nokia.com>

Definition in file nua_glib.c.

#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <assert.h>
#include <glib.h>
#include "sofia-sip/nua_glib.h"
#include "nua_glib_priv.h"
#include "nua_glib_op.h"
#include "nua_glib_marshal.h"

Go to the source code of this file.

Defines

#define STORE_PARAM(s, x)

Enumerations

enum  {
  NGSIG_CALL_FORKED = 1, NGSIG_INCOMING_INVITE, NGSIG_INCOMING_REINVITE, NGSIG_CALL_STATE_CHANGED,
  NGSIG_INCOMING_ACTIVE, NGSIG_CALL_TERMINATED, NGSIG_INCOMING_PRACK, NGSIG_INCOMING_BYE,
  NGSIG_INCOMING_CANCEL, NGSIG_INCOMING_MESSAGE, NGSIG_INCOMING_INFO, NGSIG_INCOMING_REFER,
  NGSIG_INCOMING_NOTIFY, NGSIG_INCOMING_SUBSCRIBE, NGSIG_ERROR, NGSIG_SHUTDOWN,
  NGSIG_REGISTER_ANSWERED, NGSIG_UNREGISTER_ANSWERED, NGSIG_PUBLISH_ANSWERED, NGSIG_INVITE_ANSWERED,
  NGSIG_BYE_ANSWERED, NGSIG_CANCEL_ANSWERED, NGSIG_MESSAGE_ANSWERED, NGSIG_INFO_ANSWERED,
  NGSIG_REFER_ANSWERED, NGSIG_SUBSCRIBE_ANSWERED, NGSIG_UNSUBSCRIBE_ANSWERED, NGSIG_NOTIFY_ANSWERED,
  NGSIG_OPTIONS_ANSWERED, NGSIG_AUTH_REQUIRED, NGSIG_LAST_SIGNAL
}
enum  {
  PROP_ADDRESS = 1, PROP_PASSWORD, PROP_CONTACT, PROP_PROXY,
  PROP_REGISTRAR, PROP_STUN_SERVER, LAST_PROPERTY
}

Functions

void final_shutdown (NuaGlib *self)
 G_DEFINE_TYPE (NuaGlib, nua_glib, G_TYPE_OBJECT)
static gboolean idle_kill_op (gpointer data)
void nua_glib_answer (NuaGlib *self, NuaGlibOp *op, int status, const char *phrase, const char *sdp)
void nua_glib_auth_add (NuaGlib *self, NuaGlibOp *op, const char *method, const char *realm, const char *user, const char *password)
void nua_glib_auth_clear (NuaGlib *self, NuaGlibOp *op)
void nua_glib_bye (NuaGlib *self, NuaGlibOp *op)
void nua_glib_cancel (NuaGlib *self, NuaGlibOp *op)
static void nua_glib_class_init (NuaGlibClass *nua_glib_class)
static GObject * nua_glib_constructor (GType type, guint n_construct_properties, GObjectConstructParam *construct_properties)
static void nua_glib_dispose (GObject *obj)
static void nua_glib_finalize (GObject *obj)
void nua_glib_follow_refer (NuaGlib *self, NuaGlibOp *op)
static void nua_glib_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
void nua_glib_hold (NuaGlib *self, NuaGlibOp *op, int hold)
void nua_glib_info (NuaGlib *self, NuaGlibOp *op, const char *content_type, const char *message)
static void nua_glib_init (NuaGlib *self)
NuaGlibOp * nua_glib_invite (NuaGlib *self, const char *destination_uri, const char *local_sdp)
NuaGlibOp * nua_glib_message (NuaGlib *self, const char *destination_uri, const char *message)
NuaGlibOp * nua_glib_notifier (NuaGlib *self, const char *from, const char *event, const char *content_type, const char *expires)
void nua_glib_notify (NuaGlib *self, NuaGlibOp *op)
gpointer nua_glib_op_get_data (NuaGlibOp *op)
const gchar * nua_glib_op_get_identity (NuaGlibOp *op)
sip_method_t nua_glib_op_method_type (NuaGlibOp *op)
NuaGlib * nua_glib_op_owner (NuaGlibOp *op)
void nua_glib_op_set_data (NuaGlibOp *op, gpointer data)
NuaGlibOp * nua_glib_options (NuaGlib *self, const char *destination_uri)
NuaGlibOp * nua_glib_publish (NuaGlib *self, const char *note)
void nua_glib_redirect (NuaGlib *self, NuaGlibOp *op, const char *contact)
void nua_glib_refer (NuaGlib *self, NuaGlibOp *op, const char *destination)
NuaGlibOp * nua_glib_register (NuaGlib *self, const char *registrar)
void nua_glib_republish (NuaGlib *self, NuaGlibOp *op, const char *note)
void nua_glib_reregister (NuaGlib *self, NuaGlibOp *op)
static void nua_glib_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
NuaGlibOp * nua_glib_subscribe (NuaGlib *self, const char *uri, gboolean eventlist)
void nua_glib_subscribe_respond (NuaGlib *self, NuaGlibOp *op, int status, const char *phrase)
void nua_glib_unpublish (NuaGlib *self, NuaGlibOp *op)
NuaGlibOp * nua_glib_unpublish_direct (NuaGlib *self)
void nua_glib_unregister (NuaGlib *self, NuaGlibOp *op)
NuaGlibOp * nua_glib_unregister_direct (NuaGlib *self, const char *registrar)
void nua_glib_unsubscribe (NuaGlib *self, NuaGlibOp *op)
NuaGlibOp * nua_glib_watch (NuaGlib *self, char *event)
static void priv_oper_check_response_for_auth (NuaGlib *self, NuaGlibOp *op, int status, sip_t const *sip, tagi_t *tags)
static void priv_oper_handle_auth (NuaGlib *self, NuaGlibOp *op, sip_t const *sip, tagi_t *tags)
static void priv_submit_authlist (NuaGlibOp *op)
static void sof_callback (nua_event_t event, int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_i_active (nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_i_bye (nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_i_cancel (nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_i_error (nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, int status, char const *phrase, tagi_t tags[])
static void sof_i_fork (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_i_info (nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_i_invite (nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_i_message (nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_i_notify (nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_i_prack (nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_i_refer (nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_i_state (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_i_subscribe (nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_i_terminated (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static int sof_init (NuaGlibPrivate *priv, const char *contact)
static void sof_r_bye (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_cancel (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_get_params (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_info (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_invite (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_message (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_notifier (nua_event_t event, int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_notify (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_options (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_publish (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_refer (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_register (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_shutdown (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_subscribe (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_unregister (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])
static void sof_r_unsubscribe (int status, char const *phrase, nua_t *nua, NuaGlib *self, nua_handle_t *nh, NuaGlibOp *op, sip_t const *sip, tagi_t tags[])

Variables

static GObjectClass * parent_class = NULL
static guint signals [NGSIG_LAST_SIGNAL] = {0}


Generated by  Doxygen 1.6.0   Back to index