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;
00159 #define TPTAG_TIMEOUT(x) tptag_timeout, tag_uint_v((x))
00160 
00161 TPORT_DLL extern tag_typedef_t tptag_timeout_ref;
00162 #define TPTAG_TIMEOUT_REF(x) tptag_timeout_ref, tag_uint_vr(&(x))
00163 
00164 TPORT_DLL extern tag_typedef_t tptag_sigcomp_lifetime;
00171 #define TPTAG_SIGCOMP_LIFETIME(x) tptag_sigcomp_lifetime, tag_uint_v((x))
00172 
00173 TPORT_DLL extern tag_typedef_t tptag_sigcomp_lifetime_ref;
00174 #define TPTAG_SIGCOMP_LIFETIME_REF(x) \
00175 tptag_sigcomp_lifetime_ref, tag_uint_vr(&(x))
00176 
00177 TPORT_DLL extern tag_typedef_t tptag_compartment;
00179 #define TPTAG_COMPARTMENT(x) tptag_compartment, tag_ptr_v((x))
00180 
00181 TPORT_DLL extern tag_typedef_t tptag_compartment_ref;
00182 #define TPTAG_COMPARTMENT_REF(x) \
00183   tptag_compartment_ref, tag_ptr_vr(&(x), x)
00184 
00185 TPORT_DLL extern tag_typedef_t tptag_certificate;
00188 #define TPTAG_CERTIFICATE(x) tptag_certificate, tag_str_v((x))
00189 
00190 TPORT_DLL extern tag_typedef_t tptag_certificate_ref;
00191 #define TPTAG_CERTIFICATE_REF(x) tptag_certificate_ref, tag_str_vr(&(x))
00192 
00193 TPORT_DLL extern tag_typedef_t tptag_tls_version;
00196 #define TPTAG_TLS_VERSION(x) tptag_tls_version, tag_uint_v((x))
00197 
00198 TPORT_DLL extern tag_typedef_t tptag_tls_version_ref;
00199 #define TPTAG_TLS_VERSION_REF(x) tptag_tls_version_ref, tag_uint_vr(&(x))
00200 
00201 TPORT_DLL extern tag_typedef_t tptag_trusted;
00203 #define TPTAG_TRUSTED(x) tptag_trusted, tag_bool_v((x))
00204 
00205 TPORT_DLL extern tag_typedef_t tptag_trusted_ref;
00206 #define TPTAG_TRUSTED_REF(x) tptag_trusted_ref, tag_bool_vr(&(x))
00207 
00208 TPORT_DLL extern tag_typedef_t tptag_debug_drop;
00210 #define TPTAG_DEBUG_DROP(x) tptag_debug_drop, tag_uint_v((x))
00211 
00212 TPORT_DLL extern tag_typedef_t tptag_debug_drop_ref;
00213 #define TPTAG_DEBUG_DROP_REF(x) tptag_debug_drop_ref, tag_uint_vr(&(x))
00214 
00215 TPORT_DLL extern tag_typedef_t tptag_udp_rmem;
00217 #define TPTAG_UDP_RMEM(x) tptag_udp_rmem, tag_uint_v((x))
00218 
00219 TPORT_DLL extern tag_typedef_t tptag_udp_rmem_ref;
00220 #define TPTAG_UDP_RMEM_REF(x) tptag_udp_rmem_ref, tag_uint_vr(&(x))
00221 
00222 TPORT_DLL extern tag_typedef_t tptag_udp_wmem;
00224 #define TPTAG_UDP_WMEM(x) tptag_udp_wmem, tag_uint_v((x))
00225 
00226 TPORT_DLL extern tag_typedef_t tptag_udp_wmem_ref;
00227 #define TPTAG_UDP_WMEM_REF(x) tptag_udp_wmem_ref, tag_uint_vr(&(x))
00228 
00229 TPORT_DLL extern tag_typedef_t tptag_thrpsize;
00233 #define TPTAG_THRPSIZE(x) tptag_thrpsize, tag_uint_v((x))
00234 
00235 TPORT_DLL extern tag_typedef_t tptag_thrpsize_ref;
00236 #define TPTAG_THRPSIZE_REF(x) tptag_thrpsize_ref, tag_uint_vr(&(x))
00237 
00238 TPORT_DLL extern tag_typedef_t tptag_thrprqsize;
00241 #define TPTAG_THRPRQSIZE(x) tptag_thrprqsize, tag_uint_v((x))
00242 
00243 TPORT_DLL extern tag_typedef_t tptag_thrprqsize_ref;
00244 #define TPTAG_THRPRQSIZE_REF(x) tptag_thrprqsize_ref, tag_uint_vr(&(x))
00245 
00246 TPORT_DLL extern tag_typedef_t tptag_http_connect;
00248 #define TPTAG_HTTP_CONNECT(x) tptag_http_connect, tag_str_v((x))
00249 
00250 TPORT_DLL extern tag_typedef_t tptag_http_connect_ref;
00251 #define TPTAG_HTTP_CONNECT_REF(x) tptag_http_connect_ref, tag_str_vr(&(x))
00252 
00253 TPORT_DLL extern tag_typedef_t tptag_stun_server;
00255 #define TPTAG_STUN_SERVER(x) tptag_stun_server, tag_bool_v((x))
00256 
00257 TPORT_DLL extern tag_typedef_t tptag_stun_server_ref;
00258 #define TPTAG_STUN_SERVER_REF(x) tptag_stun_server_ref, tag_bool_vr(&(x))
00259 
00260 SOFIA_END_DECLS
00261 
00262 #endif /* !defined TPORT_TAG_H */

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