(************************************************************
 * WARNING!
 *
 * This file is generated by ocamlrpcgen from the source file
 * rpc_portmapper.x
 *
 ************************************************************)

(* Type definitions *)

type mapping = 
      { 
        mutable prog : Netnumber.uint4;
        mutable vers : Netnumber.uint4;
        mutable prot : Netnumber.uint4;
        mutable port : Netnumber.uint4;
      }
and pmaplist = 
      { 
        mutable map : mapping;
        mutable next : pmaplist option;
      }
and pmaplist_p = 
      pmaplist option
and call_args = 
      { 
        mutable call_prog : Netnumber.uint4;
        mutable call_vers : Netnumber.uint4;
        mutable call_proc : Netnumber.uint4;
        mutable call_args : string;
      }
and call_result = 
      { 
        mutable call_port : Netnumber.uint4;
        mutable call_res : string;
      }
and t_PMAP'V2'pmapproc_null'arg = 
      unit
and t_PMAP'V2'pmapproc_null'res = 
      unit
and t_PMAP'V2'pmapproc_set'arg = 
      mapping
and t_PMAP'V2'pmapproc_set'res = 
      bool
and t_PMAP'V2'pmapproc_unset'arg = 
      mapping
and t_PMAP'V2'pmapproc_unset'res = 
      bool
and t_PMAP'V2'pmapproc_getport'arg = 
      mapping
and t_PMAP'V2'pmapproc_getport'res = 
      Netnumber.uint4
and t_PMAP'V2'pmapproc_dump'arg = 
      unit
and t_PMAP'V2'pmapproc_dump'res = 
      pmaplist_p
and t_PMAP'V2'pmapproc_callit'arg = 
      call_args
and t_PMAP'V2'pmapproc_callit'res = 
      call_result
;;

(* Constant definitions *)

val pmap_port : Netnumber.uint4;;
val ipproto_tcp : Netnumber.uint4;;
val ipproto_udp : Netnumber.uint4;;

(* Conversion functions *)

val _to_mapping : Xdr.xdr_value -> mapping;;
val _of_mapping : mapping -> Xdr.xdr_value;;
val _to_pmaplist : Xdr.xdr_value -> pmaplist;;
val _of_pmaplist : pmaplist -> Xdr.xdr_value;;
val _to_pmaplist_p : Xdr.xdr_value -> pmaplist_p;;
val _of_pmaplist_p : pmaplist_p -> Xdr.xdr_value;;
val _to_call_args : Xdr.xdr_value -> call_args;;
val _of_call_args : call_args -> Xdr.xdr_value;;
val _to_call_result : Xdr.xdr_value -> call_result;;
val _of_call_result : call_result -> Xdr.xdr_value;;
val _to_PMAP'V2'pmapproc_null'arg : Xdr.xdr_value -> t_PMAP'V2'pmapproc_null'arg;;
val _of_PMAP'V2'pmapproc_null'arg : t_PMAP'V2'pmapproc_null'arg -> Xdr.xdr_value;;
val _to_PMAP'V2'pmapproc_null'res : Xdr.xdr_value -> t_PMAP'V2'pmapproc_null'res;;
val _of_PMAP'V2'pmapproc_null'res : t_PMAP'V2'pmapproc_null'res -> Xdr.xdr_value;;
val _to_PMAP'V2'pmapproc_set'arg : Xdr.xdr_value -> t_PMAP'V2'pmapproc_set'arg;;
val _of_PMAP'V2'pmapproc_set'arg : t_PMAP'V2'pmapproc_set'arg -> Xdr.xdr_value;;
val _to_PMAP'V2'pmapproc_set'res : Xdr.xdr_value -> t_PMAP'V2'pmapproc_set'res;;
val _of_PMAP'V2'pmapproc_set'res : t_PMAP'V2'pmapproc_set'res -> Xdr.xdr_value;;
val _to_PMAP'V2'pmapproc_unset'arg : Xdr.xdr_value -> t_PMAP'V2'pmapproc_unset'arg;;
val _of_PMAP'V2'pmapproc_unset'arg : t_PMAP'V2'pmapproc_unset'arg -> Xdr.xdr_value;;
val _to_PMAP'V2'pmapproc_unset'res : Xdr.xdr_value -> t_PMAP'V2'pmapproc_unset'res;;
val _of_PMAP'V2'pmapproc_unset'res : t_PMAP'V2'pmapproc_unset'res -> Xdr.xdr_value;;
val _to_PMAP'V2'pmapproc_getport'arg : Xdr.xdr_value -> t_PMAP'V2'pmapproc_getport'arg;;
val _of_PMAP'V2'pmapproc_getport'arg : t_PMAP'V2'pmapproc_getport'arg -> Xdr.xdr_value;;
val _to_PMAP'V2'pmapproc_getport'res : Xdr.xdr_value -> t_PMAP'V2'pmapproc_getport'res;;
val _of_PMAP'V2'pmapproc_getport'res : t_PMAP'V2'pmapproc_getport'res -> Xdr.xdr_value;;
val _to_PMAP'V2'pmapproc_dump'arg : Xdr.xdr_value -> t_PMAP'V2'pmapproc_dump'arg;;
val _of_PMAP'V2'pmapproc_dump'arg : t_PMAP'V2'pmapproc_dump'arg -> Xdr.xdr_value;;
val _to_PMAP'V2'pmapproc_dump'res : Xdr.xdr_value -> t_PMAP'V2'pmapproc_dump'res;;
val _of_PMAP'V2'pmapproc_dump'res : t_PMAP'V2'pmapproc_dump'res -> Xdr.xdr_value;;
val _to_PMAP'V2'pmapproc_callit'arg : Xdr.xdr_value -> t_PMAP'V2'pmapproc_callit'arg;;
val _of_PMAP'V2'pmapproc_callit'arg : t_PMAP'V2'pmapproc_callit'arg -> Xdr.xdr_value;;
val _to_PMAP'V2'pmapproc_callit'res : Xdr.xdr_value -> t_PMAP'V2'pmapproc_callit'res;;
val _of_PMAP'V2'pmapproc_callit'res : t_PMAP'V2'pmapproc_callit'res -> Xdr.xdr_value;;

(* XDR definitions *)

val xdrt_mapping : Xdr.xdr_type_term;;
val xdrt_pmaplist : Xdr.xdr_type_term;;
val xdrt_pmaplist_p : Xdr.xdr_type_term;;
val xdrt_call_args : Xdr.xdr_type_term;;
val xdrt_call_result : Xdr.xdr_type_term;;
val xdrt_PMAP'V2'pmapproc_null'arg : Xdr.xdr_type_term;;
val xdrt_PMAP'V2'pmapproc_null'res : Xdr.xdr_type_term;;
val xdrt_PMAP'V2'pmapproc_set'arg : Xdr.xdr_type_term;;
val xdrt_PMAP'V2'pmapproc_set'res : Xdr.xdr_type_term;;
val xdrt_PMAP'V2'pmapproc_unset'arg : Xdr.xdr_type_term;;
val xdrt_PMAP'V2'pmapproc_unset'res : Xdr.xdr_type_term;;
val xdrt_PMAP'V2'pmapproc_getport'arg : Xdr.xdr_type_term;;
val xdrt_PMAP'V2'pmapproc_getport'res : Xdr.xdr_type_term;;
val xdrt_PMAP'V2'pmapproc_dump'arg : Xdr.xdr_type_term;;
val xdrt_PMAP'V2'pmapproc_dump'res : Xdr.xdr_type_term;;
val xdrt_PMAP'V2'pmapproc_callit'arg : Xdr.xdr_type_term;;
val xdrt_PMAP'V2'pmapproc_callit'res : Xdr.xdr_type_term;;

(* Program definitions *)

val program_PMAP'V2 : Rpc_program.t;;

