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_DELETE_MEDIA 3COMMPUTIL "Oct 12, 2007"
8 sdp_delete_media, sdp_delete_attribute \- delete the specified media or
9 attribute from the appropriate list
13 \fBcc\fR [ \fIflag\fR...] \fIfile\fR... -\fBlcommputil\fR [ \fIlibrary\fR...]
16 \fBint\fR \fBsdp_delete_media\fR(\fBsdp_media_t **\fR\fIl_media\fR, \fBsdp_media_t *\fR\fImedia\fR);
21 \fBint\fR \fBsdp_delete_attribute\fR(\fBsdp_attr_t **\fR\fIl_attr\fR, \fBsdp_attr_t *\fR\fIattr\fR);
27 The \fBsdp_delete_media()\fR function deletes the specified media from the
28 media list. It is similar to deleting a node in a linked list. The function
29 first finds the media that needs to be deleted using
30 \fBsdp_find_media\fR(3COMMPUTIL). The found media is then passed to
31 \fBsdp_delete_media()\fR to delete it. The function frees the memory allocated
32 to media structure after deleting it.
35 The \fBsdp_delete_attribute()\fR function deletes the specified attribute from
36 the attribute list. It is similar to deleting a node in a linked list. The
37 function first finds the attribute that needs to be deleted using
38 \fBsdp_find_media_rtpmap\fR(3COMMPUTIL) or
39 \fBsdp_find_attribute\fR(3COMMPUTIL). The found attribute is then passed to
40 \fBsdp_delete_attribute()\fR to delete it. The function frees the memory
41 allocated to attribute structure after deleting it.
45 Upon successful completion, these functions return 0. Otherwise, the
46 appropriate error value is returned. The value of \fBerrno\fR is not changed by
47 these calls in the event of an error.
51 These functions will fail if:
58 The mandatory input parameters are not provided or are \fINULL\fR.
64 See \fBattributes\fR(5) for descriptions of the following attributes:
72 ATTRIBUTE TYPE ATTRIBUTE VALUE
74 Interface Stability Committed
82 \fBlibcommputil\fR(3LIB), \fBsdp_find_attribute\fR(3COMMPUTIL),
83 \fBsdp_find_media\fR(3COMMPUTIL), \fBsdp_find_media_rtpmap\fR(3COMMPUTIL),