Home | History | Annotate | Download | only in rpcsvc
      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 
     12 #ifdef __cplusplus
     13 extern "C" {
     14 #endif
     15 
     16 #define MNTPATHLEN 1024
     17 #define MNTNAMLEN 255
     18 #define FHSIZE 32
     19 
     20 typedef char fhandle[FHSIZE];
     21 
     22 struct fhstatus {
     23 	u_int fhs_status;
     24 	union {
     25 		fhandle fhs_fhandle;
     26 	} fhstatus_u;
     27 };
     28 typedef struct fhstatus fhstatus;
     29 
     30 typedef char *dirpath;
     31 
     32 typedef char *name;
     33 
     34 typedef struct mountbody *mountlist;
     35 
     36 struct mountbody {
     37 	name ml_hostname;
     38 	dirpath ml_directory;
     39 	mountlist ml_next;
     40 };
     41 typedef struct mountbody mountbody;
     42 
     43 typedef struct groupnode *groups;
     44 
     45 struct groupnode {
     46 	name gr_name;
     47 	groups gr_next;
     48 };
     49 typedef struct groupnode groupnode;
     50 
     51 typedef struct exportnode *exports;
     52 
     53 struct exportnode {
     54 	dirpath ex_dir;
     55 	groups ex_groups;
     56 	exports ex_next;
     57 };
     58 typedef struct exportnode exportnode;
     59 
     60 #define MOUNTPROG 100005
     61 #define MOUNTVERS 1
     62 
     63 #if defined(__STDC__) || defined(__cplusplus)
     64 #define MOUNTPROC_NULL 0
     65 extern  void * mountproc_null_1(void *, CLIENT *);
     66 extern  void * mountproc_null_1_svc(void *, struct svc_req *);
     67 #define MOUNTPROC_MNT 1
     68 extern  fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
     69 extern  fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
     70 #define MOUNTPROC_DUMP 2
     71 extern  mountlist * mountproc_dump_1(void *, CLIENT *);
     72 extern  mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
     73 #define MOUNTPROC_UMNT 3
     74 extern  void * mountproc_umnt_1(dirpath *, CLIENT *);
     75 extern  void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
     76 #define MOUNTPROC_UMNTALL 4
     77 extern  void * mountproc_umntall_1(void *, CLIENT *);
     78 extern  void * mountproc_umntall_1_svc(void *, struct svc_req *);
     79 #define MOUNTPROC_EXPORT 5
     80 extern  exports * mountproc_export_1(void *, CLIENT *);
     81 extern  exports * mountproc_export_1_svc(void *, struct svc_req *);
     82 #define MOUNTPROC_EXPORTALL 6
     83 extern  exports * mountproc_exportall_1(void *, CLIENT *);
     84 extern  exports * mountproc_exportall_1_svc(void *, struct svc_req *);
     85 extern int mountprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
     86 
     87 #else /* K&R C */
     88 #define MOUNTPROC_NULL 0
     89 extern  void * mountproc_null_1();
     90 extern  void * mountproc_null_1_svc();
     91 #define MOUNTPROC_MNT 1
     92 extern  fhstatus * mountproc_mnt_1();
     93 extern  fhstatus * mountproc_mnt_1_svc();
     94 #define MOUNTPROC_DUMP 2
     95 extern  mountlist * mountproc_dump_1();
     96 extern  mountlist * mountproc_dump_1_svc();
     97 #define MOUNTPROC_UMNT 3
     98 extern  void * mountproc_umnt_1();
     99 extern  void * mountproc_umnt_1_svc();
    100 #define MOUNTPROC_UMNTALL 4
    101 extern  void * mountproc_umntall_1();
    102 extern  void * mountproc_umntall_1_svc();
    103 #define MOUNTPROC_EXPORT 5
    104 extern  exports * mountproc_export_1();
    105 extern  exports * mountproc_export_1_svc();
    106 #define MOUNTPROC_EXPORTALL 6
    107 extern  exports * mountproc_exportall_1();
    108 extern  exports * mountproc_exportall_1_svc();
    109 extern int mountprog_1_freeresult ();
    110 #endif /* K&R C */
    111 
    112 /* the xdr functions */
    113 
    114 #if defined(__STDC__) || defined(__cplusplus)
    115 extern  bool_t xdr_fhandle (XDR *, fhandle);
    116 extern  bool_t xdr_fhstatus (XDR *, fhstatus*);
    117 extern  bool_t xdr_dirpath (XDR *, dirpath*);
    118 extern  bool_t xdr_name (XDR *, name*);
    119 extern  bool_t xdr_mountlist (XDR *, mountlist*);
    120 extern  bool_t xdr_mountbody (XDR *, mountbody*);
    121 extern  bool_t xdr_groups (XDR *, groups*);
    122 extern  bool_t xdr_groupnode (XDR *, groupnode*);
    123 extern  bool_t xdr_exports (XDR *, exports*);
    124 extern  bool_t xdr_exportnode (XDR *, exportnode*);
    125 
    126 #else /* K&R C */
    127 extern bool_t xdr_fhandle ();
    128 extern bool_t xdr_fhstatus ();
    129 extern bool_t xdr_dirpath ();
    130 extern bool_t xdr_name ();
    131 extern bool_t xdr_mountlist ();
    132 extern bool_t xdr_mountbody ();
    133 extern bool_t xdr_groups ();
    134 extern bool_t xdr_groupnode ();
    135 extern bool_t xdr_exports ();
    136 extern bool_t xdr_exportnode ();
    137 
    138 #endif /* K&R C */
    139 
    140 #ifdef __cplusplus
    141 }
    142 #endif
    143 
    144 #endif /* !_MOUNT_H_RPCGEN */
    145