git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ocaml: Add g#ocaml_handle method.
[libguestfs.git]
/
generator
/
generator_ocaml.ml
diff --git
a/generator/generator_ocaml.ml
b/generator/generator_ocaml.ml
index
483d65a
..
6cb843a
100644
(file)
--- a/
generator/generator_ocaml.ml
+++ b/
generator/generator_ocaml.ml
@@
-102,6
+102,11
@@
val clear_progress_callback : t -> unit
it offers exactly the same functionality.
Calling [new guestfs ()] creates both the object and the handle.
it offers exactly the same functionality.
Calling [new guestfs ()] creates both the object and the handle.
+ The object and handle are closed either implicitly when the
+ object is garbage collected, or explicitly by calling the [g#close ()]
+ method.
+
+ You can get the {!Guestfs.t} handle by calling [g#ocaml_handle].
Note that methods that take no parameters (except the implicit handle)
get an extra unit [()] parameter. This is so you can create a
Note that methods that take no parameters (except the implicit handle)
get an extra unit [()] parameter. This is so you can create a
@@
-112,6
+117,7
@@
class guestfs : unit -> object
method close : unit -> unit
method set_progress_callback : progress_cb -> unit
method clear_progress_callback : unit -> unit
method close : unit -> unit
method set_progress_callback : progress_cb -> unit
method clear_progress_callback : unit -> unit
+ method ocaml_handle : t
";
List.iter (
";
List.iter (
@@
-171,6
+177,7
@@
class guestfs () =
method close () = close g
method set_progress_callback = set_progress_callback g
method clear_progress_callback () = clear_progress_callback g
method close () = close g
method set_progress_callback = set_progress_callback g
method clear_progress_callback () = clear_progress_callback g
+ method ocaml_handle = g
";
List.iter (
";
List.iter (