#include <thread>
#include <mutex>
-#include "rpc-port.h"
+#include "log-private.hh"
#include "port-internal.h"
#include "proxy-internal.h"
+#include "rpc-port.h"
#include "stub-internal.h"
#undef RPC_API
if (h == nullptr)
return RPC_PORT_ERROR_INVALID_PARAMETER;
+ _W("rpc_port_proxy_create(%p)", h);
auto p = new ::ProxyExt();
-
*h = p;
return RPC_PORT_ERROR_NONE;
}
if (h == nullptr)
return RPC_PORT_ERROR_INVALID_PARAMETER;
+ _W("rpc_port_proxy_destroy(%p)", h);
auto p = static_cast<::ProxyExt*>(h);
-
delete p;
return RPC_PORT_ERROR_NONE;
}
if (h == nullptr || appid == nullptr || port == nullptr)
return RPC_PORT_ERROR_INVALID_PARAMETER;
+ _W("rpc_port_proxy_connect(%p, %s, %s)", h, appid, port);
auto p = static_cast<::ProxyExt*>(h);
std::lock_guard<std::recursive_mutex> lock(p->GetMutex());
if (h == nullptr || appid == nullptr || port == nullptr)
return RPC_PORT_ERROR_INVALID_PARAMETER;
+ _W("rpc_port_proxy_connect(%p, %s, %s)", h, appid, port);
auto p = static_cast<::ProxyExt*>(h);
std::lock_guard<std::recursive_mutex> lock(p->GetMutex());
if (h == nullptr || port_name == nullptr)
return RPC_PORT_ERROR_INVALID_PARAMETER;
+ _W("rpc_port_stub_create(%p, %s)", h, port_name);
auto p = new ::StubExt(port_name);
-
*h = p;
return RPC_PORT_ERROR_NONE;
}
if (h == nullptr)
return RPC_PORT_ERROR_INVALID_PARAMETER;
+ _W("rpc_port_stub_destroy(%p)", h);
auto p = static_cast<::StubExt*>(h);
-
delete p;
return RPC_PORT_ERROR_NONE;
}
if (h == nullptr)
return RPC_PORT_ERROR_INVALID_PARAMETER;
+ _W("rpc_port_stub_listen(%p)", h);
auto p = static_cast<::StubExt*>(h);
std::lock_guard<std::recursive_mutex> lock(p->GetMutex());