diff --git a/utils/ConfigBase/include/ConfigBase.h b/utils/ConfigBase/include/ConfigBase.h deleted file mode 100644 index 0f2a330a..00000000 --- a/utils/ConfigBase/include/ConfigBase.h +++ /dev/null @@ -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 \ No newline at end of file