Beispiel #1
0
CXmlNodePtr CrpcBase::rpcResponse(CXmlNodePtr result)
{
	// Looks dodgy.. probably broken
	// Not sure what this is actually supposed to do right now - fix later
	CXmlTree *tree = result->GetTree();
	if(!tree->CreateNewTree("methodResponse")) return NULL;
	CXmlNodePtr response = tree->GetRoot();
	response->NewNode("params");
	response->CopySubtree(result);
	response->GetParent();
	return response;
}
Beispiel #2
0
CXmlNodePtr CrpcBase::rpcCall(const char *method, CXmlNodePtr param)
{
	// Looks dodgy.. probably broken
	// Not sure what this is actually supposed to do right now - fix later
	CXmlTree *tree = param->GetTree();
	if(!tree->CreateNewTree("methodCall")) return NULL;
	CXmlNodePtr methodNode = tree->GetRoot();
	methodNode->NewNode("methodName",method,false);
	methodNode->NewNode("params");
	methodNode->CopySubtree(param);
	methodNode->GetParent();
	return methodNode;
}