Add a parameter(peerinfo) for method handler.
Change-Id: I36a3fb7f2a8ec16e72e1a527a7ba79f3a6f4f624
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
// Invoke
std::string m;
- m += "On" + decl.GetID() + "(";
+ m += "On" + decl.GetID() + "(peer_info";
cnt = 1;
for (auto i = decl.GetParameters().begin();
i != decl.GetParameters().end(); ++i) {
- if (cnt != 1)
- m += ", ";
+ m += ", ";
m += "param" + std::to_string(cnt++);
}
ret = cion_group_subscribe(group);
if (ret != CION_ERROR_NONE) {
_E("Failed to subscribe. error(%d)", ret);
- switch(ret) {
+ switch (ret) {
case CION_ERROR_PERMISSION_DENIED :
throw UnauthorizedAccessException();
break;
for (const auto& i : decls) {
stream << Tab(1) << "virtual " << ConvertTypeToString(i->GetType()) << " On"
- << i->GetID() << "(";
+ << i->GetID() << "(const cion_peer_info_h peer_info, ";
GenParameters(stream, i->GetParameters());
stream << ") = 0;" << NLine(1);
}
virtual void OnJoined(const cion_peer_info_h peer_info) = 0;
/// <summary>
- /// This method will be invoked after the peer group app was left from the tpoic.
+ /// This method will be invoked after the peer group app was left from the topic.
/// </summary>
virtual void OnLeft(const cion_peer_info_h peer_info) = 0;