Logo Search packages:      
Sourcecode: telepathy-sofiasip version File versions

sip-connection-sofia.h

/*
 * sip-connection-sofia.h - Source for SIPConnection Sofia event handling
 * Copyright (C) 2006 Nokia Corporation
 *   @author Kai Vehmanen <first.surname@nokia.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * version 2.1 as published by the Free Software Foundation.
 *
 * This library 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 library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef __SIP_CONNECTION_SOFIA_H__
#define __SIP_CONNECTION_SOFIA_H__

#include "sip-sofia-decls.h"
#include "sip-connection.h"

G_BEGIN_DECLS

typedef struct _SIPConnectionSofia {
  /* The owner SIP connection object */
  SIPConnection *conn;
  /* Event loop root for Sofia-SIP */
  su_root_t *sofia_root;
} SIPConnectionSofia;

SIPConnectionSofia * sip_connection_sofia_new (SIPConnection *conn);

/**
 * Callback for events delivered by the SIP stack.
 *
 * See libsofia-sip-ua/nua/nua.h documentation.
 */
void sip_connection_sofia_callback(nua_event_t event,
                           int status, char const *phrase,
                           nua_t *nua, SIPConnectionSofia *sofia,
                           nua_handle_t *nh, nua_hmagic_t *op, sip_t const *sip,
                           tagi_t tags[]);

G_END_DECLS

#endif /* #ifndef __SIP_CONNECTION_SOFIA_H__*/

Generated by  Doxygen 1.6.0   Back to index