summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/config.h2
-rw-r--r--src/lib/server.h8
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);