bootparam_prot.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /*
  2. * Please do not edit this file.
  3. * It was generated using rpcgen.
  4. */
  5. #ifndef _BOOTPARAM_PROT_H_RPCGEN
  6. #define _BOOTPARAM_PROT_H_RPCGEN
  7. #include <rpc/rpc.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #include <rpc/types.h>
  12. #include <sys/time.h>
  13. #include <sys/errno.h>
  14. #include <nfs/nfs.h>
  15. #define MAX_MACHINE_NAME 255
  16. #define MAX_PATH_LEN 1024
  17. #define MAX_FILEID 32
  18. #define IP_ADDR_TYPE 1
  19. typedef char *bp_machine_name_t;
  20. typedef char *bp_path_t;
  21. typedef char *bp_fileid_t;
  22. struct ip_addr_t {
  23. char net;
  24. char host;
  25. char lh;
  26. char impno;
  27. };
  28. typedef struct ip_addr_t ip_addr_t;
  29. struct bp_address {
  30. int address_type;
  31. union {
  32. ip_addr_t ip_addr;
  33. } bp_address_u;
  34. };
  35. typedef struct bp_address bp_address;
  36. struct bp_whoami_arg {
  37. bp_address client_address;
  38. };
  39. typedef struct bp_whoami_arg bp_whoami_arg;
  40. struct bp_whoami_res {
  41. bp_machine_name_t client_name;
  42. bp_machine_name_t domain_name;
  43. bp_address router_address;
  44. };
  45. typedef struct bp_whoami_res bp_whoami_res;
  46. struct bp_getfile_arg {
  47. bp_machine_name_t client_name;
  48. bp_fileid_t file_id;
  49. };
  50. typedef struct bp_getfile_arg bp_getfile_arg;
  51. struct bp_getfile_res {
  52. bp_machine_name_t server_name;
  53. bp_address server_address;
  54. bp_path_t server_path;
  55. };
  56. typedef struct bp_getfile_res bp_getfile_res;
  57. #define BOOTPARAMPROG 100026
  58. #define BOOTPARAMVERS 1
  59. #if defined(__STDC__) || defined(__cplusplus)
  60. #define BOOTPARAMPROC_WHOAMI 1
  61. extern bp_whoami_res * bootparamproc_whoami_1(bp_whoami_arg *, CLIENT *);
  62. extern bp_whoami_res * bootparamproc_whoami_1_svc(bp_whoami_arg *, struct svc_req *);
  63. #define BOOTPARAMPROC_GETFILE 2
  64. extern bp_getfile_res * bootparamproc_getfile_1(bp_getfile_arg *, CLIENT *);
  65. extern bp_getfile_res * bootparamproc_getfile_1_svc(bp_getfile_arg *, struct svc_req *);
  66. extern int bootparamprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  67. #else /* K&R C */
  68. #define BOOTPARAMPROC_WHOAMI 1
  69. extern bp_whoami_res * bootparamproc_whoami_1();
  70. extern bp_whoami_res * bootparamproc_whoami_1_svc();
  71. #define BOOTPARAMPROC_GETFILE 2
  72. extern bp_getfile_res * bootparamproc_getfile_1();
  73. extern bp_getfile_res * bootparamproc_getfile_1_svc();
  74. extern int bootparamprog_1_freeresult ();
  75. #endif /* K&R C */
  76. /* the xdr functions */
  77. #if defined(__STDC__) || defined(__cplusplus)
  78. extern bool_t xdr_bp_machine_name_t (XDR *, bp_machine_name_t*);
  79. extern bool_t xdr_bp_path_t (XDR *, bp_path_t*);
  80. extern bool_t xdr_bp_fileid_t (XDR *, bp_fileid_t*);
  81. extern bool_t xdr_ip_addr_t (XDR *, ip_addr_t*);
  82. extern bool_t xdr_bp_address (XDR *, bp_address*);
  83. extern bool_t xdr_bp_whoami_arg (XDR *, bp_whoami_arg*);
  84. extern bool_t xdr_bp_whoami_res (XDR *, bp_whoami_res*);
  85. extern bool_t xdr_bp_getfile_arg (XDR *, bp_getfile_arg*);
  86. extern bool_t xdr_bp_getfile_res (XDR *, bp_getfile_res*);
  87. #else /* K&R C */
  88. extern bool_t xdr_bp_machine_name_t ();
  89. extern bool_t xdr_bp_path_t ();
  90. extern bool_t xdr_bp_fileid_t ();
  91. extern bool_t xdr_ip_addr_t ();
  92. extern bool_t xdr_bp_address ();
  93. extern bool_t xdr_bp_whoami_arg ();
  94. extern bool_t xdr_bp_whoami_res ();
  95. extern bool_t xdr_bp_getfile_arg ();
  96. extern bool_t xdr_bp_getfile_res ();
  97. #endif /* K&R C */
  98. #ifdef __cplusplus
  99. }
  100. #endif
  101. #endif /* !_BOOTPARAM_PROT_H_RPCGEN */