HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide

typedef struct rtsp_cache
{
int32_t directive:8;
int32_t seconds:24;
uint8_t *cache_ext;
uint16_t cache_ext_len;
struct rtsp_cache *next;
} rtsp_cache_t;
The directive structure member in the rtsp_cache_t structure contains the cache
directive and takes one of the following values:
RTSP_CACHE_NONE
RTSP_CACHE_MAX_STALE
RTSP_CACHE_NO_CACHE
RTSP_CACHE_MIN_FRESH
RTSP_CACHE_ONLYIF_CACHED
RTSP_CACHE_PUBLIC
RTSP_CACHE_PRIVATE
RTSP_CACHE_NO_TRANSFORM
RTSP_CACHE_MUST_REVAL
RTSP_CACHE_PROXY
RTSP_CACHE_MAX_AGE
RTSP_CACHE_EXT
The seconds structure member contains the time information, in seconds, for the
RTSP_CACHE_MAX_STALE, RTSP_CACHE_MIN_FRESH, and RTSP_CACHE_MAX_AGE
cache directives.
The following lists the cache control header APIs:
rtsp_init_cache
You can use rtsp_init_cache to initialize the structure members of the
rtsp_cache_t structure with their default values.
The declaration of rtsp_init_cache is as follows:
#include <rtsp.h>
void rtsp_init_cache(
rtsp_cache_t *cache
);
You must pass cache, a pointer to the rtsp_cache_t structure, as an argument
to rtsp_init_cache.
The rtsp_init_cache function does not return a value.
52 Using MSP APIs