Displaying 1 result from an estimated 1 matches for "8ec6f063".
2019 Aug 15
2
[nbdkit PATCH] ocaml: Add support for dynamic .thread_model
...LLEL
-(** The thread model. *)
-
-val register_plugin : thread_model -> 'a plugin -> unit
+val register_plugin : 'a plugin -> unit
(** Register the plugin with nbdkit. *)
val set_error : Unix.error -> unit
diff --git a/plugins/ocaml/example.ml b/plugins/ocaml/example.ml
index 8ec6f063..45de035f 100644
--- a/plugins/ocaml/example.ml
+++ b/plugins/ocaml/example.ml
@@ -71,6 +71,9 @@ let ocamlexample_pwrite h buf offset _ =
let offset = Int64.to_int offset in
String.blit buf 0 !disk offset len
+let ocamlexample_thread_model () =
+ NBDKit.THREAD_MODEL_SERIALIZE_CONNECTIONS
+...