changed functions for score server access from static to public
authorHolger Schemel <info@artsoft.org>
Mon, 16 Aug 2021 21:37:17 +0000 (23:37 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 16 Aug 2021 21:39:16 +0000 (23:39 +0200)
src/files.c
src/files.h

index f486dba01745e9fc418ecd6bf29942b90145f159..9c370e72497b5b1ff2657cd9c837fbf4ffa66ba3 100644 (file)
@@ -9026,8 +9026,8 @@ void SaveScore(int nr)
   SaveScoreToFilename(filename);
 }
 
-static void ExecuteAsThread(SDL_ThreadFunction function, char *name, void *data,
-                           char *error)
+void ExecuteAsThread(SDL_ThreadFunction function, char *name, void *data,
+                    char *error)
 {
   SDL_Thread *thread = SDL_CreateThread(function, name, data);
 
@@ -9040,7 +9040,7 @@ static void ExecuteAsThread(SDL_ThreadFunction function, char *name, void *data,
   Delay(1);
 }
 
-static char *getPasswordJSON(char *password)
+char *getPasswordJSON(char *password)
 {
   static char password_json[MAX_FILENAME_LEN] = "";
   static boolean initialized = FALSE;
index fd421ef19fb0e90f8955d01ef519a7e4b31ea1a7..6d01aa47511c448ffdd9ff2704dc8a9a25aa8469 100644 (file)
@@ -35,6 +35,9 @@ char *getGlobalLevelTemplateFilename(void);
 
 int getMappedElement(int);
 
+void ExecuteAsThread(SDL_ThreadFunction, char *, void *, char *);
+char *getPasswordJSON(char *);
+
 void LoadLevelFromFilename(struct LevelInfo *, char *);
 void LoadLevel(int);
 void LoadLevelTemplate(int);