aboutsummaryrefslogtreecommitdiff
path: root/srtserver.h
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-12-20 20:51:19 +0800
committerMistivia <i@mistivia.com>2025-12-20 20:51:19 +0800
commit4744427e06dacccb17869a6ec7fac091a681fe4f (patch)
tree7727551b16fe71b2af3ef9d126a02b75706704e4 /srtserver.h
parentcfa6a4be3f357a7d223b602928b2fdf2abb6dda6 (diff)
delete rtmp stub
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