mirror of https://github.com/snes9xgit/snes9x.git
29 lines
519 B
C
29 lines
519 B
C
|
#ifndef __BML_H
|
||
|
#define __BML_H
|
||
|
#include <vector>
|
||
|
|
||
|
typedef struct bml_node
|
||
|
{
|
||
|
char *name;
|
||
|
char *data;
|
||
|
|
||
|
int depth;
|
||
|
|
||
|
std::vector<bml_node *> attr;
|
||
|
std::vector<bml_node *> child;
|
||
|
|
||
|
} bml_node;
|
||
|
|
||
|
bml_node *bml_parse_file (char *filename);
|
||
|
|
||
|
/* Parse character array into BML tree. Destructive to input. */
|
||
|
bml_node *bml_parse (char **buffer);
|
||
|
|
||
|
/* Recursively free bml_node and substructures */
|
||
|
void bml_free_node (bml_node *);
|
||
|
|
||
|
/* Print node structure to stdout */
|
||
|
void bml_print_node (bml_node *);
|
||
|
|
||
|
#endif
|