mi_writer.c File Reference

MI Fifo :: Fifo writer. More...

#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"

Include dependency graph for mi_writer.c:

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


Detailed Description

MI Fifo :: Fifo writer.

Definition in file mi_writer.c.


Function Documentation

static int mi_write_node ( str buf,
struct mi_node node,
int  level 
) [inline, static]

int mi_write_tree ( FILE *  stream,
struct mi_root tree 
)

void mi_writer_destroy ( void   ) 

Definition at line 75 of file mi_writer.c.

References mi_write_buffer, and pkg_free.

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().

static int recur_write_tree ( FILE *  stream,
struct mi_node tree,
str buf,
int  level 
) [static]


Variable Documentation

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]


Generated on Wed May 23 20:00:40 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6