aboutsummaryrefslogtreecommitdiff
path: root/srtserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'srtserver.h')
-rw-r--r--srtserver.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/srtserver.h b/srtserver.h
index b228884..5af43fe 100644
--- a/srtserver.h
+++ b/srtserver.h
@@ -1,5 +1,5 @@
-#ifndef RTMPSERVER_H_
-#define RTMPSERVER_H_
+#ifndef SRTSERVER_H_
+#define SRTSERVER_H_
#ifdef __cplusplus
extern "C" {
@@ -11,17 +11,9 @@ extern "C" {
typedef struct {
void (*on_start)(void *ctx);
void (*on_stop)(void *ctx);
- void (*on_video)(void* ctx, int64_t timestamp, char *buf, size_t size);
- void (*on_audio)(void* ctx, int64_t timestamp, char *buf, size_t size);
-} RtmpCallbacks;
-
-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_rtmpserver(RtmpCallbacks cbs, void *ctx);
void start_srt_server(SrtCallbacks cbs, void *ctx);
#ifdef __cplusplus