#include <string.h>#include "../../str.h"#include "../../dprint.h"#include "../../mem/mem.h"#include "xr_writer.h"#include "mi_xmlrpc.h"

Go to the source code of this file.
Functions | |
| static int | recur_build_response (xmlrpc_env *env, struct mi_node *tree, str *buf) |
| static int | recur_build_response_array (xmlrpc_env *env, struct mi_node *tree, str *buf) |
| char * | xr_build_response (xmlrpc_env *env, struct mi_root *tree) |
| int | xr_build_response_array (xmlrpc_env *env, struct mi_root *tree) |
| static int | xr_write_node (str *buf, struct mi_node *node) |
| int | xr_writer_init (unsigned int size) |
Variables | |
| static char * | reply_buffer = 0 |
| static unsigned int | reply_buffer_len = 0 |
| static xmlrpc_value * | reply_item |
Definition at line 160 of file xr_writer.c.
References mi_node::kids, _str::len, LM_ERR, mi_node::next, pkg_realloc, reply_buffer, reply_buffer_len, _str::s, and xr_write_node().
Referenced by xr_build_response().
| static int recur_build_response_array | ( | xmlrpc_env * | env, | |
| struct mi_node * | tree, | |||
| str * | buf | |||
| ) | [static] |
Definition at line 106 of file xr_writer.c.
References mi_node::kids, _str::len, LM_ERR, mi_node::next, reply_buffer, reply_buffer_len, reply_item, _str::s, xr_response, and xr_write_node().
Referenced by xr_build_response_array().
| char* xr_build_response | ( | xmlrpc_env * | env, | |
| struct mi_root * | tree | |||
| ) |
Definition at line 192 of file xr_writer.c.
References buf, mi_root::code, _str::len, LM_DBG, LM_ERR, mi_root::node, mi_root::reason, recur_build_response(), reply_buffer, reply_buffer_len, and _str::s.
Referenced by default_method().
| int xr_build_response_array | ( | xmlrpc_env * | env, | |
| struct mi_root * | tree | |||
| ) |
Definition at line 130 of file xr_writer.c.
References buf, mi_root::code, _str::len, LM_DBG, LM_ERR, mi_root::node, pkg_free, mi_root::reason, recur_build_response_array(), reply_buffer, reply_buffer_len, and _str::s.
Referenced by default_method().
Definition at line 52 of file xr_writer.c.
References mi_node::attributes, _str::len, mi_attr::name, mi_node::name, mi_attr::next, NULL, _str::s, mi_attr::value, and mi_node::value.
Referenced by recur_build_response(), and recur_build_response_array().
| int xr_writer_init | ( | unsigned int | size | ) |
Definition at line 39 of file xr_writer.c.
References LM_ERR, pkg_malloc, reply_buffer, and reply_buffer_len.
Referenced by xmlrpc_process().
char* reply_buffer = 0 [static] |
Definition at line 35 of file xr_writer.c.
Referenced by recur_build_response(), recur_build_response_array(), xr_build_response(), xr_build_response_array(), and xr_writer_init().
unsigned int reply_buffer_len = 0 [static] |
Definition at line 36 of file xr_writer.c.
Referenced by recur_build_response(), recur_build_response_array(), xr_build_response(), xr_build_response_array(), and xr_writer_init().
xmlrpc_value* reply_item [static] |
1.5.6