summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-08-19 00:21:43 +0100
committerCarl Hetherington <cth@carlh.net>2015-08-19 00:21:43 +0100
commitc450fb19ea21dba0a6cade81e829262e7078e9df (patch)
treec6876bb2b4d4ac52223848dc47b58f75dbe49744 /src/lib/config.h
parentbe0899b93837bf8929282d85aa90f5390ba17755 (diff)
Add only-servers-encode option for debugging / optimisation / testing of servers.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 40b655342..0839ea994 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -90,6 +90,10 @@ public:
return _servers;
}
+ bool only_servers_encode () const {
+ return _only_servers_encode;
+ }
+
Protocol tms_protocol () const {
return _tms_protocol;
}
@@ -251,6 +255,10 @@ public:
maybe_set (_server_port_base, p);
}
+ void set_only_servers_encode (bool o) {
+ maybe_set (_only_servers_encode, o);
+ }
+
void set_tms_protocol (Protocol p) {
maybe_set (_tms_protocol, p);
}
@@ -455,6 +463,7 @@ private:
bool _use_any_servers;
/** J2K encoding servers that should definitely be used */
std::vector<std::string> _servers;
+ bool _only_servers_encode;
Protocol _tms_protocol;
/** The IP address of a TMS that we can copy DCPs to */
std::string _tms_ip;