X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=input.h;h=e0bd54b5bf57c221363b4cbc3ede3a157047a15f;hp=79cfc54183dfb9bdfee82e25a3448ccdc7ae7bd1;hb=1e15bf9054e65adfce268578f4e474c980ef6443;hpb=ca9624c43b968a0f29ea44e47851ff686bb64bb6 diff --git a/input.h b/input.h index 79cfc54..e0bd54b 100644 --- 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)