/usr/lib/ocaml/netstring/netcompression.mli is in libocamlnet-ocaml-dev 4.1.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | (* $Id$ *)
(** Registry for compression algorithms *)
(** This registry is initially empty. The {!Netgzip} module can be used
to register the [gzip] algorithm, just run
{[ Netgzip.init() ]}
to get this effect.
*)
val register : iana_name:string ->
?encoder:(unit -> Netchannels.io_obj_channel) ->
?decoder:(unit -> Netchannels.io_obj_channel) ->
unit -> unit
(** Registers a compression algorithm. The algorithm is given as
a pair of functions returning {!Netchannels.io_obj_channel}.
*)
val lookup_encoder : iana_name:string -> unit -> Netchannels.io_obj_channel
(** Returns the encoder, or raises [Not_found] *)
val lookup_decoder : iana_name:string -> unit -> Netchannels.io_obj_channel
(** Returns the decoder, or raises [Not_found] *)
val all_encoders : unit -> string list
val all_decoders : unit -> string list
(** The iana names of all encoders and decoders, resp. *)
|