HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide
int64_t rtptime;
struct rtsp_rtpinfo *next;
} rtsp_rtpinfo_t;
The url member of the rtsp_rtpinfo_t structure is a pointer to the location
containing the stream URL specified in the RTP-info header. The seq member of the
structure contains the sequence number and the rtptime member contains the RTP
timestamp specified in the RTP-info header.
The following lists the RTP-info header APIs:
• rtsp_init_rtpinfo
You can use rtsp_init_rtpinfo to initialize the members of rtsp_rtpinfo_t
data structure with default values.
The declaration of rtsp_init_rtpinfo is as follows:
#include <rtsp.h>
void rtsp_init_rtpinfo(
rtsp_rtpinfo_t *rtpinfo
);
You must pass rtpinfo, a pointer to the rtsp_rtpinfo_t structure, as an argument
to rtsp_init_rtpinfo.
The rtsp_init_rtpinfo function does not return a value.
For more information, type man 3 rtsp_init_rtpinfo at the HP-UX command
prompt.
• rtsp_alloc_rtpinfo
You can use rtsp_alloc_rtpinfo to dynamically allocate memory for the
rtsp_rtpinfo_t structure and to initialize its members with application-specific
values.
The declaration of rtsp_alloc_rtpinfo is as follows:
#include <rtsp.h>
rtpinfo_t *rtsp_alloc_rtpinfo(
rtsp_rtpinfo_t *rtpinfo2dup
);
You must pass rtpinfo2dup, a pointer to the rtsp_rtpinfo_t structure, as an
argument to rtsp_alloc_rtpinfo.
Upon success, rtsp_alloc_rtpinfo returns a pointer to the rtsp_rtpinfo_t
structure. If memory cannot be dynamically allocated, the rtsp_alloc_rtpinfo
function returns NULL.
56 Using MSP APIs