home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / misc / src / install / mount.h < prev    next >
C/C++ Source or Header  |  1997-09-17  |  6KB  |  209 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #ifndef _MOUNT_H_RPCGEN
  7. #define _MOUNT_H_RPCGEN
  8.  
  9. #include <rpc/rpc.h>
  10.  
  11. #define MNTPATHLEN 1024
  12. #define MNTNAMLEN 255
  13. #define FHSIZE 32
  14.  
  15. typedef char fhandle[FHSIZE];
  16. #ifdef __cplusplus 
  17. extern "C" bool_t xdr_fhandle(XDR *, fhandle);
  18. #elif __STDC__ 
  19. extern  bool_t xdr_fhandle(XDR *, fhandle);
  20. #else /* Old Style C */ 
  21. bool_t xdr_fhandle();
  22. #endif /* Old Style C */ 
  23.  
  24.  
  25. struct fhstatus {
  26.     u_int fhs_status;
  27.     union {
  28.         fhandle fhs_fhandle;
  29.     } fhstatus_u;
  30. };
  31. typedef struct fhstatus fhstatus;
  32. #ifdef __cplusplus 
  33. extern "C" bool_t xdr_fhstatus(XDR *, fhstatus*);
  34. #elif __STDC__ 
  35. extern  bool_t xdr_fhstatus(XDR *, fhstatus*);
  36. #else /* Old Style C */ 
  37. bool_t xdr_fhstatus();
  38. #endif /* Old Style C */ 
  39.  
  40.  
  41. typedef char *dirpath;
  42. #ifdef __cplusplus 
  43. extern "C" bool_t xdr_dirpath(XDR *, dirpath*);
  44. #elif __STDC__ 
  45. extern  bool_t xdr_dirpath(XDR *, dirpath*);
  46. #else /* Old Style C */ 
  47. bool_t xdr_dirpath();
  48. #endif /* Old Style C */ 
  49.  
  50.  
  51. typedef char *name;
  52. #ifdef __cplusplus 
  53. extern "C" bool_t xdr_name(XDR *, name*);
  54. #elif __STDC__ 
  55. extern  bool_t xdr_name(XDR *, name*);
  56. #else /* Old Style C */ 
  57. bool_t xdr_name();
  58. #endif /* Old Style C */ 
  59.  
  60.  
  61. typedef struct mountbody *mountlist;
  62. #ifdef __cplusplus 
  63. extern "C" bool_t xdr_mountlist(XDR *, mountlist*);
  64. #elif __STDC__ 
  65. extern  bool_t xdr_mountlist(XDR *, mountlist*);
  66. #else /* Old Style C */ 
  67. bool_t xdr_mountlist();
  68. #endif /* Old Style C */ 
  69.  
  70.  
  71. struct mountbody {
  72.     name ml_hostname;
  73.     dirpath ml_directory;
  74.     mountlist ml_next;
  75. };
  76. typedef struct mountbody mountbody;
  77. #ifdef __cplusplus 
  78. extern "C" bool_t xdr_mountbody(XDR *, mountbody*);
  79. #elif __STDC__ 
  80. extern  bool_t xdr_mountbody(XDR *, mountbody*);
  81. #else /* Old Style C */ 
  82. bool_t xdr_mountbody();
  83. #endif /* Old Style C */ 
  84.  
  85.  
  86. typedef struct groupnode *groups;
  87. #ifdef __cplusplus 
  88. extern "C" bool_t xdr_groups(XDR *, groups*);
  89. #elif __STDC__ 
  90. extern  bool_t xdr_groups(XDR *, groups*);
  91. #else /* Old Style C */ 
  92. bool_t xdr_groups();
  93. #endif /* Old Style C */ 
  94.  
  95.  
  96. struct groupnode {
  97.     name gr_name;
  98.     groups gr_next;
  99. };
  100. typedef struct groupnode groupnode;
  101. #ifdef __cplusplus 
  102. extern "C" bool_t xdr_groupnode(XDR *, groupnode*);
  103. #elif __STDC__ 
  104. extern  bool_t xdr_groupnode(XDR *, groupnode*);
  105. #else /* Old Style C */ 
  106. bool_t xdr_groupnode();
  107. #endif /* Old Style C */ 
  108.  
  109.  
  110. typedef struct exportnode *exports;
  111. #ifdef __cplusplus 
  112. extern "C" bool_t xdr_exports(XDR *, exports*);
  113. #elif __STDC__ 
  114. extern  bool_t xdr_exports(XDR *, exports*);
  115. #else /* Old Style C */ 
  116. bool_t xdr_exports();
  117. #endif /* Old Style C */ 
  118.  
  119.  
  120. struct exportnode {
  121.     dirpath ex_dir;
  122.     groups ex_groups;
  123.     exports ex_next;
  124. };
  125. typedef struct exportnode exportnode;
  126. #ifdef __cplusplus 
  127. extern "C" bool_t xdr_exportnode(XDR *, exportnode*);
  128. #elif __STDC__ 
  129. extern  bool_t xdr_exportnode(XDR *, exportnode*);
  130. #else /* Old Style C */ 
  131. bool_t xdr_exportnode();
  132. #endif /* Old Style C */ 
  133.  
  134.  
  135. #define MOUNTPROG ((u_long)100005)
  136. #define MOUNTVERS ((u_long)1)
  137.  
  138. #ifdef __cplusplus
  139. #define MOUNTPROC_NULL ((u_long)0)
  140. extern "C" void * mountproc_null_1(void *, CLIENT *);
  141. extern "C" void * mountproc_null_1_svc(void *, struct svc_req *);
  142. #define MOUNTPROC_MNT ((u_long)1)
  143. extern "C" fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
  144. extern "C" fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
  145. #define MOUNTPROC_DUMP ((u_long)2)
  146. extern "C" mountlist * mountproc_dump_1(void *, CLIENT *);
  147. extern "C" mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
  148. #define MOUNTPROC_UMNT ((u_long)3)
  149. extern "C" void * mountproc_umnt_1(dirpath *, CLIENT *);
  150. extern "C" void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
  151. #define MOUNTPROC_UMNTALL ((u_long)4)
  152. extern "C" void * mountproc_umntall_1(void *, CLIENT *);
  153. extern "C" void * mountproc_umntall_1_svc(void *, struct svc_req *);
  154. #define MOUNTPROC_EXPORT ((u_long)5)
  155. extern "C" exports * mountproc_export_1(void *, CLIENT *);
  156. extern "C" exports * mountproc_export_1_svc(void *, struct svc_req *);
  157. #define MOUNTPROC_EXPORTALL ((u_long)6)
  158. extern "C" exports * mountproc_exportall_1(void *, CLIENT *);
  159. extern "C" exports * mountproc_exportall_1_svc(void *, struct svc_req *);
  160.  
  161. #elif __STDC__
  162. #define MOUNTPROC_NULL ((u_long)0)
  163. extern  void * mountproc_null_1(void *, CLIENT *);
  164. extern  void * mountproc_null_1_svc(void *, struct svc_req *);
  165. #define MOUNTPROC_MNT ((u_long)1)
  166. extern  fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
  167. extern  fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
  168. #define MOUNTPROC_DUMP ((u_long)2)
  169. extern  mountlist * mountproc_dump_1(void *, CLIENT *);
  170. extern  mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
  171. #define MOUNTPROC_UMNT ((u_long)3)
  172. extern  void * mountproc_umnt_1(dirpath *, CLIENT *);
  173. extern  void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
  174. #define MOUNTPROC_UMNTALL ((u_long)4)
  175. extern  void * mountproc_umntall_1(void *, CLIENT *);
  176. extern  void * mountproc_umntall_1_svc(void *, struct svc_req *);
  177. #define MOUNTPROC_EXPORT ((u_long)5)
  178. extern  exports * mountproc_export_1(void *, CLIENT *);
  179. extern  exports * mountproc_export_1_svc(void *, struct svc_req *);
  180. #define MOUNTPROC_EXPORTALL ((u_long)6)
  181. extern  exports * mountproc_exportall_1(void *, CLIENT *);
  182. extern  exports * mountproc_exportall_1_svc(void *, struct svc_req *);
  183.  
  184. #else /* Old Style C */ 
  185. #define MOUNTPROC_NULL ((u_long)0)
  186. extern  void * mountproc_null_1();
  187. extern  void * mountproc_null_1_svc();
  188. #define MOUNTPROC_MNT ((u_long)1)
  189. extern  fhstatus * mountproc_mnt_1();
  190. extern  fhstatus * mountproc_mnt_1_svc();
  191. #define MOUNTPROC_DUMP ((u_long)2)
  192. extern  mountlist * mountproc_dump_1();
  193. extern  mountlist * mountproc_dump_1_svc();
  194. #define MOUNTPROC_UMNT ((u_long)3)
  195. extern  void * mountproc_umnt_1();
  196. extern  void * mountproc_umnt_1_svc();
  197. #define MOUNTPROC_UMNTALL ((u_long)4)
  198. extern  void * mountproc_umntall_1();
  199. extern  void * mountproc_umntall_1_svc();
  200. #define MOUNTPROC_EXPORT ((u_long)5)
  201. extern  exports * mountproc_export_1();
  202. extern  exports * mountproc_export_1_svc();
  203. #define MOUNTPROC_EXPORTALL ((u_long)6)
  204. extern  exports * mountproc_exportall_1();
  205. extern  exports * mountproc_exportall_1_svc();
  206. #endif /* Old Style C */ 
  207.  
  208. #endif /* !_MOUNT_H_RPCGEN */
  209.