sofia-sip/nta_tport.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of the Sofia-SIP package
00003  *
00004  * Copyright (C) 2005 Nokia Corporation.
00005  *
00006  * Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation; either version 2.1 of
00011  * the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00021  * 02110-1301 USA
00022  *
00023  */
00024 
00025 #ifndef NTA_TPORT_H
00026 
00027 #define NTA_TPORT_H
00028 
00039 #ifndef NTA_H
00040 #include <sofia-sip/nta.h>
00041 #endif
00042 
00043 SOFIA_BEGIN_DECLS
00044 
00045 struct tport_s;
00046 
00047 #ifndef TPORT_T
00048 #define TPORT_T struct tport_s
00049 typedef TPORT_T tport_t;
00050 #endif
00051 
00052 #ifndef NTA_UPDATE_MAGIC_T
00053 #define NTA_UPDATE_MAGIC_T void
00054 #endif
00055 typedef NTA_UPDATE_MAGIC_T nta_update_magic_t;
00056 
00057 struct sigcomp_compartment;
00058 struct sigcomp_udvm;
00059 
00060 #define nta_transport nta_incoming_transport
00061 
00062 SOFIAPUBFUN
00063 tport_t *nta_incoming_transport(nta_agent_t *, nta_incoming_t *, msg_t *msg);
00064 
00065 SOFIAPUBFUN
00066 struct sigcomp_compartment *nta_incoming_compartment(nta_incoming_t *irq);
00067 
00068 SOFIAPUBFUN tport_t *nta_outgoing_transport(nta_outgoing_t *orq);
00069 
00070 SOFIAPUBFUN
00071 struct sigcomp_compartment *
00072 nta_outgoing_compartment(nta_outgoing_t *orq);
00073 
00074 SOFIAPUBFUN void nta_compartment_decref(struct sigcomp_compartment **);
00075 
00076 typedef void nta_update_tport_f(nta_update_magic_t *, nta_agent_t *);
00077 
00078 SOFIAPUBFUN
00079 int nta_agent_bind_tport_update(nta_agent_t *agent,
00080                                 nta_update_magic_t *magic,
00081                                 nta_update_tport_f *);
00082 
00083 SOFIA_END_DECLS
00084 
00085 #endif /* !defined NTA_TPORT_H */

Sofia-SIP 1.12.7 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.