summaryrefslogtreecommitdiff
path: root/src/lib/server.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-08-16 20:14:33 +0100
committerCarl Hetherington <cth@carlh.net>2013-08-16 21:51:15 +0100
commit74a8d26a8907c6e00e29f054178a3425f44e38ed (patch)
treefd700ba8471edcbd6e9e6481a3ca1397397a2d5d /src/lib/server.h
parentc2909b61d360510241ef37abd255269bd8aa9526 (diff)
Very basics of colour conversion configuration.
Diffstat (limited to 'src/lib/server.h')
-rw-r--r--src/lib/server.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/server.h b/src/lib/server.h
index e6d374369..6307c1867 100644
--- a/src/lib/server.h
+++ b/src/lib/server.h
@@ -41,6 +41,11 @@ namespace cxml {
class ServerDescription
{
public:
+ ServerDescription ()
+ : _host_name ("")
+ , _threads (1)
+ {}
+
/** @param h Server host name or IP address in string form.
* @param t Number of threads to use on the server.
*/
@@ -73,7 +78,7 @@ public:
void as_xml (xmlpp::Node *) const;
- static ServerDescription * create_from_metadata (std::string v);
+ static boost::shared_ptr<ServerDescription> create_from_metadata (std::string v);
private:
/** server's host name */