mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-27 21:38:48 +02:00
controlscript must be located in plugin_dir
This commit is contained in:
parent
be266c07ce
commit
8e9806f35c
13 changed files with 137 additions and 46 deletions
|
@ -28,6 +28,7 @@
|
|||
#include <boost/process.hpp>
|
||||
|
||||
// standard headers
|
||||
#include <filesystem>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
|
@ -78,10 +79,10 @@ private:
|
|||
class ScriptStreamControl : public StreamControl
|
||||
{
|
||||
public:
|
||||
ScriptStreamControl(const boost::asio::any_io_executor& executor, const std::string& script, const std::string& params);
|
||||
ScriptStreamControl(const boost::asio::any_io_executor& executor, const std::filesystem::path& plugin_dir, std::string script, std::string params);
|
||||
virtual ~ScriptStreamControl() = default;
|
||||
|
||||
protected:
|
||||
private:
|
||||
/// Send a message to stdin of the process
|
||||
void doCommand(const jsonrpcpp::Request& request) override;
|
||||
void doStart(const std::string& stream_id, const ServerSettings& server_setttings) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue