diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-26 02:56:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-26 02:56:38 +0100 |
| commit | c317087f637eeaa88c00a7b415b1d42ab28ba031 (patch) | |
| tree | 171928ddec3057524270989283272de83ec0a8eb /src/lib | |
| parent | df109c0941744bd808c9d3c1702381aebec27da0 (diff) | |
Partial server dialog fixes.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/config.h | 2 | ||||
| -rw-r--r-- | src/lib/server.h | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index 62fcebbc3..cbb83ad86 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -104,7 +104,7 @@ public: } /** @param p New server port */ - void set_sever_port (int p) { + void set_server_port (int p) { _server_port = p; Changed (); } diff --git a/src/lib/server.h b/src/lib/server.h index f7a0abb80..d06df34e9 100644 --- a/src/lib/server.h +++ b/src/lib/server.h @@ -48,6 +48,14 @@ public: return _threads; } + void set_host_name (std::string n) { + _host_name = n; + } + + void set_threads (int t) { + _threads = t; + } + std::string as_metadata () const; static Server * create_from_metadata (std::string v); |
