ocaml: Support .preconnect callback
commit8c1249f530705bbc1c8befceb4fef2b7862961fd
authorEric Blake <eblake@redhat.com>
Mon, 10 Feb 2020 18:44:54 +0000 (10 12:44 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 10 Feb 2020 19:57:29 +0000 (10 13:57 -0600)
treeff3c3a8d2f90bf96bee727c603fbf101a6ee84d5
parent81d288d80a7c66f5387394c4098097d10670c866
ocaml: Support .preconnect callback

Somewhat of a mishmash between .open (in that it takes a bool readonly
parameter) and .config_complete (in that the C code returns an int,
but the Ocaml code either throws an exception or completes with unit).
I did not spot any existing testsuite coverage to modify for this, and
am relying on the fact that it compiles cleanly.

Signed-off-by: Eric Blake <eblake@redhat.com>
plugins/ocaml/NBDKit.ml
plugins/ocaml/NBDKit.mli
plugins/ocaml/ocaml.c