/* highscore.h -- Hiscore Library for centralized systems. Created on: 2008/11/28 11:49:18 ~yas/dsys/highscore/centralized/highscore.h */ #ifndef _HIGHSCORE_LIB_CENTRALIZED_H_ #define _HIGHSCORE_LIB_CENTRALIZED_H_ #define HIGHSCORE_MAX_RECORDS 10 #define HIGHSCORE_NAME_LEN 28 #define HIGHSCORE_FILE_ENV "hiscoredata" struct score_record { int score; char name[HIGHSCORE_NAME_LEN]; }; typedef struct score_record score_record_t; extern int get_highscore(score_record_t records[], int len); extern put_score(int score, char *user); #endif _HIGHSCORE_LIB_CENTRALIZED_H_