for portmap callit, change call_args and rell_result to prefix them with pmap_
[deb_libnfs.git] / portmap / portmap.x
index 8921b92df7cc112329b96cc7af6979c17bbff69d..606583184f4f350aee5e2ed21d2d03f533b38a15 100644 (file)
@@ -4,20 +4,24 @@
 
 const PMAP_PORT = 111;      /* portmapper port number */
 
-struct mapping {
+struct pmap_mapping {
        unsigned int prog;
        unsigned int vers;
        unsigned int prot;
        unsigned int port;
 };
 
-struct call_args {
+struct pmap_call_args {
        unsigned int prog;
        unsigned int vers;
        unsigned int proc;
        opaque args<>;
 };
 
+struct pmap_call_result {
+       unsigned int port;
+       opaque res<>;
+};
 
 program PMAP_PROGRAM {
        version PMAP_V2 {
@@ -25,13 +29,16 @@ program PMAP_PROGRAM {
                PMAP_NULL(void)         = 0;
 
                bool
-               PMAP_SET(mapping)       = 1;
+               PMAP_SET(pmap_mapping)       = 1;
 
                bool
-               PMAP_UNSET(mapping)     = 2;
+               PMAP_UNSET(pmap_mapping)     = 2;
 
                unsigned int
-               PMAP_GETPORT(mapping)   = 3;
+               PMAP_GETPORT(pmap_mapping)   = 3;
+
+               pmap_call_result
+               PMAP_CALLIT(pmap_call_args)  = 5;
        } = 2;
 } = 100000;