stun 1.12.11devel
/build/buildd/sofia-sip-1.12.11+20110422/libsofia-sip-ua/stun/sofia-sip/stun_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-2006 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 STUN_TAG_H
00026 #define STUN_TAG_H
00027 
00036 #ifndef SU_TAG_H
00037 #include <sofia-sip/su_tag.h>
00038 #endif
00039 #ifndef SU_TAG_IO_H
00040 #include <sofia-sip/su_tag_io.h>
00041 #endif
00042 
00043 SOFIA_BEGIN_DECLS
00044 
00045 /*****************************************
00046  * Note: see documentation in stun_tag.c *
00047  *****************************************/
00048 
00049 #define STUNTAG_ANY()         stuntag_any, ((tag_value_t)0)
00050 SOFIAPUBVAR tag_typedef_t stuntag_any;
00051 
00052 #define STUNTAG_DOMAIN(x)  stuntag_domain, tag_str_v(x)
00053 SOFIAPUBVAR tag_typedef_t stuntag_domain;
00054 #define STUNTAG_DOMAIN_REF(x) stuntag_domain_ref, tag_str_vr(&(x))
00055 SOFIAPUBVAR tag_typedef_t stuntag_domain_ref;
00056 
00057 #define STUNTAG_SERVER(x)  stuntag_server, tag_str_v(x)
00058 SOFIAPUBVAR tag_typedef_t stuntag_server;
00059 #define STUNTAG_SERVER_REF(x) stuntag_server_ref, tag_str_vr(&(x))
00060 SOFIAPUBVAR tag_typedef_t stuntag_server_ref;
00061 
00062 #define STUNTAG_REQUIRE_INTEGRITY(x) stuntag_require_integrity, tag_int_v(x)
00063 SOFIAPUBVAR tag_typedef_t stuntag_require_integrity;
00064 #define STUNTAG_REQUIRE_INTEGRITY_REF(x) stuntag_require_integrity_ref, tag_int_vr(&(x))
00065 SOFIAPUBVAR tag_typedef_t stuntag_require_integrity_ref;
00066 
00067 #define STUNTAG_INTEGRITY(x) stuntag_integrity, tag_int_v(x)
00068 SOFIAPUBVAR tag_typedef_t stuntag_integrity;
00069 #define STUNTAG_INTEGRITY_REF(x) stuntag_integrity_ref, tag_int_vr(&(x))
00070 SOFIAPUBVAR tag_typedef_t stuntag_integrity_ref;
00071 
00072 #define STUNTAG_SOCKET(x) stuntag_socket, tag_socket_v(x)
00073 SOFIAPUBVAR tag_typedef_t stuntag_socket;
00074 #define STUNTAG_SOCKET_REF(x) stuntag_socket_ref, tag_socket_vr(&(x))
00075 SOFIAPUBVAR tag_typedef_t stuntag_socket_ref;
00076 
00077 #define STUNTAG_REGISTER_EVENTS(x) stuntag_register_events, tag_int_v(x)
00078 SOFIAPUBVAR tag_typedef_t stuntag_register_events;
00079 #define STUNTAG_REGISTER_EVENTS_REF(x) stuntag_register_events_ref, tag_int_vr(&(x))
00080 SOFIAPUBVAR tag_typedef_t stuntag_register_events_ref;
00081 
00082 #define STUNTAG_ACTION(x) stuntag_action, tag_int_v(x)
00083 SOFIAPUBVAR tag_typedef_t stuntag_action;
00084 #define STUNTAG_ACTION_REF(x) stuntag_action_ref, tag_int_vr(&(x))
00085 SOFIAPUBVAR tag_typedef_t stuntag_action_ref;
00086 
00087 #define STUNTAG_CHANGE_IP(x) stuntag_change_ip, tag_bool_v(x)
00088 SOFIAPUBVAR tag_typedef_t stuntag_change_ip;
00089 #define STUNTAG_CHANGE_IP_REF(x) stuntag_change_ip_ref, tag_bool_vr(&(x))
00090 SOFIAPUBVAR tag_typedef_t stuntag_change_ip_ref;
00091 
00092 #define STUNTAG_CHANGE_PORT(x) stuntag_change_port, tag_bool_v(x)
00093 SOFIAPUBVAR tag_typedef_t stuntag_change_port;
00094 #define STUNTAG_CHANGE_PORT_REF(x) stuntag_change_port_ref, tag_bool_vr(&(x))
00095 SOFIAPUBVAR tag_typedef_t stuntag_change_port_ref;
00096 
00097 #define STUNTAG_TIMEOUT(x) stuntag_timeout, tag_uint_v((x))
00098 SOFIAPUBVAR tag_typedef_t stuntag_timeout;
00099 #define STUNTAG_TIMEOUT_REF(x) stuntag_timeout_ref, tag_uint_vr(&(x))
00100 SOFIAPUBVAR tag_typedef_t stuntag_timeout_ref;
00101 
00102 
00103 SOFIA_END_DECLS
00104 
00105 #endif /* STUN_TAG_H */
 All Data Structures Files Functions Variables Typedefs Enumerations 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.