From 721322812d9fcfa648268aab34ec1879c9414dfe Mon Sep 17 00:00:00 2001 From: hgn Date: Fri, 14 Jul 2023 17:41:12 +0100 Subject: [PATCH] fixed server compile errors --- highscores.h | 7 +++++++ server.c | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/highscores.h b/highscores.h index c94087f..1b9d75c 100644 --- a/highscores.h +++ b/highscores.h @@ -101,5 +101,12 @@ highscore_system; VG_STATIC int highscore_intr( char *buf, int value, int len, char alt ); VG_STATIC int highscore_intl( char *buf, int value, int len ); VG_STATIC void highscores_board_printf( FILE *fp, const char *buf, u32 count ); +VG_STATIC aatree_ptr highscore_set_user_nickname( u64 steamid, char nick[16] ); +VG_STATIC aatree_ptr highscores_push_record( highscore_record *record ); +VG_STATIC void highscores_board_generate( char *buf, u32 id, u32 count ); +VG_STATIC void highscores_init( u32 pool_size, u32 playerinfo_pool_size ); +VG_STATIC int highscores_read(void); +VG_STATIC void highscores_create_db(void); +VG_STATIC int highscores_serialize_all(void); #endif /* HIGHSCORES_H */ diff --git a/server.c b/server.c index 3a0d666..a441573 100644 --- a/server.c +++ b/server.c @@ -15,8 +15,7 @@ volatile sig_atomic_t sig_stop; -void inthandler( int signum ) -{ +static void inthandler( int signum ) { sig_stop = 1; } @@ -29,6 +28,9 @@ void inthandler( int signum ) #include "network_msg.h" #include "highscores.h" +/* implementation */ +#include "highscores.c" + static const u64 k_connection_unauthorized = 0xffffffffffffffff; static void *hSteamHTTP, -- 2.25.1