Merge pull request #15 from OpenELEC/libnfs-pkgconfig
[deb_libnfs.git] / portmap / portmap.x
1 /*
2 * From RFC1833
3 */
4
5 const PMAP_PORT = 111; /* portmapper port number */
6
7 struct pmap_mapping {
8 unsigned int prog;
9 unsigned int vers;
10 unsigned int prot;
11 unsigned int port;
12 };
13
14 struct pmap_call_args {
15 unsigned int prog;
16 unsigned int vers;
17 unsigned int proc;
18 opaque args<>;
19 };
20
21 struct pmap_call_result {
22 unsigned int port;
23 opaque res<>;
24 };
25
26 program PMAP_PROGRAM {
27 version PMAP_V2 {
28 void
29 PMAP_NULL(void) = 0;
30
31 bool
32 PMAP_SET(pmap_mapping) = 1;
33
34 bool
35 PMAP_UNSET(pmap_mapping) = 2;
36
37 unsigned int
38 PMAP_GETPORT(pmap_mapping) = 3;
39
40 pmap_call_result
41 PMAP_CALLIT(pmap_call_args) = 5;
42 } = 2;
43 } = 100000;
44