2 .\" Copyright (c) 2007, Sun Microsystems Inc. All Rights Reserved.
3 .\" 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.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" 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]
6 .TH SDP_SESSION_TO_STR 3COMMPUTIL "Oct 12, 2007"
8 sdp_session_to_str \- return a string representation of a session structure
12 \fBcc\fR [ \fIflag\fR...] \fIfile\fR... -\fBlcommputil\fR [ \fIlibrary\fR...]
15 \fBchar *\fR\fBsdp_session_to_str\fR(\fBconst sdp_session_t *\fR\fIsession\fR,
16 \fBint *\fR\fIerror\fR);
22 The \fBsdp_session_to_str()\fR function returns the string representation of
23 the SDP session structure \fIsession\fR. The caller is responsible for freeing
27 The function adds a CRLF at the end of each SDP field before appending that
32 The \fBsdp_session_to_str()\fR function returns the relevant string on success
33 and \fINULL\fR otherwise.
36 If \fIerror\fR is non-null, the location pointed by \fIerror\fR is set to 0 on
37 success or the error value on failure. The value of \fBerrno\fR is not changed
38 by these calls in the event of an error.
42 The \fBsdp_session_to_str()\fR function will fail if:
58 A memory allocation failure occurred.
64 See \fBattributes\fR(5) for descriptions of the following attributes:
72 ATTRIBUTE TYPE ATTRIBUTE VALUE
74 Interface Stability Committed
82 \fBlibcommputil\fR(3LIB), \fBattributes\fR(5)