Communication Protocol Parser Utilities Library Functions
sdpdeleteallfield(3COMPUTIL)
NAME
sdpdeleteallfield, sdpdeleteallmediafield - delete
all SDP fields
SYNOPSIS
cc [ flag...] file... -lcommputil [ library...]
#include
int sdpdeleteallfield(sdpsessiont *session,
const char field);
int sdpdeleteallmediafield(sdpmediat *media,
const char field);
DESCRIPTION
The sdpdeleteallfield() function deletes all the
occurrences of the specified SDP field from the session
structure. For example, if the session structure has 3
bandwidth (b=) fields, then when this function is called
with SDPBANDWIDTHFIELD, all the three bandwidth fields are
deleted from the session structure.
The sdpdeleteallmediafield() function deletes all the
occurrences of the specified SDP field from the specified
media structure. For example, if the caller wants to delete
all the attribute fields in a media structure, calling this
function with SDPATRIBUTEFIELD argument would delete all
the attribute fields in the media structure.
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 session or media argument is NUL or the field
type is unknown.
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
sdpdeleteallfield(3COMPUTIL)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level Safe
SEE ALSO
libcommputil(3LIB), attributes(5)
SunOS 5.11 Last change: 12 Oct 2007 2
Communication Protocol Parser Utilities Library Functions
sdpdeleteallfield(3COMPUTIL)
SunOS 5.11 Last change: 12 Oct 2007 3
|