xine-lib: xine-lib-1.2.13/src/input/librtsp/rtsp.h File Reference

xine-lib 1.2.13-20230125hg15249

Macros | Typedefs | Functions
rtsp.h File Reference
`#include <xine/xine_internal.h>`

Go to the source code of this file.

## Macros
#define | RTSP_STATUS_SET_PARAMETER 10
#define | RTSP_STATUS_OK 200

## Typedefs
typedef struct rtsp_s | rtsp_t

## Functions
rtsp_t * | rtsp_connect (xine_stream_t *stream, const char *mrl, const char *user_agent)
int | rtsp_request_options (rtsp_t *s, const char *what)
int | rtsp_request_describe (rtsp_t *s, const char *what)
int | rtsp_request_setup (rtsp_t *s, const char *what)
int | rtsp_request_setparameter (rtsp_t *s, const char *what)
int | rtsp_request_play (rtsp_t *s, const char *what)
int | rtsp_send_ok (rtsp_t *s)
int | rtsp_read_data (rtsp_t *s, void *buffer, unsigned int size)
const char * | rtsp_search_answers (rtsp_t *s, const char *tag)
void | rtsp_add_to_payload (char **payload, const char *string)
void | rtsp_free_answers (rtsp_t *this)
int | rtsp_read (rtsp_t *this, char *data, int len)
void | rtsp_close (rtsp_t *this)
char * | rtsp_get_mrl (rtsp_t *s)
void | rtsp_schedule_field (rtsp_t *s, const char *string)
void | rtsp_unschedule_all (rtsp_t *s)

## Macro Definition Documentation

## ◆ RTSP_STATUS_OK

#define RTSP_STATUS_OK 200

## ◆ RTSP_STATUS_SET_PARAMETER

#define RTSP_STATUS_SET_PARAMETER 10

Referenced by rtsp_get_code().

## Typedef Documentation

## ◆ rtsp_t

typedef struct rtsp_s rtsp_t

## Function Documentation

## ◆ rtsp_add_to_payload()

void rtsp_add_to_payload | ( | char ** | payload,
|  | const char * | string )

## ◆ rtsp_close()

void rtsp_close | ( | rtsp_t * | this | ) |

References _x_io_tcp_close(), rtsp_s::auth, rtsp_s::host, rtsp_s::mrl, rtsp_s::path, rtsp_free_answers(), rtsp_unschedule_all(), rtsp_s::s, rtsp_s::session, rtsp_s::stream, and rtsp_s::user_agent.

Referenced by rtsp_connect(), rtsp_session_end(), and rtsp_session_start().

## ◆ rtsp_connect()

rtsp_t * rtsp_connect | ( | xine_stream_t * | stream,
|  | const char * | mrl,
|  | const char * | user_agent )

References _, _x_asprintf(), _x_io_tcp_connect(), rtsp_s::answers, rtsp_s::auth, rtsp_s::cseq, rtsp_s::host, lprintf, MAX_FIELDS, rtsp_s::mrl, NULL, rtsp_s::path, rtsp_s::port, rtsp_basicauth(), rtsp_close(), rtsp_request_options(), rtsp_schedule_field(), rtsp_s::s, rtsp_s::scheduled, rtsp_s::server, rtsp_s::server_caps, rtsp_s::session, rtsp_s::stream, rtsp_s::user_agent, xine_stream_s::xine, XINE_VERBOSITY_LOG, and xprintf.

Referenced by rtsp_session_start().

## ◆ rtsp_free_answers()

void rtsp_free_answers | ( | rtsp_t * | this | ) |

References rtsp_s::answers, and NULL.

Referenced by rtsp_close(), and rtsp_get_answers().

## ◆ rtsp_get_mrl()

char * rtsp_get_mrl | ( | rtsp_t * | s | ) |

References rtsp_s::mrl.

Referenced by real_setup_and_get_header().

## ◆ rtsp_read()

int rtsp_read | ( | rtsp_t * | this,
|  | char * | data,
|  | int | len )

## ◆ rtsp_read_data()

int rtsp_read_data | ( | rtsp_t * | s,
|  | void * | buffer,
|  | unsigned int | size )

References _x_asprintf(), _x_io_tcp_read(), lprintf, rtsp_get(), rtsp_put(), rtsp_s::s, and rtsp_s::stream.

Referenced by real_get_rdt_chunk(), and real_setup_and_get_header().

## ◆ rtsp_request_describe()

int rtsp_request_describe | ( | rtsp_t * | s,
|  | const char * | what )

References _x_asprintf(), rtsp_s::host, rtsp_s::path, rtsp_s::port, rtsp_get_answers(), and rtsp_send_request().

Referenced by real_setup_and_get_header().

## ◆ rtsp_request_options()

int rtsp_request_options | ( | rtsp_t * | s,
|  | const char * | what )

References _x_asprintf(), rtsp_s::host, rtsp_s::port, rtsp_get_answers(), and rtsp_send_request().

Referenced by rtsp_connect().

## ◆ rtsp_request_play()

int rtsp_request_play | ( | rtsp_t * | s,
|  | const char * | what )

References _x_asprintf(), rtsp_s::host, rtsp_s::path, rtsp_s::port, rtsp_get_answers(), and rtsp_send_request().

Referenced by rtsp_session_play().

## ◆ rtsp_request_setparameter()

int rtsp_request_setparameter | ( | rtsp_t * | s,
|  | const char * | what )

References _x_asprintf(), rtsp_s::host, rtsp_s::path, rtsp_s::port, rtsp_get_answers(), and rtsp_send_request().

Referenced by real_setup_and_get_header().

## ◆ rtsp_request_setup()

int rtsp_request_setup | ( | rtsp_t * | s,
|  | const char * | what )

References rtsp_get_answers(), and rtsp_send_request().

Referenced by real_setup_and_get_header().

## ◆ rtsp_schedule_field()

void rtsp_schedule_field | ( | rtsp_t * | s,
|  | const char * | string )

References rtsp_s::scheduled.

Referenced by real_setup_and_get_header(), rtsp_connect(), rtsp_schedule_standard(), and rtsp_session_play().

## ◆ rtsp_search_answers()

const char * rtsp_search_answers | ( | rtsp_t * | s,
|  | const char * | tag )

References rtsp_s::answers, and NULL.

Referenced by real_setup_and_get_header(), and rtsp_session_start().

## ◆ rtsp_send_ok()

int rtsp_send_ok | ( | rtsp_t * | s | ) |

References rtsp_s::cseq, and rtsp_put().

Referenced by real_setup_and_get_header().

## ◆ rtsp_unschedule_all()

void rtsp_unschedule_all | ( | rtsp_t * | s | ) |

References NULL, and rtsp_s::scheduled.

Referenced by rtsp_close(), and rtsp_send_request().