blob: 9381adf104fb112bccfe635627811a44eda1ba12 [file] [log] [blame]
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __INI_PLATFORM_H__
#define __INI_PLATFORM_H__
#if (defined CC_COMPILE_IN_UBOOT)
#ifndef strtoul
#define strtoul simple_strtoul
#endif
#ifndef strtol
#define strtol simple_strtol
#endif
#endif
#ifdef __cplusplus
extern "C" {
#endif
//c basic lib
char* plat_strtok_r(char *str, const char *delim, char **saveptr);
//File functions
int iniIsFileExist(const char *file_path);
int iniGetFileSize(const char *file_path);
int iniReadFileToBuffer(const char *file_path, int offset, int rd_size, unsigned char data_buf[]);
#ifdef __cplusplus
}
#endif
#endif //__INI_PLATFORM_H__