uvgRTP 4.0.0
An open-source library for RTP/SRTP media delivery
Loading...
Searching...
No Matches
wrapper_c.hh
1#ifndef UVGRTP_H
2#define UVGRTP_H
3
4#include "uvgrtp/export.hh"
5
6#ifdef __cplusplus
7extern "C"
8{
9#endif
10
11void UVGRTP_EXPORT uvgrtp_create_ctx(void** uvgrtp_context);
12
13void UVGRTP_EXPORT uvgrtp_create_session(void* uvgrtp_context, void** uvgrtp_session, char* remote_address);
14
15void UVGRTP_EXPORT uvgrtp_create_stream(void* uvgrtp_session, void** uvgrtp_stream, uint16_t local_port, uint16_t remote_port, int rce_flags);
16
17void UVGRTP_EXPORT uvgrtp_destroy_ctx(void* uvgrtp_context);
18
19void UVGRTP_EXPORT uvgrtp_destroy_session(void* uvgrtp_context, void* uvgrtp_session);
20
21void UVGRTP_EXPORT uvgrtp_destroy_stream(void* uvgrtp_session, void* uvgrtp_stream);
22
23void UVGRTP_EXPORT uvgrtp_push_frame(void* uvgrtp_stream, uint8_t* data, size_t data_len, int rtp_flags);
24
25#ifdef __cplusplus
26}
27#endif
28
29#endif //UVGRTP_H