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 */
volatile sig_atomic_t sig_stop;
-void inthandler( int signum )
-{
+static void inthandler( int signum ) {
sig_stop = 1;
}
#include "network_msg.h"
#include "highscores.h"
+/* implementation */
+#include "highscores.c"
+
static const u64 k_connection_unauthorized = 0xffffffffffffffff;
static void *hSteamHTTP,