#include <stdio.h>
#include <string.h>
#include "../../str.h"
#include "../../ut.h"
#include "../../dprint.h"
#include "../../mi/mi.h"
#include "../../mem/mem.h"
#include "mi_fifo.h"
#include "fifo_fnc.h"
#include "mi_parser.h"

Go to the source code of this file.
Functions | |
| static int | mi_write_node (str *buf, struct mi_node *node, int level) |
| int | mi_write_tree (FILE *stream, struct mi_root *tree) |
| void | mi_writer_destroy (void) |
| int | mi_writer_init (unsigned int size, char *indent) |
| static int | recur_write_tree (FILE *stream, struct mi_node *tree, str *buf, int level) |
Variables | |
| static str | mi_fifo_indent |
| static char * | mi_write_buffer = 0 |
| static unsigned int | mi_write_buffer_len = 0 |
Definition in file mi_writer.c.
Definition at line 82 of file mi_writer.c.
References mi_node::attributes, _str::len, MI_ATTR_VAL_SEP1, MI_ATTR_VAL_SEP2, mi_attr::name, mi_node::name, mi_attr::next, NULL, _str::s, mi_attr::value, and mi_node::value.
Referenced by recur_write_tree().
| int mi_write_tree | ( | FILE * | stream, | |
| struct mi_root * | tree | |||
| ) |
Definition at line 171 of file mi_writer.c.
References buf, mi_root::code, int2str(), mi_node::kids, _str::len, LM_ERR, mi_fifo_reply(), mi_write_buffer, mi_write_buffer_len, mi_root::node, mi_root::reason, recur_write_tree(), and _str::s.
Referenced by fifo_close_async(), and mi_fifo_server().
| void mi_writer_destroy | ( | void | ) |
| int mi_writer_init | ( | unsigned int | size, | |
| char * | indent | |||
| ) |
Definition at line 53 of file mi_writer.c.
References _str::len, LM_ERR, mi_write_buffer, mi_write_buffer_len, NULL, pkg_malloc, and _str::s.
Referenced by fifo_process(), and mi_child_init().
Definition at line 147 of file mi_writer.c.
References mi_node::kids, _str::len, LM_ERR, mi_fifo_reply(), mi_write_buffer, mi_write_buffer_len, mi_write_node(), mi_node::next, and _str::s.
Referenced by mi_write_tree().
str mi_fifo_indent [static] |
Definition at line 50 of file mi_writer.c.
char* mi_write_buffer = 0 [static] |
Definition at line 48 of file mi_writer.c.
Referenced by mi_write_tree(), mi_writer_destroy(), mi_writer_init(), and recur_write_tree().
unsigned int mi_write_buffer_len = 0 [static] |
Definition at line 49 of file mi_writer.c.
Referenced by mi_datagram_write_tree(), mi_datagram_writer_init(), mi_write_tree(), mi_writer_init(), and recur_write_tree().
1.5.6