1 // ----------------------------------------------------------------------------
2 //
3 // flxmlrpc Copyright (c) 2015 by W1HKJ, Dave Freese <iam_w1hkj@w1hkj.com>
4 //
5 // XmlRpc++ Copyright (c) 2002-2008 by Chris Morley
6 //
7 // This file is part of fldigi
8 //
9 // flxmlrpc is free software; you can redistribute it and/or modify
10 // it under the terms of the GNU Lesser General Public License as published by
11 // the Free Software Foundation; either version 3 of the License, or
12 // (at your option) any later version.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 // ----------------------------------------------------------------------------
17 
18 #include <config.h>
19 
20 #include "XmlRpcServerMethod.h"
21 #include "XmlRpcServer.h"
22 
23 namespace XmlRpc {
24 
25 
XmlRpcServerMethod(std::string const & name,XmlRpcServer * server)26   XmlRpcServerMethod::XmlRpcServerMethod(std::string const& name, XmlRpcServer* server)
27   {
28     _name = name;
29     _server = server;
30     if (_server) _server->addMethod(this);
31   }
32 
~XmlRpcServerMethod()33   XmlRpcServerMethod::~XmlRpcServerMethod()
34   {
35     if (_server) _server->removeMethod(this);
36   }
37 
38 
39 } // namespace XmlRpc
40