Lines Matching refs:el
70 …er(XMLRPC_REQUEST request, XMLRPC_VALUE parent_vector, XMLRPC_VALUE current_val, xml_element* el) { in xml_element_to_XMLRPC_REQUEST_worker() argument
76 if (el->name) { in xml_element_to_XMLRPC_REQUEST_worker()
79 if (!strcmp(el->name, ELEM_FAULT)) { in xml_element_to_XMLRPC_REQUEST_worker()
80 xml_element* fault_value = (xml_element*)Q_Head(&el->children); in xml_element_to_XMLRPC_REQUEST_worker()
97 …else if (!strcmp(el->name, ELEM_DATA) /* should be ELEM_ARRAY, but there is an extra level. weird … in xml_element_to_XMLRPC_REQUEST_worker()
98 || (!strcmp(el->name, ELEM_PARAMS) && in xml_element_to_XMLRPC_REQUEST_worker()
100 xml_element* iter = (xml_element*)Q_Head(&el->children); in xml_element_to_XMLRPC_REQUEST_worker()
107 iter = (xml_element*)Q_Next(&el->children); in xml_element_to_XMLRPC_REQUEST_worker()
110 else if (!strcmp(el->name, ELEM_STRUCT)) { in xml_element_to_XMLRPC_REQUEST_worker()
111 xml_element* iter = (xml_element*)Q_Head(&el->children); in xml_element_to_XMLRPC_REQUEST_worker()
118 iter = (xml_element*)Q_Next(&el->children); in xml_element_to_XMLRPC_REQUEST_worker()
121 else if (!strcmp(el->name, ELEM_STRING) || in xml_element_to_XMLRPC_REQUEST_worker()
122 (!strcmp(el->name, ELEM_VALUE) && Q_Size(&el->children) == 0)) { in xml_element_to_XMLRPC_REQUEST_worker()
123 XMLRPC_SetValueString(current_val, el->text.str, el->text.len); in xml_element_to_XMLRPC_REQUEST_worker()
125 else if (!strcmp(el->name, ELEM_NAME)) { in xml_element_to_XMLRPC_REQUEST_worker()
126 XMLRPC_SetValueID_Case(current_val, el->text.str, 0, xmlrpc_case_exact); in xml_element_to_XMLRPC_REQUEST_worker()
128 else if (!strcmp(el->name, ELEM_INT) || !strcmp(el->name, ELEM_I4)) { in xml_element_to_XMLRPC_REQUEST_worker()
129 XMLRPC_SetValueInt(current_val, atoi(el->text.str)); in xml_element_to_XMLRPC_REQUEST_worker()
131 else if (!strcmp(el->name, ELEM_BOOLEAN)) { in xml_element_to_XMLRPC_REQUEST_worker()
132 XMLRPC_SetValueBoolean(current_val, atoi(el->text.str)); in xml_element_to_XMLRPC_REQUEST_worker()
134 else if (!strcmp(el->name, ELEM_DOUBLE)) { in xml_element_to_XMLRPC_REQUEST_worker()
135 XMLRPC_SetValueDouble(current_val, atof(el->text.str)); in xml_element_to_XMLRPC_REQUEST_worker()
137 else if (!strcmp(el->name, ELEM_DATETIME)) { in xml_element_to_XMLRPC_REQUEST_worker()
138 XMLRPC_SetValueDateTime_ISO8601(current_val, el->text.str); in xml_element_to_XMLRPC_REQUEST_worker()
140 else if (!strcmp(el->name, ELEM_BASE64)) { in xml_element_to_XMLRPC_REQUEST_worker()
142 base64_decode_xmlrpc(&buf, el->text.str, el->text.len); in xml_element_to_XMLRPC_REQUEST_worker()
149 if (!strcmp(el->name, ELEM_METHODCALL)) { in xml_element_to_XMLRPC_REQUEST_worker()
154 else if (!strcmp(el->name, ELEM_METHODRESPONSE)) { in xml_element_to_XMLRPC_REQUEST_worker()
159 else if (!strcmp(el->name, ELEM_METHODNAME)) { in xml_element_to_XMLRPC_REQUEST_worker()
161 XMLRPC_RequestSetMethodName(request, el->text.str); in xml_element_to_XMLRPC_REQUEST_worker()
165 iter = (xml_element*)Q_Head(&el->children); in xml_element_to_XMLRPC_REQUEST_worker()
169 iter = (xml_element*)Q_Next(&el->children); in xml_element_to_XMLRPC_REQUEST_worker()
176 XMLRPC_VALUE xml_element_to_XMLRPC_VALUE(xml_element* el) in xml_element_to_XMLRPC_VALUE() argument
178 return xml_element_to_XMLRPC_REQUEST_worker(NULL, NULL, NULL, el); in xml_element_to_XMLRPC_VALUE()
181 XMLRPC_VALUE xml_element_to_XMLRPC_REQUEST(XMLRPC_REQUEST request, xml_element* el) in xml_element_to_XMLRPC_REQUEST() argument
184 …turn XMLRPC_RequestSetData(request, xml_element_to_XMLRPC_REQUEST_worker(request, NULL, NULL, el)); in xml_element_to_XMLRPC_REQUEST()