Lines Matching refs:node
107 static const char* get_array_soap_type(XMLRPC_VALUE node) { in get_array_soap_type() argument
110 XMLRPC_VALUE xIter = XMLRPC_VectorRewind(node); in get_array_soap_type()
115 xIter = XMLRPC_VectorNext(node); in get_array_soap_type()
128 xIter = XMLRPC_VectorNext(node); in get_array_soap_type()
173 static inline int get_fault_type(XMLRPC_VALUE node) { in get_fault_type() argument
174 if (XMLRPC_VectorGetValueWithID(node, TOKEN_XMLRPC_FAULTCODE) && in get_fault_type()
175 XMLRPC_VectorGetValueWithID(node, TOKEN_XMLRPC_FAULTSTRING)) { in get_fault_type()
178 else if (XMLRPC_VectorGetValueWithID(node, TOKEN_SOAP_FAULTCODE) && in get_fault_type()
179 XMLRPC_VectorGetValueWithID(node, TOKEN_SOAP_FAULTSTRING)) { in get_fault_type()
191 static XMLRPC_VALUE gen_fault_xmlrpc(XMLRPC_VALUE node, xml_element* el_target) { in gen_fault_xmlrpc() argument
192 XMLRPC_VALUE xDup = XMLRPC_DupValueNew(node); in gen_fault_xmlrpc()
434 xml_element* SOAP_to_xml_element_worker(XMLRPC_REQUEST request, XMLRPC_VALUE node) { in SOAP_to_xml_element_worker() argument
437 if (node) { in SOAP_to_xml_element_worker()
440 XMLRPC_VALUE_TYPE_EASY type = XMLRPC_GetValueTypeEasy(node); in SOAP_to_xml_element_worker()
455 const char* type = get_array_soap_type(node); in SOAP_to_xml_element_worker()
459 snprintf(buf, sizeof(buf), "%s[%i]", type, XMLRPC_VectorSize(node)); in SOAP_to_xml_element_worker()
469 int fault_type = get_fault_type(node); in SOAP_to_xml_element_worker()
474 node = gen_fault_xmlrpc(node, elem_val); in SOAP_to_xml_element_worker()
483 XMLRPC_VALUE xIter = XMLRPC_VectorRewind(node); in SOAP_to_xml_element_worker()
489 xIter = XMLRPC_VectorNext(node); in SOAP_to_xml_element_worker()
501 simplestring_addn(&elem_val->text, XMLRPC_GetValueString(node), XMLRPC_GetValueStringLen(node)); in SOAP_to_xml_element_worker()
505 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueInt(node)); in SOAP_to_xml_element_worker()
510 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueBoolean(node)); in SOAP_to_xml_element_worker()
515 snprintf(buf, BUF_SIZE, "%f", XMLRPC_GetValueDouble(node)); in SOAP_to_xml_element_worker()
520 time_t tt = XMLRPC_GetValueDateTime(node); in SOAP_to_xml_element_worker()
532 base64_encode_xmlrpc(&buf, XMLRPC_GetValueBase64(node), XMLRPC_GetValueStringLen(node)); in SOAP_to_xml_element_worker()
547 pName = (char*)XMLRPC_GetValueID(node); in SOAP_to_xml_element_worker()
560 pName = (char*)XMLRPC_GetValueID(node); in SOAP_to_xml_element_worker()
570 XMLRPC_CleanupValue(node); in SOAP_to_xml_element_worker()
577 xml_element* SOAP_VALUE_to_xml_element(XMLRPC_VALUE node) { in SOAP_VALUE_to_xml_element() argument
578 return SOAP_to_xml_element_worker(NULL, node); in SOAP_VALUE_to_xml_element()