Communication Protocol Parser Utilities Library Functions
sdpdeletemedia(3COMPUTIL)
NAME
sdpdeletemedia, sdpdeleteattribute - delete the speci-
fied media or attribute from the appropriate list
SYNOPSIS
cc [ flag...] file... -lcommputil [ library...]
#include
int sdpdeletemedia(sdpmediat **lmedia, sdpmediat *media);
int sdpdeleteattribute(sdpattrt **lattr, sdpattrt *attr);
DESCRIPTION
The sdpdeletemedia() function deletes the specified media
from the media list. It is similar to deleting a node in a
linked list. The function first finds the media that needs
to be deleted using sdpfindmedia(3COMPUTIL). The found
media is then passed to sdpdeletemedia() to delete it. The
function frees the memory allocated to media structure after
deleting it.
The sdpdeleteattribute() function deletes the specified
attribute from the attribute list. It is similar to deleting
a node in a linked list. The function first finds the attri-
bute that needs to be deleted using
sdpfindmediartpmap(3COMPUTIL) or
sdpfindattribute(3COMPUTIL). The found attribute is then
passed to sdpdeleteattribute() to delete it. The function
frees the memory allocated to attribute structure after
deleting it.
RETURN VALUES
Upon successful completion, these functions return 0. Other-
wise, the appropriate error value is returned. The value of
errno is not changed by these calls in the event of an
error.
ERORS
These functions will fail if:
EINVAL The mandatory input parameters are not provided or
are NUL.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 12 Oct 2007 1
Communication Protocol Parser Utilities Library Functions
sdpdeletemedia(3COMPUTIL)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level Safe
SEE ALSO
libcommputil(3LIB), sdpfindattribute(3COMPUTIL),
sdpfindmedia(3COMPUTIL),
sdpfindmediartpmap(3COMPUTIL), attributes(5)
SunOS 5.11 Last change: 12 Oct 2007 2
Communication Protocol Parser Utilities Library Functions
sdpdeletemedia(3COMPUTIL)
SunOS 5.11 Last change: 12 Oct 2007 3
|