/* highscore_rpc.h -- Hiscore Protocol over SunRPC Created on: 2008/12/23 14:19:17 ~yas/dsys/highscore/rpc/highscore_rpc.x */ const HIGHSCORE_MAX_RECORDS = 10; const HIGHSCORE_NAME_LEN = 28; struct score_record { int score; opaque name[HIGHSCORE_NAME_LEN]; }; typedef struct score_record score_record_t; struct get_highscore_result_t { score_record records; }; program HIGHSCORE_RPC_PROG { version HIGHSCORE_RPC_VERSION { get_highscore_result_t GET_HIGHSCORE(int) = 1 ; int PUT_SCORE(score_record_t) = 2 ; } = 1; } = 0x2001f8a4 ; #ifdef RPC_HDR %extern int get_highscore_client_rpc( char *server, % score_record_t records[], int len ); %extern int put_score_client_rpc(char *server, int score, char *name); #endif