Process Hacker
mxml-file.c File Reference
#include <phbase.h>
#include "mxml-private.h"

Go to the source code of this file.

Macros

#define ENCODE_UTF8   0 /* UTF-8 */
 
#define ENCODE_UTF16BE   1 /* UTF-16 Big-Endian */
 
#define ENCODE_UTF16LE   2 /* UTF-16 Little-Endian */
 
#define mxml_bad_char(ch)   ((ch) < ' ' && (ch) != '\n' && (ch) != '\r' && (ch) != '\t')
 

Typedefs

typedef int(* _mxml_getc_cb_t )(void *, int *)
 
typedef int(* _mxml_putc_cb_t )(int, void *)
 
typedef struct _mxml_fdbuf_s _mxml_fdbuf_t
 

Functions

mxml_node_tmxmlLoadFd (mxml_node_t *top, HANDLE fd, mxml_load_cb_t cb)
 
mxml_node_tmxmlLoadFile (mxml_node_t *top, FILE *fp, mxml_load_cb_t cb)
 
mxml_node_tmxmlLoadString (mxml_node_t *top, const char *s, mxml_load_cb_t cb)
 
char * mxmlSaveAllocString (mxml_node_t *node, mxml_save_cb_t cb)
 
int mxmlSaveFd (mxml_node_t *node, HANDLE fd, mxml_save_cb_t cb)
 
int mxmlSaveFile (mxml_node_t *node, FILE *fp, mxml_save_cb_t cb)
 
int mxmlSaveString (mxml_node_t *node, char *buffer, int bufsize, mxml_save_cb_t cb)
 
mxml_node_tmxmlSAXLoadFd (mxml_node_t *top, HANDLE fd, mxml_load_cb_t cb, mxml_sax_cb_t sax_cb, void *sax_data)
 
mxml_node_tmxmlSAXLoadFile (mxml_node_t *top, FILE *fp, mxml_load_cb_t cb, mxml_sax_cb_t sax_cb, void *sax_data)
 
mxml_node_tmxmlSAXLoadString (mxml_node_t *top, const char *s, mxml_load_cb_t cb, mxml_sax_cb_t sax_cb, void *sax_data)
 
void mxmlSetCustomHandlers (mxml_custom_load_cb_t load, mxml_custom_save_cb_t save)
 
void mxmlSetErrorCallback (mxml_error_cb_t cb)
 
void mxmlSetWrapMargin (int column)
 

Macro Definition Documentation

#define ENCODE_UTF16BE   1 /* UTF-16 Big-Endian */

Definition at line 67 of file mxml-file.c.

#define ENCODE_UTF16LE   2 /* UTF-16 Little-Endian */

Definition at line 68 of file mxml-file.c.

#define ENCODE_UTF8   0 /* UTF-8 */

Definition at line 66 of file mxml-file.c.

#define mxml_bad_char (   ch)    ((ch) < ' ' && (ch) != '\n' && (ch) != '\r' && (ch) != '\t')

Definition at line 75 of file mxml-file.c.

Typedef Documentation

typedef struct _mxml_fdbuf_s _mxml_fdbuf_t
typedef int(* _mxml_getc_cb_t)(void *, int *)

Definition at line 82 of file mxml-file.c.

typedef int(* _mxml_putc_cb_t)(int, void *)

Definition at line 83 of file mxml-file.c.

Function Documentation

mxml_node_t* mxmlLoadFd ( mxml_node_t top,
HANDLE  fd,
mxml_load_cb_t  cb 
)

Definition at line 152 of file mxml-file.c.

mxml_node_t* mxmlLoadFile ( mxml_node_t top,
FILE *  fp,
mxml_load_cb_t  cb 
)

Definition at line 191 of file mxml-file.c.

mxml_node_t* mxmlLoadString ( mxml_node_t top,
const char *  s,
mxml_load_cb_t  cb 
)

Definition at line 219 of file mxml-file.c.

char* mxmlSaveAllocString ( mxml_node_t node,
mxml_save_cb_t  cb 
)

Definition at line 249 of file mxml-file.c.

int mxmlSaveFd ( mxml_node_t node,
HANDLE  fd,
mxml_save_cb_t  cb 
)

Definition at line 306 of file mxml-file.c.

int mxmlSaveFile ( mxml_node_t node,
FILE *  fp,
mxml_save_cb_t  cb 
)

Definition at line 354 of file mxml-file.c.

int mxmlSaveString ( mxml_node_t node,
char *  buffer,
int  bufsize,
mxml_save_cb_t  cb 
)

Definition at line 397 of file mxml-file.c.

mxml_node_t* mxmlSAXLoadFd ( mxml_node_t top,
HANDLE  fd,
mxml_load_cb_t  cb,
mxml_sax_cb_t  sax_cb,
void *  sax_data 
)

Definition at line 461 of file mxml-file.c.

mxml_node_t* mxmlSAXLoadFile ( mxml_node_t top,
FILE *  fp,
mxml_load_cb_t  cb,
mxml_sax_cb_t  sax_cb,
void *  sax_data 
)

Definition at line 509 of file mxml-file.c.

mxml_node_t* mxmlSAXLoadString ( mxml_node_t top,
const char *  s,
mxml_load_cb_t  cb,
mxml_sax_cb_t  sax_cb,
void *  sax_data 
)

Definition at line 547 of file mxml-file.c.

void mxmlSetCustomHandlers ( mxml_custom_load_cb_t  load,
mxml_custom_save_cb_t  save 
)

Definition at line 574 of file mxml-file.c.

void mxmlSetErrorCallback ( mxml_error_cb_t  cb)

Definition at line 592 of file mxml-file.c.

void mxmlSetWrapMargin ( int  column)

Definition at line 611 of file mxml-file.c.