blob: a5dbde9157e1b1afbf58e7d31259a2d64335787f [file] [log] [blame]
/******************************************************************************
*(C) Copyright 2011 Marvell International Ltd.
* All Rights Reserved
******************************************************************************/
/******************************************/
/* */
/* Title: head file of xml parser wrapper */
/* Filename: xmlparser.h */
/* */
/* Author: Liming Xie */
/* */
/* Project, Target, subsystem: Tavor, PXA920, HAL */
/* */
/* */
/* Created: Sep 2011 */
/* */
/********************************************/
#ifndef CONFIG_XML_PARSER_H_
#define CONFIG_XML_PARSER_H_
#define MAX_CFG_VALUE_LEN 1024
int get_int_value (void * pHandle, const char *loc_path, int *defval);
int get_char_array (void * pHandle, const char *loc_path, char *defval, int max_len);
int set_int_value (void * pHandle, const char *loc_path, int val);
int set_char_array (void * pHandle, const char *loc_path, const char *val);
int add_comment (void * pHandle, const char *loc_path, const char *comment);
void *open_tel_cfg (const char *cfgfile_name);
void *create_tel_cfg (const char *rootname);
int save_tel_cfg (const char *cfgfile_name, void **ppHandle);
int close_tel_cfg (void **ppHandle);
#endif