rtsp.h File Reference

#include <pthread.h>
#include "cc.h"
#include "transport.h"
#include "rtp.h"
#include "sdp.h"
#include <netembryo/rtsp_errors.h>

Include dependency graph for rtsp.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rtsp_medium_s
 RTSP medium description. More...
struct  rtsp_session_s
 RTSP session description. More...

Defines

#define RTSP_DEFAULT_PORT   554
#define RTSP_VER   "RTSP/1.0"
#define RTSP_EL   "\r\n"
#define RTSP_MIN_RTP_PORT   1024
#define RTSP_READY   0
#define RTSP_BUSY   1
#define RTSP_SESSION_ID_LEN   256
#define RTSP_COMMON_IF
 Definition of the common part for rtsp_thread and rtsp_ctrl structs.
#define rtsp_status(ctrl)   ctrl->status

Typedefs

typedef struct rtsp_medium_s rtsp_medium
typedef struct rtsp_session_s rtsp_session
typedef struct rtsp_ctrl_t rtsp_ctrl

Enumerations

enum  states {
  INIT, READY, PLAYING, RECORDING,
  STATES_NUM
}

Functions

rtsp_ctrl * rtsp_init (nms_rtsp_hints *)
int rtsp_is_busy (rtsp_ctrl *)
RTSP_Error rtsp_wait (rtsp_ctrl *)
int rtsp_close (rtsp_ctrl *)
int rtsp_open (rtsp_ctrl *, char *)
int rtsp_pause (rtsp_ctrl *)
int rtsp_stop (rtsp_ctrl *)
int rtsp_play (rtsp_ctrl *, double, double)
int rtsp_seek (rtsp_ctrl *, double, double)
int rtsp_uninit (rtsp_ctrl *)
void rtsp_info_print (rtsp_ctrl *)
rtp_thread * rtsp_get_rtp_th (rtsp_ctrl *rtsp_ctl)
rtp_session * rtsp_get_rtp_queue (rtsp_ctrl *rtsp_ctl)

Variables

RTSP_Error const RTSP_Ready
RTSP_Error const RTSP_Reinitialized


Detailed Description

rtsp library public interface definitions.

Definition in file rtsp.h.


Define Documentation

#define RTSP_COMMON_IF

Value:

pthread_mutex_t comm_mutex; \
            struct command *comm; \
            enum states status;     \
            unsigned char busy;  \
            pthread_t rtsp_tid; \
            char descr_fmt; /* Description format inside RTSP body */ \
            rtsp_session *rtsp_queue; \
            cc_perm_mask accepted_CC;    /* accepted CC licenses */ \
            int response_id;
Definition of the common part for rtsp_thread and rtsp_ctrl structs.

Last received response from the server

Definition at line 138 of file rtsp.h.

#define RTSP_DEFAULT_PORT   554

Default RTSP port (default setting from rfc) if not explicitly specified.

Definition at line 38 of file rtsp.h.

#define RTSP_EL   "\r\n"

RTSP End of Line.

Definition at line 44 of file rtsp.h.

#define RTSP_MIN_RTP_PORT   1024

Lower bound for first RTP port if specified by user.

Definition at line 47 of file rtsp.h.

Referenced by rtsp_init().

#define RTSP_VER   "RTSP/1.0"

Version of implemented protocol.

Definition at line 41 of file rtsp.h.


Generated on Tue Feb 3 03:10:02 2009 for libnemesi by  doxygen 1.5.4