Data Structures | |
struct | ParsingContext |
Parsing Context. More... | |
Defines | |
#define | MAX_DEPTH 32 |
Maximum nesting depth. | |
#define | CDATA_BUF_SIZE 1024 |
Maximum amount of CDATA. | |
#define | MAX_KEY_SIZE 128 |
Max length of property key. | |
Enumerations | |
enum | { CURELEM_UNKNOWN = -1, CURELEM_MNTD = 0, CURELEM_MOUNTPATH = 1 } |
Possible elements the parser can process. More... | |
Functions | |
void | mntd_volume_config_parsing_abort (ParsingContext *pc) |
Abort parsing of document. | |
void | mntd_volume_config_start (ParsingContext *pc, const char *el, const char **attr) |
Called by expat when an element begins. | |
void | mntd_volume_config_end (ParsingContext *pc, const char *el) |
Called by expat when an element ends. | |
void | mntd_volume_config_cdata (ParsingContext *pc, const char *s, int len) |
Called when there is CDATA. | |
int | mntd_volume_config_store_base (PVOLUMEMANAGER pvm, const char *base) |
Store base mountpath from config file. | |
int | mntd_volume_config_parse (char *config, PVOLUMEMANAGER pvm) |
Parse the config file. |
|
Possible elements the parser can process.
Definition at line 58 of file mntd_volume_config.c. |
|
Called when there is CDATA.
Definition at line 250 of file mntd_volume_config.c. References ParsingContext::aborted, ParsingContext::cdata_buf, ParsingContext::cdata_buf_len, CDATA_BUF_SIZE, and MSG_ERR. Referenced by mntd_volume_config_parse(). |
|
Called by expat when an element ends.
Definition at line 206 of file mntd_volume_config.c. References ParsingContext::aborted, ParsingContext::cdata_buf, ParsingContext::cdata_buf_len, ParsingContext::curelem, CURELEM_MOUNTPATH, ParsingContext::curelem_stack, ParsingContext::depth, mntd_volume_config_parsing_abort(), mntd_volume_config_store_base(), MSG_DEBUG, MSG_ERR, and ParsingContext::pvm. Referenced by mntd_volume_config_parse(). |
|
Parse the config file.
Definition at line 290 of file mntd_volume_config.c. References ParsingContext::aborted, ParsingContext::cdata_buf, ParsingContext::cdata_buf_len, ParsingContext::config, ParsingContext::curelem, CURELEM_UNKNOWN, ParsingContext::depth, mntd_file_get_size(), mntd_file_is_file(), mntd_file_read(), mntd_volume_config_cdata(), mntd_volume_config_end(), mntd_volume_config_start(), MSG_EMERG, MSG_INF, ParsingContext::parser, and ParsingContext::pvm. Referenced by mntd_volume_manager_init(). |
|
Abort parsing of document.
Definition at line 117 of file mntd_volume_config.c. References ParsingContext::aborted, and MSG_ERR. Referenced by mntd_volume_config_end(), and mntd_volume_config_start(). |
|
Called by expat when an element begins.
Definition at line 134 of file mntd_volume_config.c. References ParsingContext::aborted, ParsingContext::cdata_buf_len, ParsingContext::config, ParsingContext::curelem, CURELEM_MNTD, CURELEM_MOUNTPATH, ParsingContext::curelem_stack, CURELEM_UNKNOWN, ParsingContext::depth, MAX_DEPTH, mntd_volume_config_parsing_abort(), MSG_DEBUG, MSG_ERR, and ParsingContext::parser. Referenced by mntd_volume_config_parse(). |
|
Store base mountpath from config file.
Definition at line 384 of file mntd_volume_config.c. Referenced by mntd_volume_config_end(). |