]> git.sesse.net Git - cubemap/blobdiff - input.h
Deduplicate inputs.
[cubemap] / input.h
diff --git a/input.h b/input.h
index 79cfc54183dfb9bdfee82e25a3448ccdc7ae7bd1..e0bd54b5bf57c221363b4cbc3ede3a157047a15f 100644 (file)
--- a/input.h
+++ b/input.h
@@ -13,7 +13,7 @@ bool parse_url(const std::string &url, std::string *protocol, std::string *host,
 
 // Figure out the right type of input based on the URL, and create a new Input of the right type.
 // Will return NULL if unknown.
-Input *create_input(const std::string &stream_id, const std::string &url);
+Input *create_input(const std::string &url);
 Input *create_input(const InputProto &serialized);
 
 class Input : public Thread {
@@ -22,6 +22,7 @@ public:
        virtual InputProto serialize() const = 0;
        virtual std::string get_url() const = 0;
        virtual void close_socket() = 0;
+       virtual void add_destination(const std::string &stream_id) = 0;
 };
 
 #endif  // !defined(_INPUT_H)