/* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _HIGHSCORE_RPC_H_RPCGEN #define _HIGHSCORE_RPC_H_RPCGEN #define RPCGEN_VERSION 199506 #include #define HIGHSCORE_MAX_RECORDS 10 #define HIGHSCORE_NAME_LEN 28 struct score_record { int score; char name[HIGHSCORE_NAME_LEN]; }; typedef struct score_record score_record; #ifdef __cplusplus extern "C" bool_t xdr_score_record(XDR *, score_record*); #elif __STDC__ extern bool_t xdr_score_record(XDR *, score_record*); #else /* Old Style C */ bool_t xdr_score_record(); #endif /* Old Style C */ typedef score_record score_record_t; #ifdef __cplusplus extern "C" bool_t xdr_score_record_t(XDR *, score_record_t*); #elif __STDC__ extern bool_t xdr_score_record_t(XDR *, score_record_t*); #else /* Old Style C */ bool_t xdr_score_record_t(); #endif /* Old Style C */ struct get_highscore_result_t { struct { u_int records_len; score_record *records_val; } records; }; typedef struct get_highscore_result_t get_highscore_result_t; #ifdef __cplusplus extern "C" bool_t xdr_get_highscore_result_t(XDR *, get_highscore_result_t*); #elif __STDC__ extern bool_t xdr_get_highscore_result_t(XDR *, get_highscore_result_t*); #else /* Old Style C */ bool_t xdr_get_highscore_result_t(); #endif /* Old Style C */ 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); #define HIGHSCORE_RPC_PROG ((u_long)0x2001f8a4) #define HIGHSCORE_RPC_VERSION ((u_long)1) #ifdef __cplusplus #define GET_HIGHSCORE ((u_long)1) extern "C" get_highscore_result_t * get_highscore_1(int *, CLIENT *); extern "C" get_highscore_result_t * get_highscore_1_svc(int *, struct svc_req *); #define PUT_SCORE ((u_long)2) extern "C" int * put_score_1(score_record_t *, CLIENT *); extern "C" int * put_score_1_svc(score_record_t *, struct svc_req *); #elif __STDC__ #define GET_HIGHSCORE ((u_long)1) extern get_highscore_result_t * get_highscore_1(int *, CLIENT *); extern get_highscore_result_t * get_highscore_1_svc(int *, struct svc_req *); #define PUT_SCORE ((u_long)2) extern int * put_score_1(score_record_t *, CLIENT *); extern int * put_score_1_svc(score_record_t *, struct svc_req *); #else /* Old Style C */ #define GET_HIGHSCORE ((u_long)1) extern get_highscore_result_t * get_highscore_1(); extern get_highscore_result_t * get_highscore_1_svc(); #define PUT_SCORE ((u_long)2) extern int * put_score_1(); extern int * put_score_1_svc(); #endif /* Old Style C */ #endif /* !_HIGHSCORE_RPC_H_RPCGEN */