X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=libvirt%2Flibvirt.mli;h=fe9eb401072173ac8e805af6cd7e939ea88ab404;hb=8a2211eb0976db33a6795ee9933bd7e7400c933c;hp=642b845e8c18cdb7a3db215704d9998c23ac0158;hpb=8a8008134e997330d61e0b9736e9067b5689b531;p=virt-top.git diff --git a/libvirt/libvirt.mli b/libvirt/libvirt.mli index 642b845..fe9eb40 100644 --- a/libvirt/libvirt.mli +++ b/libvirt/libvirt.mli @@ -645,6 +645,7 @@ sig (** State of the storage pool. *) type pool_info = { + state : pool_state; (** Inactive | Active *) capacity : int64; (** Logical size in bytes. *) allocation : int64; (** Currently allocated in bytes. *) } @@ -715,8 +716,8 @@ sig } val lookup_by_name : 'a Pool.t -> string -> 'a t - val lookup_by_key : 'a Pool.t -> string -> 'a t - val lookup_by_path : 'a Pool.t -> string -> 'a t + val lookup_by_key : 'a Connect.t -> string -> 'a t + val lookup_by_path : 'a Connect.t -> string -> 'a t (** Look up a storage volume by name, key or path volume. *) val pool_of_volume : 'a t -> 'a Pool.t @@ -801,6 +802,14 @@ v} val cancel : ('a,'b) t -> unit (** Cancel a job. *) + val free : ('a, [>`R]) t -> unit + (** Free a job object in memory. + + The job object is automatically freed if it is garbage + collected. This function just forces it to be freed right + away. + *) + external const : ('a, [>`R]) t -> ('a, ro) t = "%identity" (** [const conn] turns a read/write job into a read-only job. Note that the opposite operation is impossible.