Prev Next

Pinefs includes a compiler which takes IDL, parses it using PLY, and outputs data structures which are traversed at runtime by RPC helper code. (Other IDL compilers inline this code).


FHSIZE = 32
fhandle = rpchelp.opaque (rpchelp.fixed, FHSIZE)
<pre>
class MOUNTPROG_1(rpchelp.Server):
prog = 100005
vers = 1
procs = {0 : rpchelp.Proc ('MOUNTPROC_NULL', rpchelp.r_void, [rpchelp.r_void]),
1 : rpchelp.Proc ('MOUNTPROC_MNT', fhstatus, [dirpath]),
2 : rpchelp.Proc ('MOUNTPROC_DUMP', mountlist, [rpchelp.r_void]),
3 : rpchelp.Proc ('MOUNTPROC_UMNT', rpchelp.r_void, [dirpath]),
4 : rpchelp.Proc ('MOUNTPROC_UMNTALL', rpchelp.r_void, [rpchelp.r_void]),
5 : rpchelp.Proc ('MOUNTPROC_EXPORT', exportlist, [rpchelp.r_void])}