/* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _RDB_H_RPCGEN #define _RDB_H_RPCGEN #include #define DATABSE "personnel.dat" /* il '%' lo fa passare al prepr. */ #define MAX_STR 256 struct record { char *firstName; char *middleInitial; char *lastName; int phone; char *location; }; typedef struct record record; #ifdef __cplusplus extern "C" bool_t xdr_record(XDR *, record*); #elif __STDC__ extern bool_t xdr_record(XDR *, record*); #else /* Old Style C */ bool_t xdr_record(); #endif /* Old Style C */ #define RDBPROG ((u_long)0x20000001) #define RDBVERS ((u_long)1) #ifdef __cplusplus #define FIRSTNAME_KEY ((u_long)1) extern "C" record * firstname_key_1(char **, CLIENT *); extern "C" record * firstname_key_1_svc(char **, struct svc_req *); #define LASTNAME_KEY ((u_long)2) extern "C" record * lastname_key_1(char **, CLIENT *); extern "C" record * lastname_key_1_svc(char **, struct svc_req *); #define PHONE_KEY ((u_long)3) extern "C" record * phone_key_1(int *, CLIENT *); extern "C" record * phone_key_1_svc(int *, struct svc_req *); #define LOCATION_KEY ((u_long)4) extern "C" record * location_key_1(char **, CLIENT *); extern "C" record * location_key_1_svc(char **, struct svc_req *); #define ADD_RECORD ((u_long)5) extern "C" int * add_record_1(record *, CLIENT *); extern "C" int * add_record_1_svc(record *, struct svc_req *); #elif __STDC__ #define FIRSTNAME_KEY ((u_long)1) extern record * firstname_key_1(char **, CLIENT *); extern record * firstname_key_1_svc(char **, struct svc_req *); #define LASTNAME_KEY ((u_long)2) extern record * lastname_key_1(char **, CLIENT *); extern record * lastname_key_1_svc(char **, struct svc_req *); #define PHONE_KEY ((u_long)3) extern record * phone_key_1(int *, CLIENT *); extern record * phone_key_1_svc(int *, struct svc_req *); #define LOCATION_KEY ((u_long)4) extern record * location_key_1(char **, CLIENT *); extern record * location_key_1_svc(char **, struct svc_req *); #define ADD_RECORD ((u_long)5) extern int * add_record_1(record *, CLIENT *); extern int * add_record_1_svc(record *, struct svc_req *); #else /* Old Style C */ #define FIRSTNAME_KEY ((u_long)1) extern record * firstname_key_1(); extern record * firstname_key_1_svc(); #define LASTNAME_KEY ((u_long)2) extern record * lastname_key_1(); extern record * lastname_key_1_svc(); #define PHONE_KEY ((u_long)3) extern record * phone_key_1(); extern record * phone_key_1_svc(); #define LOCATION_KEY ((u_long)4) extern record * location_key_1(); extern record * location_key_1_svc(); #define ADD_RECORD ((u_long)5) extern int * add_record_1(); extern int * add_record_1_svc(); #endif /* Old Style C */ #endif /* !_RDB_H_RPCGEN */