예제 #1
0
파일: rpcBase.cpp 프로젝트: acml/cvsnt
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;
}
예제 #2
0
파일: rpcBase.cpp 프로젝트: acml/cvsnt
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;
}