mirror of
https://gitee.com/jiuyilian/embedded-framework.git
synced 2025-01-06 10:16:51 -05:00
删除文件 utils/ConfigBase/include/ConfigBase.h
This commit is contained in:
parent
7a9c8357ad
commit
e56cc6bf1a
|
@ -1,52 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2023 Fancy Code.
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
#ifndef CONFIG_BASE_H
|
|
||||||
#define CONFIG_BASE_H
|
|
||||||
#include "StatusCode.h"
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
enum CONFIG_CODE
|
|
||||||
{
|
|
||||||
CONFIG_CODE_PARAM_NOT_EXIST = STATUS_CODE_END,
|
|
||||||
CONFIG_CODE_END
|
|
||||||
};
|
|
||||||
// StatusCode ConfigInit(void);
|
|
||||||
// StatusCode ConfigUnInit(void);
|
|
||||||
void *OpenConfigFile(const char *fileName);
|
|
||||||
StatusCode ConfigSaveFile(void *object);
|
|
||||||
void CloseConfigFile(void *object);
|
|
||||||
StatusCode ConfigGetInt(void *object, const char *name, int *value);
|
|
||||||
StatusCode ConfigSetInt(void *object, const char *name, const int value);
|
|
||||||
StatusCode ConfigGetShort(void *object, const char *name, short *value);
|
|
||||||
StatusCode ConfigSetShort(void *object, const char *name, const short value);
|
|
||||||
StatusCode ConfigGetLong(void *object, const char *name, long *value);
|
|
||||||
StatusCode ConfigSetLong(void *object, const char *name, const long value);
|
|
||||||
StatusCode ConfigGetLLong(void *object, const char *name, long long *value);
|
|
||||||
StatusCode ConfigSetLLong(void *object, const char *name, const long long value);
|
|
||||||
StatusCode ConfigGetChar(void *object, const char *name, char *value);
|
|
||||||
StatusCode ConfigSetChar(void *object, const char *name, const char value);
|
|
||||||
StatusCode ConfigGetBool(void *object, const char *name, bool *value);
|
|
||||||
StatusCode ConfigSetBool(void *object, const char *name, const bool value);
|
|
||||||
StatusCode ConfigGetFloat(void *object, const char *name, float *value);
|
|
||||||
StatusCode ConfigSetFloat(void *object, const char *name, const float value);
|
|
||||||
StatusCode ConfigGetDouble(void *object, const char *name, double *value);
|
|
||||||
StatusCode ConfigSetDouble(void *object, const char *name, const double value);
|
|
||||||
StatusCode ConfigGetString(void *object, const char *name, const char **value);
|
|
||||||
StatusCode ConfigSetString(void *object, const char *name, const char *value);
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
|
Loading…
Reference in New Issue
Block a user