blob: 5af43febb792f152f1c90dbcba52aa6dbf2957c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef SRTSERVER_H_
#define SRTSERVER_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stdlib.h>
typedef struct {
void (*on_start)(void *ctx);
void (*on_stop)(void *ctx);
void (*on_data)(void* ctx, char *buf, size_t size);
} SrtCallbacks;
void start_srt_server(SrtCallbacks cbs, void *ctx);
#ifdef __cplusplus
}
#endif
#endif
|