Loading...
Searching...
No Matches
sdp_tag.h
Go to the documentation of this file.
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#ifndef SDP_TAG_H
#define SDP_TAG_H
#ifndef SU_TAG_H
#include <sofia-sip/su_tag.h>
#endif
#ifndef SU_TAG_CLASS_H
#include <sofia-sip/su_tag_class.h>
#endif
SOFIA_BEGIN_DECLS
struct sdp_session_s;
#define SDPTAG_ANY() sdptag_any, ((tag_value_t)0)
SDP_DLL extern tag_typedef_t sdptag_any;
/* Tags for parameters */
SDP_DLL extern tag_typedef_t sdptag_session;
#define SDPTAG_SESSION(x) \
sdptag_session, sdptag_session_v((x))
SDP_DLL extern tag_typedef_t sdptag_session_ref;
#define SDPTAG_SESSION_REF(x) \
sdptag_session_ref, sdptag_session_vr(&(x))
/* Functions for typesafe parameter passing */
#if SU_HAVE_INLINE
su_inline
tag_value_t sdptag_session_v(struct sdp_session_s const *v) {
return (tag_value_t)v;
}
su_inline
tag_value_t sdptag_session_vr(struct sdp_session_s const **vp) {
return (tag_value_t)vp;
}
#else
#define sdptag_session_v(v) (tag_value_t)(v)
#define sdptag_session_vr(vp) (tag_value_t)(vp)
#endif
/* Tag classes */
extern tag_class_t sdptag_session_class[];
#define SDPTAG_TYPEDEF(name) \
{{ TAG_NAMESPACE, #name, sdptag_session_class }}
SOFIA_END_DECLS
#endif /* !defined(SDP_TAG_H) */
sdptag_session_class
tag_class_t sdptag_session_class[]
Tag class for SDP tags.
Definition sdp.c:1142
sdp_session_s
Session description.
Definition sdp.h:82
su_inline
#define su_inline
su_tag.h
tag_typedef_t
struct tag_type_s const tag_typedef_t[1]
tag_value_t
intptr_t tag_value_t
tag_class_t
struct tag_class_s const tag_class_t
su_tag_class.h

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