X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=libvirt%2Flibvirt.mli;h=72917ef4eab34c77e021a67f6d4d5132ba4c0593;hb=77448a532e21983b65664e33525d18e76f41e348;hp=61beee5c39809a09c2076ca6bd64cbfe7dd59570;hpb=43b894e0ef93f380dcd8b1b20a3cd6626a8f3b7d;p=virt-top.git diff --git a/libvirt/libvirt.mli b/libvirt/libvirt.mli index 61beee5..72917ef 100644 --- a/libvirt/libvirt.mli +++ b/libvirt/libvirt.mli @@ -385,8 +385,7 @@ sig *) end (** Module dealing with connections. [Connect.t] is the - connection object. - *) + connection object. *) (** {3 Domains} *) @@ -573,8 +572,7 @@ sig *) end (** Module dealing with domains. [Domain.t] is the - domain object. - *) + domain object. *) (** {3 Networks} *) @@ -634,8 +632,7 @@ sig *) end (** Module dealing with networks. [Network.t] is the - network object. - *) + network object. *) (** {3 Storage pools} *) @@ -648,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. *) } @@ -766,9 +764,9 @@ sig The possible types for a job are: {v -(`Domain, `W) Job.t Job creating a r/w domain +(`Domain, `W) Job.t Job creating a new domain (`Domain_nocreate, `W) Job.t Job acting on an existing domain -(`Network, `W) Job.t Job creating a r/w network +(`Network, `W) Job.t Job creating a new network (`Network_nocreate, `W) Job.t Job acting on an existing network v} *) @@ -780,8 +778,8 @@ v} (** State of the job. *) type job_info = { - typ : job_type; (** Job type *) - state : job_state; (** Job state *) + typ : job_type; (** Job type (Bounded, Unbounded) *) + state : job_state; (** Job state (Running, etc.) *) running_time : int; (** Actual running time (seconds) *) (** The following fields are only available in Bounded jobs: *) remaining_time : int; (** Estimated time left (seconds) *) @@ -804,11 +802,20 @@ 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. *) end + (** Module dealing with asynchronous jobs. *) (** {3 Error handling and exceptions} *) @@ -860,7 +867,14 @@ sig | VIR_ERR_NO_DOMAIN | VIR_ERR_NO_NETWORK | VIR_ERR_INVALID_MAC - (* ^^ NB: If you add a variant you MUST edit libvirt_c.c:MAX_VIR_* *) + | VIR_ERR_AUTH_FAILED + | VIR_ERR_INVALID_STORAGE_POOL + | VIR_ERR_INVALID_STORAGE_VOL + | VIR_WAR_NO_STORAGE + | VIR_ERR_NO_STORAGE_POOL + | VIR_ERR_NO_STORAGE_VOL + (* ^^ NB: If you add a variant you MUST edit + libvirt_c_epilogue.c:MAX_VIR_* *) | VIR_ERR_UNKNOWN of int (** See [] for meaning of these codes. *) @@ -884,7 +898,9 @@ sig | VIR_FROM_OPENVZ | VIR_FROM_XENXM | VIR_FROM_STATS_LINUX - (* ^^ NB: If you add a variant you MUST edit libvirt_c.c: MAX_VIR_* *) + | VIR_FROM_STORAGE + (* ^^ NB: If you add a variant you MUST edit + libvirt_c_epilogue.c: MAX_VIR_* *) | VIR_FROM_UNKNOWN of int (** Subsystem / driver which produced the error. *)