]> git.sesse.net Git - nageru/blobdiff - httpd.h
Allow symlinked frame files. Useful for testing.
[nageru] / httpd.h
diff --git a/httpd.h b/httpd.h
index 57c649b61158c6f73b498aeca6556b97bc52f179..9901814586cb913ca06c7f6afc4f39364561f5ac 100644 (file)
--- a/httpd.h
+++ b/httpd.h
@@ -3,16 +3,16 @@
 
 // A class dealing with stream output to HTTP.
 
-#include <stddef.h>
-#include <stdint.h>
-#include <sys/types.h>
 #include <atomic>
 #include <condition_variable>
 #include <deque>
 #include <functional>
 #include <mutex>
 #include <set>
+#include <stddef.h>
+#include <stdint.h>
 #include <string>
+#include <sys/types.h>
 #include <unordered_map>
 #include <utility>
 
@@ -32,7 +32,8 @@ public:
        ~HTTPD();
 
        // Should be called before start().
-       void set_header(const std::string &data) {
+       void set_header(const std::string &data)
+       {
                header = data;
        }
 
@@ -41,14 +42,16 @@ public:
                NO_CORS_POLICY,
                ALLOW_ALL_ORIGINS
        };
-       void add_endpoint(const std::string &url, const EndpointCallback &callback, CORSPolicy cors_policy) {
+       void add_endpoint(const std::string &url, const EndpointCallback &callback, CORSPolicy cors_policy)
+       {
                endpoints[url] = Endpoint{ callback, cors_policy };
        }
 
        void start(int port);
        void stop();
        void add_data(const char *buf, size_t size, bool keyframe, int64_t time, AVRational timebase);
-       int64_t get_num_connected_clients() const {
+       int64_t get_num_connected_clients() const
+       {
                return metric_num_connected_clients.load();
        }