Back to index

php5  5.3.10
Classes | Defines | Typedefs | Functions
xmlrpc_private.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _xmlrpc_value
struct  _xmlrpc_request
struct  _xmlrpc_vector
struct  _xmlrpc_server
struct  _server_method

Defines

#define my_free(thing)   if(thing) {free(thing); thing = 0;}

Typedefs

typedef struct _xmlrpc_vectorXMLRPC_VECTOR
typedef struct _xmlrpc_value STRUCT_XMLRPC_VALUE
typedef struct _xmlrpc_request STRUCT_XMLRPC_REQUEST
typedef struct _xmlrpc_vector STRUCT_XMLRPC_VECTOR
typedef struct _xmlrpc_server STRUCT_XMLRPC_SERVER
typedef struct _server_method server_method

Functions

server_methodfind_method (XMLRPC_SERVER server, const char *name)
const char * type_to_str (XMLRPC_VALUE_TYPE type, XMLRPC_VECTOR_TYPE vtype)

Class Documentation

struct _xmlrpc_value

Definition at line 88 of file xmlrpc_private.h.

Collaboration diagram for _xmlrpc_value:
Class Members
double d
int i
simplestring id
int iRefCount
simplestring str
XMLRPC_VALUE_TYPE type
XMLRPC_VECTOR v
struct _xmlrpc_request

Definition at line 113 of file xmlrpc_private.h.

Collaboration diagram for _xmlrpc_request:
Class Members
XMLRPC_VALUE error
XMLRPC_VALUE io
simplestring methodName
STRUCT_XMLRPC_REQUEST_OUTPUT_OPTIONS output
XMLRPC_REQUEST_TYPE request_type
struct _xmlrpc_vector

Definition at line 123 of file xmlrpc_private.h.

Collaboration diagram for _xmlrpc_vector:
Class Members
queue * q
XMLRPC_VECTOR_TYPE type
struct _xmlrpc_server

Definition at line 142 of file xmlrpc_private.h.

Collaboration diagram for _xmlrpc_server:
Class Members
queue docslist
queue methodlist
XMLRPC_VALUE xIntrospection
struct _server_method

Definition at line 149 of file xmlrpc_private.h.

Collaboration diagram for _server_method:
Class Members
XMLRPC_VALUE desc
XMLRPC_Callback method
char * name

Define Documentation

#define my_free (   thing)    if(thing) {free(thing); thing = 0;}

Definition at line 169 of file xmlrpc_private.h.


Typedef Documentation

typedef struct _server_method server_method
typedef struct _xmlrpc_vector* XMLRPC_VECTOR

Definition at line 73 of file xmlrpc_private.h.


Function Documentation

server_method* find_method ( XMLRPC_SERVER  server,
const char *  name 
)

Definition at line 2450 of file xmlrpc.c.

                                                                   {
   server_method* sm;

   q_iter qi = Q_Iter_Head_F(&server->methodlist);

   while( qi ) {
      sm = Q_Iter_Get_F(qi);
      if(sm && !strcmp(sm->name, name)) {
         return sm;
      }
      qi = Q_Iter_Next_F(qi);
   }
   return NULL;
}

Here is the caller graph for this function:

const char* type_to_str ( XMLRPC_VALUE_TYPE  type,
XMLRPC_VECTOR_TYPE  vtype 
)

Definition at line 2466 of file xmlrpc.c.

                                                                          {
    switch(type) {
       case xmlrpc_none:
          return "none";
       case xmlrpc_empty:
          return "empty";
       case xmlrpc_base64:
          return "base64";
       case xmlrpc_boolean:
          return "boolean";
       case xmlrpc_datetime:
          return "datetime";
       case xmlrpc_double:
          return "double";
       case xmlrpc_int:
          return "int";
       case xmlrpc_string:
          return "string";
       case xmlrpc_vector:
          switch(vtype) {
             case xmlrpc_vector_none:
                return "none";
             case xmlrpc_vector_array:
                return "array";
             case xmlrpc_vector_mixed:
                return "mixed vector (struct)";
             case xmlrpc_vector_struct:
                return "struct";
          }
    }
    return "unknown";
}

Here is the caller graph for this function: