/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SDP_PARSE_H
#define _SDP_PARSE_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <sdp.h>
typedef struct sdp_description {
/*
* Following boolean fields are used to
* check for presence of mandatory fields
* in session structure
*/
/*
* keeps count of connection fields within
* media section
*/
int d_mccount;
extern int add_value_to_list(sdp_list_t **, const char *, int,
extern int sdp_str_to_list(sdp_list_t **, const char *, int,
extern void sdp_free_repeat(sdp_repeat_t *);
extern void sdp_free_origin(sdp_origin_t *);
extern void sdp_free_list(sdp_list_t *);
extern void sdp_free_connection(sdp_conn_t *);
extern void sdp_free_bandwidth(sdp_bandwidth_t *);
extern void sdp_free_time(sdp_time_t *);
extern void sdp_free_zone(sdp_zone_t *);
extern void sdp_free_attribute(sdp_attr_t *);
extern void sdp_free_key(sdp_key_t *);
extern void sdp_free_media(sdp_media_t *);
#ifdef __cplusplus
}
#endif
#endif /* _SDP_PARSE_H */