diff mbox

[FFmpeg-devel,4/8] httpd.h: Adapt structs to config file

Message ID 20180531222032.30111-5-klaxa1337@googlemail.com
State New
Headers show

Commit Message

Stephan Holljes May 31, 2018, 10:20 p.m. UTC
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
---
 httpd.h | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
diff mbox

Patch

diff --git a/httpd.h b/httpd.h
index 6fb91bd..25cbe11 100644
--- a/httpd.h
+++ b/httpd.h
@@ -26,11 +26,28 @@ 
 
 #include "publisher.h"
 
+/* Supported stream formats, for now only matroska */
+enum StreamFormat {
+    FMT_MATROSKA = 0,
+    FMT_NB,
+};
+
+/* Stream Config struct */
+struct StreamConfig {
+    char *stream_name;
+    char *input_uri;
+    enum StreamFormat *formats;
+    int nb_formats;
+};
+
 /* HTTPD Config struct */
 struct HTTPDConfig {
+    char *server_name;
     char *bind_address;
     int port;
     int accept_timeout;
+    struct StreamConfig *streams;
+    int nb_streams;
 };
 
 /* HTTPClient struct, this information is shared between ffserver and the httpd implementation */