Merge pull request #68 from plieven/for-1.9.3
[deb_libnfs.git] / portmap / portmap.x
index d28edca34a3f26d7a7e0f40f0ffa603619461cda..17fd980455449cff57bde695be42296d1b28ff4e 100644 (file)
@@ -11,22 +11,31 @@ struct pmap_mapping {
        unsigned int port;
 };
 
-struct call_args {
+struct pmap_call_args {
        unsigned int prog;
        unsigned int vers;
        unsigned int proc;
        opaque args<>;
 };
 
-struct call_result {
+struct pmap_call_result {
        unsigned int port;
        opaque res<>;
 };
 
+struct pmap_mapping_list {
+       pmap_mapping map;
+       pmap_mapping_list *next;
+};
+
+struct pmap_dump_result {
+       struct pmap_mapping_list *list;
+};
+
 program PMAP_PROGRAM {
        version PMAP_V2 {
                void
-               PMAP_NULL(void)         = 0;
+               PMAP_NULL(void)              = 0;
 
                bool
                PMAP_SET(pmap_mapping)       = 1;
@@ -37,8 +46,11 @@ program PMAP_PROGRAM {
                unsigned int
                PMAP_GETPORT(pmap_mapping)   = 3;
 
-               call_result
-               PMAP_CALLIT(call_args)  = 5;
+               pmap_mapping_list
+               PMAP_DUMP(void)              = 4;
+
+               pmap_call_result
+               PMAP_CALLIT(pmap_call_args)  = 5;
        } = 2;
 } = 100000;