sofia-sip/tport_tag.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 TPORT_TAG_H
00026 
00027 #define TPORT_TAG_H
00028 
00037 #ifndef SU_TAG_H
00038 #include <sofia-sip/su_tag.h>
00039 #endif
00040 
00041 SOFIA_BEGIN_DECLS
00042 
00044 TPORT_DLL extern tagi_t tport_tag_list[];
00045 
00047 TPORT_DLL extern tagi_t tport_tags[];
00048 
00050 #define TPTAG_ANY()         tptag_any, ((tag_value_t)0)
00051 TPORT_DLL extern tag_typedef_t tptag_any;
00052 
00053 TPORT_DLL extern tag_typedef_t tptag_ident;
00055 #define TPTAG_IDENT(x) tptag_ident, tag_str_v((x))
00056 
00057 TPORT_DLL extern tag_typedef_t tptag_ident_ref;
00058 #define TPTAG_IDENT_REF(x) tptag_ident_ref, tag_str_vr(&(x))
00059 
00060 TPORT_DLL extern tag_typedef_t tptag_reuse;
00062 #define TPTAG_REUSE(x) tptag_reuse, tag_bool_v((x))
00063 
00064 TPORT_DLL extern tag_typedef_t tptag_reuse_ref;
00065 #define TPTAG_REUSE_REF(x) tptag_reuse_ref, tag_bool_vr(&(x))
00066 
00067 TPORT_DLL extern tag_typedef_t tptag_fresh;
00069 #define TPTAG_FRESH(x) tptag_fresh, tag_bool_v((x))
00070 
00071 TPORT_DLL extern tag_typedef_t tptag_fresh_ref;
00072 #define TPTAG_FRESH_REF(x) tptag_fresh_ref, tag_bool_vr(&(x))
00073 
00074 TPORT_DLL extern tag_typedef_t tptag_server;
00076 #define TPTAG_SERVER(x) tptag_server, tag_bool_v((x))
00077 
00078 TPORT_DLL extern tag_typedef_t tptag_server_ref;
00079 #define TPTAG_SERVER_REF(x) tptag_server_ref, tag_bool_vr(&(x))
00080 
00085 typedef enum tport_via {
00086   tport_type_local = 0,
00087   tport_type_server = 0,
00088   tport_type_client = 1,
00089   tport_type_stun = 2,
00090   tport_type_upnp = 3,
00091   tport_type_connect = 4,
00092   tport_type_socks = 5,
00093 } tport_pri_type_t;
00094 
00095 TPORT_DLL extern tag_typedef_t tptag_public;
00097 #define TPTAG_PUBLIC(x) tptag_public, tag_int_v((x))
00098 
00099 TPORT_DLL extern tag_typedef_t tptag_public_ref;
00100 #define TPTAG_PUBLIC_REF(x) tptag_public_ref, tag_int_vr(&(x))
00101 
00102 TPORT_DLL extern tag_typedef_t tptag_mtu;
00104 #define TPTAG_MTU(x) tptag_mtu, tag_uint_v((x))
00105 
00106 TPORT_DLL extern tag_typedef_t tptag_mtu_ref;
00107 #define TPTAG_MTU_REF(x) tptag_mtu_ref, tag_uint_vr(&(x))
00108 
00109 TPORT_DLL extern tag_typedef_t tptag_connect;
00111 #define TPTAG_CONNECT(x) tptag_connect, tag_bool_v((x))
00112 
00113 TPORT_DLL extern tag_typedef_t tptag_connect_ref;
00114 #define TPTAG_CONNECT_REF(x) tptag_connect_ref, tag_bool_vr(&(x))
00115 
00116 TPORT_DLL extern tag_typedef_t tptag_queuesize;
00118 #define TPTAG_QUEUESIZE(x) tptag_queuesize, tag_uint_v((x))
00119 
00120 TPORT_DLL extern tag_typedef_t tptag_queuesize_ref;
00121 #define TPTAG_QUEUESIZE_REF(x) tptag_queuesize_ref, tag_uint_vr(&(x))
00122 
00123 TPORT_DLL extern tag_typedef_t tptag_sdwn_error;
00125 #define TPTAG_SDWN_ERROR(x) tptag_sdwn_error, tag_bool_v((x))
00126 
00127 TPORT_DLL extern tag_typedef_t tptag_sdwn_error_ref;
00128 #define TPTAG_SDWN_ERROR_REF(x) tptag_sdwn_error_ref, tag_bool_vr(&(x))
00129 
00130 TPORT_DLL extern tag_typedef_t tptag_sdwn_after;
00132 #define TPTAG_SDWN_AFTER(x) tptag_sdwn_after, tag_bool_v((x))
00133 
00134 TPORT_DLL extern tag_typedef_t tptag_sdwn_after_ref;
00135 #define TPTAG_SDWN_AFTER_REF(x) tptag_sdwn_after_ref, tag_bool_vr(&(x))
00136 
00137 TPORT_DLL extern tag_typedef_t tptag_close_after;
00139 #define TPTAG_CLOSE_AFTER(x) tptag_close_after, tag_bool_v((x))
00140 
00141 TPORT_DLL extern tag_typedef_t tptag_close_after_ref;
00142 #define TPTAG_CLOSE_AFTER_REF(x) tptag_close_after_ref, tag_bool_vr(&(x))
00143 
00144 TPORT_DLL extern tag_typedef_t tptag_idle;
00149 #define TPTAG_IDLE(x) tptag_idle, tag_uint_v((x))
00150 
00151 TPORT_DLL extern tag_typedef_t tptag_idle_ref;
00152 #define TPTAG_IDLE_REF(x) tptag_idle_ref, tag_uint_vr(&(x))
00153 
00154 TPORT_DLL extern tag_typedef_t tptag_timeout;
00160 #define TPTAG_TIMEOUT(x) tptag_timeout, tag_uint_v((x))
00161 
00162 TPORT_DLL extern tag_typedef_t tptag_timeout_ref;
00163 #define TPTAG_TIMEOUT_REF(x) tptag_timeout_ref, tag_uint_vr(&(x))
00164 
00165 TPORT_DLL extern tag_typedef_t tptag_sigcomp_lifetime;
00172 #define TPTAG_SIGCOMP_LIFETIME(x) tptag_sigcomp_lifetime, tag_uint_v((x))
00173 
00174 TPORT_DLL extern tag_typedef_t tptag_sigcomp_lifetime_ref;
00175 #define TPTAG_SIGCOMP_LIFETIME_REF(x) \
00176 tptag_sigcomp_lifetime_ref, tag_uint_vr(&(x))
00177 
00178 TPORT_DLL extern tag_typedef_t tptag_compartment;
00180 #define TPTAG_COMPARTMENT(x) tptag_compartment, tag_ptr_v((x))
00181 
00182 TPORT_DLL extern tag_typedef_t tptag_compartment_ref;
00183 #define TPTAG_COMPARTMENT_REF(x) \
00184   tptag_compartment_ref, tag_ptr_vr(&(x), x)
00185 
00186 TPORT_DLL extern tag_typedef_t tptag_certificate;
00189 #define TPTAG_CERTIFICATE(x) tptag_certificate, tag_str_v((x))
00190 
00191 TPORT_DLL extern tag_typedef_t tptag_certificate_ref;
00192 #define TPTAG_CERTIFICATE_REF(x) tptag_certificate_ref, tag_str_vr(&(x))
00193 
00194 TPORT_DLL extern tag_typedef_t tptag_tls_version;
00197 #define TPTAG_TLS_VERSION(x) tptag_tls_version, tag_uint_v((x))
00198 
00199 TPORT_DLL extern tag_typedef_t tptag_tls_version_ref;
00200 #define TPTAG_TLS_VERSION_REF(x) tptag_tls_version_ref, tag_uint_vr(&(x))
00201 
00202 TPORT_DLL extern tag_typedef_t tptag_trusted;
00204 #define TPTAG_TRUSTED(x) tptag_trusted, tag_bool_v((x))
00205 
00206 TPORT_DLL extern tag_typedef_t tptag_trusted_ref;
00207 #define TPTAG_TRUSTED_REF(x) tptag_trusted_ref, tag_bool_vr(&(x))
00208 
00209 TPORT_DLL extern tag_typedef_t tptag_debug_drop;
00211 #define TPTAG_DEBUG_DROP(x) tptag_debug_drop, tag_uint_v((x))
00212 
00213 TPORT_DLL extern tag_typedef_t tptag_debug_drop_ref;
00214 #define TPTAG_DEBUG_DROP_REF(x) tptag_debug_drop_ref, tag_uint_vr(&(x))
00215 
00216 TPORT_DLL extern tag_typedef_t tptag_udp_rmem;
00218 #define TPTAG_UDP_RMEM(x) tptag_udp_rmem, tag_uint_v((x))
00219 
00220 TPORT_DLL extern tag_typedef_t tptag_udp_rmem_ref;
00221 #define TPTAG_UDP_RMEM_REF(x) tptag_udp_rmem_ref, tag_uint_vr(&(x))
00222 
00223 TPORT_DLL extern tag_typedef_t tptag_udp_wmem;
00225 #define TPTAG_UDP_WMEM(x) tptag_udp_wmem, tag_uint_v((x))
00226 
00227 TPORT_DLL extern tag_typedef_t tptag_udp_wmem_ref;
00228 #define TPTAG_UDP_WMEM_REF(x) tptag_udp_wmem_ref, tag_uint_vr(&(x))
00229 
00230 TPORT_DLL extern tag_typedef_t tptag_thrpsize;
00234 #define TPTAG_THRPSIZE(x) tptag_thrpsize, tag_uint_v((x))
00235 
00236 TPORT_DLL extern tag_typedef_t tptag_thrpsize_ref;
00237 #define TPTAG_THRPSIZE_REF(x) tptag_thrpsize_ref, tag_uint_vr(&(x))
00238 
00239 TPORT_DLL extern tag_typedef_t tptag_thrprqsize;
00242 #define TPTAG_THRPRQSIZE(x) tptag_thrprqsize, tag_uint_v((x))
00243 
00244 TPORT_DLL extern tag_typedef_t tptag_thrprqsize_ref;
00245 #define TPTAG_THRPRQSIZE_REF(x) tptag_thrprqsize_ref, tag_uint_vr(&(x))
00246 
00247 TPORT_DLL extern tag_typedef_t tptag_http_connect;
00249 #define TPTAG_HTTP_CONNECT(x) tptag_http_connect, tag_str_v((x))
00250 
00251 TPORT_DLL extern tag_typedef_t tptag_http_connect_ref;
00252 #define TPTAG_HTTP_CONNECT_REF(x) tptag_http_connect_ref, tag_str_vr(&(x))
00253 
00254 TPORT_DLL extern tag_typedef_t tptag_stun_server;
00256 #define TPTAG_STUN_SERVER(x) tptag_stun_server, tag_bool_v((x))
00257 
00258 TPORT_DLL extern tag_typedef_t tptag_stun_server_ref;
00259 #define TPTAG_STUN_SERVER_REF(x) tptag_stun_server_ref, tag_bool_vr(&(x))
00260 
00261 SOFIA_END_DECLS
00262 
00263 #endif /* !defined TPORT_TAG_H */

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