X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsetup.h;h=e5dc50d88ea7b4c873f64a185d9653730f8efe40;hb=7b47ce7ba0f673f0de5130daf5726104d0b38902;hp=657467f40f5c8909854e2a748bee2466684cb2cf;hpb=28f0f8708f4b4f8c4f39f1b23bc5fc7e0fed7579;p=rocksndiamonds.git diff --git a/src/libgame/setup.h b/src/libgame/setup.h index 657467f4..e5dc50d8 100644 --- a/src/libgame/setup.h +++ b/src/libgame/setup.h @@ -55,14 +55,6 @@ /* cookie token for file identifier and version number */ #define TOKEN_STR_FILE_IDENTIFIER "file_identifier" -/* structures for setup file handling */ -struct SetupFileList -{ - char *token; - char *value; - struct SetupFileList *next; -}; - struct TokenInfo { int type; @@ -214,7 +206,9 @@ boolean checkCookieString(const char *, const char *); char *getFormattedSetupEntry(char *, char *); void freeSetupFileList(struct SetupFileList *); +struct SetupFileList *newSetupFileList(char *, char *); char *getTokenValue(struct SetupFileList *, char *); +void setTokenValue(struct SetupFileList *, char *, char *); struct SetupFileList *loadSetupFileList(char *); void checkSetupFileListIdentifier(struct SetupFileList *, char *); void setSetupInfo(struct TokenInfo *, int, char *);