nta_tport.h 2.16 KB
Newer Older
Pekka Pessi's avatar
Pekka Pessi committed
1 2 3 4 5 6 7
/*
 * This file is part of the Sofia-SIP package
 *
 * Copyright (C) 2005 Nokia Corporation.
 *
 * Contact: Pekka Pessi <pekka.pessi@nokia.com>
 *
8
 * This library is free software; you can redistribute it and/or
Pekka Pessi's avatar
Pekka Pessi committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
 * 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 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
 *
 */

Pekka Pessi's avatar
Pekka Pessi committed
25 26
#ifndef NTA_TPORT_H
/** Defined when <sofia-sip/nta_tport.h> has been included. */
Pekka Pessi's avatar
Pekka Pessi committed
27
#define NTA_TPORT_H
Pekka Pessi's avatar
Pekka Pessi committed
28 29

/**
Pekka Pessi's avatar
Pekka Pessi committed
30
 * @file sofia-sip/nta_tport.h
Pekka Pessi's avatar
Pekka Pessi committed
31
 * @brief Transport and SigComp handling
32
 *
Pekka Pessi's avatar
Pekka Pessi committed
33
 * @author Pekka Pessi <Pekka.Pessi@nokia.com>
34
 *
Pekka Pessi's avatar
Pekka Pessi committed
35
 * @date Created: Thu Oct  7 20:04:39 2004 ppessi
36
 *
Pekka Pessi's avatar
Pekka Pessi committed
37 38 39
 */

#ifndef NTA_H
40
#include <sofia-sip/nta.h>
Pekka Pessi's avatar
Pekka Pessi committed
41 42
#endif

43 44
SOFIA_BEGIN_DECLS

Pekka Pessi's avatar
Pekka Pessi committed
45
struct tport_s;
46 47 48 49 50 51

#ifndef TPORT_T
#define TPORT_T struct tport_s
typedef TPORT_T tport_t;
#endif

52 53 54 55 56
#ifndef NTA_UPDATE_MAGIC_T
#define NTA_UPDATE_MAGIC_T void
#endif
typedef NTA_UPDATE_MAGIC_T nta_update_magic_t;

Pekka Pessi's avatar
Pekka Pessi committed
57 58 59 60 61
struct sigcomp_compartment;
struct sigcomp_udvm;

#define nta_transport nta_incoming_transport

62 63
SOFIAPUBFUN
tport_t *nta_incoming_transport(nta_agent_t *, nta_incoming_t *, msg_t *msg);
Pekka Pessi's avatar
Pekka Pessi committed
64

65
SOFIAPUBFUN
Pekka Pessi's avatar
Pekka Pessi committed
66
struct sigcomp_compartment *nta_incoming_compartment(nta_incoming_t *irq);
67

Pekka Pessi's avatar
Pekka Pessi committed
68 69 70
SOFIAPUBFUN tport_t *nta_outgoing_transport(nta_outgoing_t *orq);

SOFIAPUBFUN
Pekka Pessi's avatar
Pekka Pessi committed
71 72 73
struct sigcomp_compartment *
nta_outgoing_compartment(nta_outgoing_t *orq);

Pekka Pessi's avatar
Pekka Pessi committed
74
SOFIAPUBFUN void nta_compartment_decref(struct sigcomp_compartment **);
Pekka Pessi's avatar
Pekka Pessi committed
75

76 77
typedef void nta_update_tport_f(nta_update_magic_t *, nta_agent_t *);

78
SOFIAPUBFUN
79 80 81
int nta_agent_bind_tport_update(nta_agent_t *agent,
				nta_update_magic_t *magic,
				nta_update_tport_f *);
82

83 84
SOFIA_END_DECLS

Pekka Pessi's avatar
Pekka Pessi committed
85
#endif /* !defined NTA_TPORT_H */