38 lines
907 B
C
38 lines
907 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* common/ini/ini_proxy.h
|
|
*
|
|
* Copyright (C) 2020 Amlogic, Inc. All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef __INI_PROXY_H__
|
|
#define __INI_PROXY_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void BinFileInit(void);
|
|
void BinFileUninit(void);
|
|
int ReadBinFile(const char* filename);
|
|
int GetBinData(unsigned char* file_buf, unsigned int file_size);
|
|
|
|
void IniParserInit(void);
|
|
void IniParserUninit(void);
|
|
int IniParseFile(const char* filename);
|
|
int IniParseMem(unsigned char* file_buf);
|
|
int IniSetSaveFileName(const char* filename);
|
|
void IniParserFree(void);
|
|
void IniPrintAll(void);
|
|
void IniListSection(void);
|
|
const char* IniGetString(const char* section, const char* key, const char* def_value);
|
|
int IniSetString(const char *section, const char *key, const char *value);
|
|
int IniSaveToFile(const char *filename);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif //__INI_PROXY_H__
|