Back to index

php5  5.3.10
Functions
xml_to_dandarpc.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_DANDARPC_VALUE (xml_element *el)
XMLRPC_VALUE xml_element_to_DANDARPC_REQUEST (XMLRPC_REQUEST request, xml_element *el)
xml_elementDANDARPC_VALUE_to_xml_element (XMLRPC_VALUE node)
xml_elementDANDARPC_REQUEST_to_xml_element (XMLRPC_REQUEST request)

Function Documentation

Definition at line 279 of file xml_to_dandarpc.c.

                                                                     {
   xml_element* wrapper = NULL;
   xml_element* root = NULL;
   if(request) {
      XMLRPC_REQUEST_TYPE request_type = XMLRPC_RequestGetRequestType(request);
      const char* pStr = NULL;
      xml_element_attr* version = malloc(sizeof(xml_element_attr));
      version->key = strdup(ATTR_VERSION);
      version->val = strdup(VAL_VERSION_0_9);
      
      wrapper = xml_elem_new();

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

      root = xml_elem_new();
      root->name = strdup(ELEM_ROOT);
      Q_PushTail(&root->attrs, version);
      Q_PushTail(&root->children, wrapper);

      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);
      }
      Q_PushTail(&wrapper->children, 
                 DANDARPC_to_xml_element_worker(request, XMLRPC_RequestGetData(request)));
   }
   return root;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 275 of file xml_to_dandarpc.c.

Here is the call graph for this function:

Definition at line 163 of file xml_to_dandarpc.c.

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

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 158 of file xml_to_dandarpc.c.

Here is the call graph for this function: