Back to index

php5  5.3.10
Functions
xml_to_xmlrpc.h File Reference
#include "time.h"
#include "xmlrpc.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

XMLRPC_VALUE xml_element_to_XMLRPC_VALUE (xml_element *el)
XMLRPC_VALUE xml_element_to_XMLRPC_REQUEST (XMLRPC_REQUEST request, xml_element *el)
xml_elementXMLRPC_VALUE_to_xml_element (XMLRPC_VALUE node)
xml_elementXMLRPC_REQUEST_to_xml_element (XMLRPC_REQUEST request)

Function Documentation

Definition at line 181 of file xml_to_xmlrpc.c.

{
   if (request) {
      return XMLRPC_RequestSetData(request, xml_element_to_XMLRPC_REQUEST_worker(request, NULL, NULL, el));
   }
   return NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 176 of file xml_to_xmlrpc.c.

Here is the call graph for this function:

Definition at line 372 of file xml_to_xmlrpc.c.

                                                                   {
   xml_element* wrapper = NULL;
   if (request) {
      const char* pStr = NULL;
      XMLRPC_REQUEST_TYPE request_type = XMLRPC_RequestGetRequestType(request);
      XMLRPC_VALUE xParams = XMLRPC_RequestGetData(request);

      wrapper = xml_elem_new();

      if (request_type == xmlrpc_request_call) {
         pStr = ELEM_METHODCALL;
              }
              else if (request_type == xmlrpc_request_response) {
         pStr = ELEM_METHODRESPONSE;
      }
      if (pStr) {
         wrapper->name = strdup(pStr);
      }

              if(request_type == xmlrpc_request_call) {
      pStr = XMLRPC_RequestGetMethodName(request);

      if (pStr) {
         xml_element* method = xml_elem_new();
         method->name = strdup(ELEM_METHODNAME);
         simplestring_add(&method->text, pStr);
         Q_PushTail(&wrapper->children, method);
      }
              }
      if (xParams) {
         Q_PushTail(&wrapper->children, 
                    XMLRPC_to_xml_element_worker(NULL, XMLRPC_RequestGetData(request), XMLRPC_RequestGetRequestType(request), 0));
              }
              else {
         /* Despite the spec, the xml-rpc list folk want me to send an empty params element */
         xml_element* params = xml_elem_new();
         params->name = strdup(ELEM_PARAMS);
         Q_PushTail(&wrapper->children, params);
      }
   }
   return wrapper;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 368 of file xml_to_xmlrpc.c.

Here is the call graph for this function:

Here is the caller graph for this function: