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

Stephan Holljes klaxa1337 at googlemail.com
Sun May 20 21:54:00 EEST 2018


Signed-off-by: Stephan Holljes <klaxa1337 at googlemail.com>
---
 httpd.h | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

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 */
-- 
2.16.2



More information about the ffmpeg-devel mailing list