X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=portmap%2Fportmap.x;h=fc4f22475308f07181dfc3e64c3a25d163b9f0a0;hb=0f0e352f4971a188f3f1203f18d091420072aeb9;hp=ef9f08e699b9465f56303039990702ddeedb992c;hpb=15083e9a6c0189c59897caf5e57a9b27ffc73526;p=deb_libnfs.git diff --git a/portmap/portmap.x b/portmap/portmap.x index ef9f08e..fc4f224 100644 --- a/portmap/portmap.x +++ b/portmap/portmap.x @@ -23,22 +23,34 @@ struct pmap_call_result { 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; + PMAP2_NULL(void) = 0; bool - PMAP_SET(pmap_mapping) = 1; + PMAP2_SET(pmap_mapping) = 1; bool - PMAP_UNSET(pmap_mapping) = 2; + PMAP2_UNSET(pmap_mapping) = 2; unsigned int - PMAP_GETPORT(pmap_mapping) = 3; + PMAP2_GETPORT(pmap_mapping) = 3; + + pmap_dump_result + PMAP2_DUMP(void) = 4; pmap_call_result - PMAP_CALLIT(pmap_call_args) = 5; + PMAP2_CALLIT(pmap_call_args) = 5; } = 2; } = 100000;