diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
commit | df5520aa2dae5b3ce7abf8733dcdd152898af163 (patch) | |
tree | 00d3047bfb14f682bfb5a21010c731ed649bfed7 /app/bin/include/paramfile.h | |
parent | df247efec654e512242e4f4f1b0212034f9e01fe (diff) | |
parent | ec3c0f6f6e7153fa797dc57a0e95779cbc63a23b (diff) |
Merge branch 'release/debian/1_5.3.0GA-1'debian/1_5.3.0GA-1
Diffstat (limited to 'app/bin/include/paramfile.h')
-rw-r--r-- | app/bin/include/paramfile.h | 51 |
1 files changed, 30 insertions, 21 deletions
diff --git a/app/bin/include/paramfile.h b/app/bin/include/paramfile.h index b177b15..8ae7f59 100644 --- a/app/bin/include/paramfile.h +++ b/app/bin/include/paramfile.h @@ -1,26 +1,35 @@ #ifndef HAVE_PARAMFILE_H - #define HAVE_PARAMFILE_H - #include <stdbool.h> - #include <wlib.h> - #include "common.h" +#define HAVE_PARAMFILE_H +#include <stdbool.h> +#include <wlib.h> +#include "common.h" - extern DIST_T curBarScale; - extern dynArr_t paramProc_da; - extern dynArr_t paramFileInfo_da; +extern DIST_T curBarScale; +extern dynArr_t paramProc_da; +extern dynArr_t paramFileInfo_da; + +void ParamCheckSumLine(char * line); +wBool_t IsParamValid(int fileInx); +bool IsParamFileDeleted(int fileInx); +bool IsParamFileFavorite(int fileInx); +void SetParamFileState(int index); +int ReadParamFile(const char *fileName); +int ReloadDeletedParamFile(int fileindex); +void SetParamFileDeleted(int fileInx, bool deleted); +void SetParamFileFavorite(int fileInx, bool favorite); +char * GetParamFileName(int fileInx); +char * GetParamFileContents(int fileInx); +bool ReadParams(long key, const char * dirName, const char * fileName); + +#define CONTENTSCOMMAND "CONTENTS" +char *GetParameterFileContent(char *file); + +#define TURNOUTCOMMAND "TURNOUT" +#define STRUCTURECOMMAND "STRUCTURE" +#define CARCOMMAND "CARPART" +#define CARPROTOCOMMAND "CARPROTO" + +char * GetParameterFileScale(char *file); - void ParamCheckSumLine(char * line); - wBool_t IsParamValid(int fileInx); - bool IsParamFileDeleted(int fileInx); - bool IsParamFileFavorite(int fileInx); - void SetParamFileState(int index); - int ReadParamFile(const char *fileName); - int ReloadDeletedParamFile(int fileindex); - void SetParamFileDeleted(int fileInx, bool deleted); - void SetParamFileFavorite(int fileInx, bool favorite); - char * GetParamFileName(int fileInx); - char * GetParamFileContents(int fileInx); - bool ReadParams(long key, const char * dirName, const char * fileName); - #define CONTENTSCOMMAND "CONTENTS" - char *GetParameterFileContent(char *file); #endif // !HAVE_PARAMFILE_H |