1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
/*
* sip-connection-private.h - Private structures for RakiaConnection
* Copyright (C) 2005-2007 Collabora Ltd.
* Copyright (C) 2005-2009 Nokia Corporation
*
* This work is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This work is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this work; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __RAKIA_CONNECTION_PRIVATE_H__
#define __RAKIA_CONNECTION_PRIVATE_H__
#include "config.h"
#include <rakia/media-manager.h>
#include <rakia/sofia-decls.h>
#include <sofia-sip/sresolv.h>
#include <telepathy-glib/simple-password-manager.h>
#ifdef HAVE_LIBIPHB
#include <iphbd/libiphb.h>
#endif
struct _RakiaConnectionPrivate
{
nua_t *sofia_nua;
su_home_t *sofia_home;
nua_handle_t *register_op;
sres_resolver_t *sofia_resolver;
const url_t *account_url;
url_t *proxy_url;
url_t *registrar_url;
#ifdef HAVE_LIBIPHB
iphb_t heartbeat;
su_wait_t heartbeat_wait[1];
int heartbeat_wait_id;
#endif
gchar *registrar_realm;
RakiaMediaManager *media_manager;
TpSimplePasswordManager *password_manager;
gchar *address;
gchar *auth_user;
gchar *password;
gchar *alias;
gchar *transport;
RakiaConnectionKeepaliveMechanism keepalive_mechanism;
guint keepalive_interval;
gboolean discover_stun;
gchar *stun_host;
guint stun_port;
gchar *local_ip_address;
guint local_port;
gchar *extra_auth_user;
gchar *extra_auth_password;
gboolean loose_routing;
gboolean discover_binding;
gboolean immutable_streams;
gboolean ignore_tls_errors;
gboolean keepalive_interval_specified;
gboolean dispose_has_run;
};
/* #define RAKIA_PROTOCOL_STRING "sip" */
#define RAKIA_CONNECTION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RAKIA_TYPE_CONNECTION, RakiaConnectionPrivate))
#endif /*__RAKIA_CONNECTION_PRIVATE_H__*/
|