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;
00060 #define TPTAG_IDENT(x) tptag_ident, tag_str_v((x))
00061 
00062 TPORT_DLL extern tag_typedef_t tptag_ident_ref;
00063 #define TPTAG_IDENT_REF(x) tptag_ident_ref, tag_str_vr(&(x))
00064 
00065 TPORT_DLL extern tag_typedef_t tptag_reuse;
00073 #define TPTAG_REUSE(x) tptag_reuse, tag_bool_v((x))
00074 
00075 TPORT_DLL extern tag_typedef_t tptag_reuse_ref;
00076 #define TPTAG_REUSE_REF(x) tptag_reuse_ref, tag_bool_vr(&(x))
00077 
00078 TPORT_DLL extern tag_typedef_t tptag_fresh;
00084 #define TPTAG_FRESH(x) tptag_fresh, tag_bool_v((x))
00085 
00086 TPORT_DLL extern tag_typedef_t tptag_fresh_ref;
00087 #define TPTAG_FRESH_REF(x) tptag_fresh_ref, tag_bool_vr(&(x))
00088 
00089 TPORT_DLL extern tag_typedef_t tptag_server;
00094 #define TPTAG_SERVER(x) tptag_server, tag_bool_v((x))
00095 
00096 TPORT_DLL extern tag_typedef_t tptag_server_ref;
00097 #define TPTAG_SERVER_REF(x) tptag_server_ref, tag_bool_vr(&(x))
00098 
00103 typedef enum tport_via {
00104   tport_type_local = 0,
00105   tport_type_server = 0,
00106   tport_type_client = 1,
00107   tport_type_stun = 2,
00108   tport_type_upnp = 3,
00109   tport_type_connect = 4,
00110   tport_type_socks = 5,
00111 } tport_pri_type_t;
00112 
00113 TPORT_DLL extern tag_typedef_t tptag_public;
00119 #define TPTAG_PUBLIC(x) tptag_public, tag_int_v((x))
00120 
00121 TPORT_DLL extern tag_typedef_t tptag_public_ref;
00122 #define TPTAG_PUBLIC_REF(x) tptag_public_ref, tag_int_vr(&(x))
00123 
00124 TPORT_DLL extern tag_typedef_t tptag_mtu;
00132 #define TPTAG_MTU(x) tptag_mtu, tag_usize_v((x))
00133 
00134 TPORT_DLL extern tag_typedef_t tptag_mtu_ref;
00135 #define TPTAG_MTU_REF(x) tptag_mtu_ref, tag_usize_vr(&(x))
00136 
00137 TPORT_DLL extern tag_typedef_t tptag_connect;
00146 #define TPTAG_CONNECT(x) tptag_connect, tag_bool_v((x))
00147 
00148 TPORT_DLL extern tag_typedef_t tptag_connect_ref;
00149 #define TPTAG_CONNECT_REF(x) tptag_connect_ref, tag_bool_vr(&(x))
00150 
00151 TPORT_DLL extern tag_typedef_t tptag_queuesize;
00158 #define TPTAG_QUEUESIZE(x) tptag_queuesize, tag_uint_v((x))
00159 
00160 TPORT_DLL extern tag_typedef_t tptag_queuesize_ref;
00161 #define TPTAG_QUEUESIZE_REF(x) tptag_queuesize_ref, tag_uint_vr(&(x))
00162 
00163 TPORT_DLL extern tag_typedef_t tptag_sdwn_error;
00170 #define TPTAG_SDWN_ERROR(x) tptag_sdwn_error, tag_bool_v((x))
00171 
00172 TPORT_DLL extern tag_typedef_t tptag_sdwn_error_ref;
00173 #define TPTAG_SDWN_ERROR_REF(x) tptag_sdwn_error_ref, tag_bool_vr(&(x))
00174 
00175 TPORT_DLL extern tag_typedef_t tptag_sdwn_after;
00181 #define TPTAG_SDWN_AFTER(x) tptag_sdwn_after, tag_bool_v((x))
00182 
00183 TPORT_DLL extern tag_typedef_t tptag_sdwn_after_ref;
00184 #define TPTAG_SDWN_AFTER_REF(x) tptag_sdwn_after_ref, tag_bool_vr(&(x))
00185 
00186 TPORT_DLL extern tag_typedef_t tptag_close_after;
00192 #define TPTAG_CLOSE_AFTER(x) tptag_close_after, tag_bool_v((x))
00193 
00194 TPORT_DLL extern tag_typedef_t tptag_close_after_ref;
00195 #define TPTAG_CLOSE_AFTER_REF(x) tptag_close_after_ref, tag_bool_vr(&(x))
00196 
00197 TPORT_DLL extern tag_typedef_t tptag_idle;
00208 #define TPTAG_IDLE(x) tptag_idle, tag_uint_v((x))
00209 
00210 TPORT_DLL extern tag_typedef_t tptag_idle_ref;
00211 #define TPTAG_IDLE_REF(x) tptag_idle_ref, tag_uint_vr(&(x))
00212 
00213 TPORT_DLL extern tag_typedef_t tptag_timeout;
00223 #define TPTAG_TIMEOUT(x) tptag_timeout, tag_uint_v((x))
00224 
00225 TPORT_DLL extern tag_typedef_t tptag_timeout_ref;
00226 #define TPTAG_TIMEOUT_REF(x) tptag_timeout_ref, tag_uint_vr(&(x))
00227 
00228 TPORT_DLL extern tag_typedef_t tptag_sigcomp_lifetime;
00239 #define TPTAG_SIGCOMP_LIFETIME(x) tptag_sigcomp_lifetime, tag_uint_v((x))
00240 
00241 TPORT_DLL extern tag_typedef_t tptag_sigcomp_lifetime_ref;
00242 #define TPTAG_SIGCOMP_LIFETIME_REF(x) \
00243 tptag_sigcomp_lifetime_ref, tag_uint_vr(&(x))
00244 
00245 TPORT_DLL extern tag_typedef_t tptag_compartment;
00250 #define TPTAG_COMPARTMENT(x) tptag_compartment, tag_ptr_v((x))
00251 
00252 TPORT_DLL extern tag_typedef_t tptag_compartment_ref;
00253 #define TPTAG_COMPARTMENT_REF(x) \
00254   tptag_compartment_ref, tag_ptr_vr(&(x), x)
00255 
00256 TPORT_DLL extern tag_typedef_t tptag_certificate;
00262 #define TPTAG_CERTIFICATE(x) tptag_certificate, tag_str_v((x))
00263 
00264 TPORT_DLL extern tag_typedef_t tptag_certificate_ref;
00265 #define TPTAG_CERTIFICATE_REF(x) tptag_certificate_ref, tag_str_vr(&(x))
00266 
00267 TPORT_DLL extern tag_typedef_t tptag_tls_version;
00273 #define TPTAG_TLS_VERSION(x) tptag_tls_version, tag_uint_v((x))
00274 
00275 TPORT_DLL extern tag_typedef_t tptag_tls_version_ref;
00276 #define TPTAG_TLS_VERSION_REF(x) tptag_tls_version_ref, tag_uint_vr(&(x))
00277 
00278 #if 0
00279 TPORT_DLL extern tag_typedef_t tptag_trusted;
00284 #define TPTAG_TRUSTED(x) tptag_trusted, tag_bool_v((x))
00285 
00286 TPORT_DLL extern tag_typedef_t tptag_trusted_ref;
00287 #define TPTAG_TRUSTED_REF(x) tptag_trusted_ref, tag_bool_vr(&(x))
00288 #endif
00289 
00290 TPORT_DLL extern tag_typedef_t tptag_debug_drop;
00299 #define TPTAG_DEBUG_DROP(x) tptag_debug_drop, tag_uint_v((x))
00300 
00301 TPORT_DLL extern tag_typedef_t tptag_debug_drop_ref;
00302 #define TPTAG_DEBUG_DROP_REF(x) tptag_debug_drop_ref, tag_uint_vr(&(x))
00303 
00304 TPORT_DLL extern tag_typedef_t tptag_udp_rmem;
00312 #define TPTAG_UDP_RMEM(x) tptag_udp_rmem, tag_uint_v((x))
00313 
00314 TPORT_DLL extern tag_typedef_t tptag_udp_rmem_ref;
00315 #define TPTAG_UDP_RMEM_REF(x) tptag_udp_rmem_ref, tag_uint_vr(&(x))
00316 
00317 TPORT_DLL extern tag_typedef_t tptag_udp_wmem;
00325 #define TPTAG_UDP_WMEM(x) tptag_udp_wmem, tag_uint_v((x))
00326 
00327 TPORT_DLL extern tag_typedef_t tptag_udp_wmem_ref;
00328 #define TPTAG_UDP_WMEM_REF(x) tptag_udp_wmem_ref, tag_uint_vr(&(x))
00329 
00330 TPORT_DLL extern tag_typedef_t tptag_thrpsize;
00344 #define TPTAG_THRPSIZE(x) tptag_thrpsize, tag_uint_v((x))
00345 
00346 TPORT_DLL extern tag_typedef_t tptag_thrpsize_ref;
00347 #define TPTAG_THRPSIZE_REF(x) tptag_thrpsize_ref, tag_uint_vr(&(x))
00348 
00349 TPORT_DLL extern tag_typedef_t tptag_thrprqsize;
00358 #define TPTAG_THRPRQSIZE(x) tptag_thrprqsize, tag_uint_v((x))
00359 
00360 TPORT_DLL extern tag_typedef_t tptag_thrprqsize_ref;
00361 #define TPTAG_THRPRQSIZE_REF(x) tptag_thrprqsize_ref, tag_uint_vr(&(x))
00362 
00363 TPORT_DLL extern tag_typedef_t tptag_http_connect;
00369 #define TPTAG_HTTP_CONNECT(x) tptag_http_connect, tag_str_v((x))
00370 
00371 TPORT_DLL extern tag_typedef_t tptag_http_connect_ref;
00372 #define TPTAG_HTTP_CONNECT_REF(x) tptag_http_connect_ref, tag_str_vr(&(x))
00373 
00374 TPORT_DLL extern tag_typedef_t tptag_stun_server;
00381 #define TPTAG_STUN_SERVER(x) tptag_stun_server, tag_bool_v((x))
00382 
00383 TPORT_DLL extern tag_typedef_t tptag_stun_server_ref;
00384 #define TPTAG_STUN_SERVER_REF(x) tptag_stun_server_ref, tag_bool_vr(&(x))
00385 
00386 TPORT_DLL extern tag_typedef_t tptag_tos;
00395 #define TPTAG_TOS(x) tptag_tos, tag_int_v((x))
00396 
00397 TPORT_DLL extern tag_typedef_t tptag_tos_ref;
00398 #define TPTAG_TOS_REF(x) tptag_tos_ref, tag_int_vr(&(x))
00399 
00400 TPORT_DLL extern tag_typedef_t tptag_log;
00410 #define TPTAG_LOG(x) tptag_log, tag_bool_v((x))
00411 
00412 TPORT_DLL extern tag_typedef_t tptag_log_ref;
00413 #define TPTAG_LOG_REF(x) tptag_log_ref, tag_bool_vr(&(x))
00414 
00415 TPORT_DLL extern tag_typedef_t tptag_dump;
00425 #define TPTAG_DUMP(x) tptag_dump, tag_str_v((x))
00426 
00427 TPORT_DLL extern tag_typedef_t tptag_dump_ref;
00428 #define TPTAG_DUMP_REF(x) tptag_dump_ref, tag_str_vr(&(x))
00429 
00430 SOFIA_END_DECLS
00431 
00432 #endif /* !defined TPORT_TAG_H */

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