return password_json;
}
+struct ApiGetScoreThreadData
+{
+ int level_nr;
+ char *score_cache_filename;
+};
+
static void ApiGetScoreExt(struct HttpRequest *request,
struct HttpResponse *response,
int level_nr,
checked_free(response);
}
-struct ApiGetScoreThreadData
-{
- int level_nr;
- char *score_cache_filename;
-};
-
static int ApiGetScoreThread(void *data_raw)
{
struct ApiGetScoreThreadData *data = data_raw;
return buffer_encoded;
}
+struct ApiAddScoreThreadData
+{
+ int level_nr;
+ char *score_tape_filename;
+ struct ScoreEntry score_entry;
+};
+
static void ApiAddScoreExt(struct HttpRequest *request,
struct HttpResponse *response,
int level_nr,
checked_free(response);
}
-struct ApiAddScoreThreadData
-{
- int level_nr;
- char *score_tape_filename;
- struct ScoreEntry score_entry;
-};
-
static int ApiAddScoreThread(void *data_raw)
{
struct ApiAddScoreThreadData *data = data_raw;
// change name functions
// ============================================================================
+struct ApiRenamePlayerThreadData
+{
+ char *player_name;
+ char *player_uuid;
+};
+
static void ApiRenamePlayerExt(struct HttpRequest *request,
struct HttpResponse *response,
char *player_name_raw,
checked_free(response);
}
-struct ApiRenamePlayerThreadData
-{
- char *player_name;
- char *player_uuid;
-};
-
static int ApiRenamePlayerThread(void *data_raw)
{
struct ApiRenamePlayerThreadData *data = data_raw;