diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-14 11:39:10 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-14 11:39:10 +0000 |
| commit | f60d6f84708e2ff568089732cb9fbdbdc8cef3db (patch) | |
| tree | 7cd71914258671bdd4ffedf974ad40faef15519c /src/lib/config.h | |
| parent | 0eed8c6c205fe85fb1094d7a9b0a2f3d7eeeb698 (diff) | |
Add server configuration back in.
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index 0dcfd3f58..1fa54f669 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -31,7 +31,9 @@ #include <libdcp/metadata.h> #include "dci_metadata.h" #include "colour_conversion.h" +#include "server.h" +class ServerDescription; class Scaler; class Filter; class SoundProcessor; @@ -62,11 +64,29 @@ public: return _server_port_base; } + void set_use_any_servers (bool u) { + _use_any_servers = u; + } + + bool use_any_servers () const { + return _use_any_servers; + } + + /** @param s New list of servers */ + void set_servers (std::vector<std::string> s) { + _servers = s; + } + + /** @return Host names / IP addresses of J2K encoding servers that should definitely be used */ + std::vector<std::string> servers () const { + return _servers; + } + /** @return The IP address of a TMS that we can copy DCPs to */ std::string tms_ip () const { return _tms_ip; } - + /** @return The path on a TMS that we should write DCPs to */ std::string tms_path () const { return _tms_path; @@ -262,6 +282,10 @@ private: * this port and the one above it will be used. */ int _server_port_base; + /** true to broadcast on the `any' address to look for servers */ + bool _use_any_servers; + /** J2K encoding servers that should definitely be used */ + std::vector<std::string> _servers; /** Scaler to use for the "A" part of A/B comparisons */ Scaler const * _reference_scaler; /** Filters to use for the "A" part of A/B comparisons */ |
