nta 1.12.11devel
/build/buildd/sofia-sip-1.12.11+20110422/libsofia-sip-ua/nta/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 tport_t *nta_agent_tports(nta_agent_t *agent);
00063 
00064 SOFIAPUBFUN
00065 tport_t *nta_incoming_transport(nta_agent_t *, nta_incoming_t *, msg_t *msg);
00066 
00067 SOFIAPUBFUN int nta_agent_tport_is_updating(nta_agent_t *agent);
00068 
00069 SOFIAPUBFUN
00070 struct sigcomp_compartment *nta_incoming_compartment(nta_incoming_t *irq);
00071 
00072 SOFIAPUBFUN tport_t *nta_outgoing_transport(nta_outgoing_t *orq);
00073 
00074 SOFIAPUBFUN
00075 struct sigcomp_compartment *
00076 nta_outgoing_compartment(nta_outgoing_t *orq);
00077 
00078 SOFIAPUBFUN void nta_compartment_decref(struct sigcomp_compartment **);
00079 
00080 typedef void nta_update_tport_f(nta_update_magic_t *, nta_agent_t *);
00081 
00082 SOFIAPUBFUN
00083 int nta_agent_bind_tport_update(nta_agent_t *agent,
00084                                 nta_update_magic_t *magic,
00085                                 nta_update_tport_f *);
00086 
00087 SOFIA_END_DECLS
00088 
00089 #endif /* !defined NTA_TPORT_H */
 All Data Structures Files Functions Variables Typedefs Enumerator Defines

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