summaryrefslogtreecommitdiff
path: root/node/RPC.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/RPC.hpp')
-rw-r--r--node/RPC.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/node/RPC.hpp b/node/RPC.hpp
index e31b5f6d..669bf5ae 100644
--- a/node/RPC.hpp
+++ b/node/RPC.hpp
@@ -140,6 +140,16 @@ public:
std::pair< int,std::vector<std::string> > callLocal(const std::string &name,const std::vector<std::string> &args);
/**
+ * Load a plugin
+ *
+ * @param name Name of RPC function
+ * @param path Path to plugin DLL
+ * @throws std::invalid_argument Unable to properly load or resolve symbol(s) in DLL
+ */
+ void loadLocal(const char *name,const char *path)
+ throw(std::invalid_argument);
+
+ /**
* Call a remote service
*
* @param peer Peer to call on
@@ -165,8 +175,10 @@ public:
private:
const RuntimeEnvironment *_r;
+#ifndef __WINDOWS__
std::map<std::string,LocalService *> _rpcServices;
Mutex _rpcServices_m;
+#endif
struct RemoteCallOutstanding
{