Correct typos in the storage interface's phantom types
authorDavid Scott <scott.dj@gmail.com>
Wed, 6 Mar 2013 16:18:03 +0000 (16:18 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 6 Mar 2013 16:52:19 +0000 (16:52 +0000)
commit34a472800ba1908e910318cc5d5ed9588174c1cf
treefdc912a035805bbbf74776029a31187838670052
parentc6c9c3fff5993056e0af7219f4fe67ab8db3cdf2
Correct typos in the storage interface's phantom types

A connection is either read/write (type rw = [`R|`W]) or read/only
(type ro = [`R]). A function which requires the ability to write
needs to take a parameter [> `W] rather than [`W] (which would
correspond to a write-only connection).

We can now use a read/write connection to call:
  Pool.set_autostart
  Volume.create_xml
  Volume.delete

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
libvirt/libvirt.ml
libvirt/libvirt.mli