HP-UX C SIP Stack Message Layer Reference Guide (January 2008)
Content-Type Header Functions 379
Get and Set Functions
RvSipContentTypeHeaderGetStrMediaType()
RvSipContentTypeHeaderGetStrMediaType()
DESCRIPTION
Copies the media-type string from the Content-Type header into a given buffer.
Use this function when the media type enumeration returned by
RvSipContentTypeHeaderGetMediaType() is RVSIP_MEDIATYPE_OTHER.
If the value for bufferLen is adequate, the function copies the requested
parameter into strBuffer. Otherwise, the function returns
RV_ERROR_INSUFFICIENT_BUFFER and actualLen contains the required
buffer length.
SYNTAX
RvStatus RvSipContentTypeHeaderGetStrMediaType(
IN RvSipContentTypeHeaderHandle hHeader,
IN RvChar *strBuffer,
IN RvUint bufferLen,
OUT RvUint *actualLen);
PARAMETERS
hHeader
The handle to the header.
strBuffer
The buffer to fill with the requested parameter.
bufferLen
The length of the buffer.
actualLen
The length of the requested parameter + 1, to include a NULL value at the end
of the parameter.
RETURN VALUES
Returns RvStatus.