summaryrefslogtreecommitdiffstats
path: root/ocaml/t
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-10-13 12:57:12 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-10-13 20:54:07 +0100
commitd83d17e9dbfb24496a0841fc2aed436181ca0341 (patch)
treed6e0bfc2ff4a694f731d47e6c8d386d5b61b02ce /ocaml/t
parent07d0546f5d210d1cee048de8d42bdf58302f0d93 (diff)
downloadlibguestfs-d83d17e9dbfb24496a0841fc2aed436181ca0341.tar.gz
libguestfs-d83d17e9dbfb24496a0841fc2aed436181ca0341.tar.xz
libguestfs-d83d17e9dbfb24496a0841fc2aed436181ca0341.zip
New APIs: Model libvirt authentication events through the API.
This commit models libvirt authentication events through the API, adding one new event (GUESTFS_EVENT_LIBVIRT_AUTH) and several new APIs: guestfs_set_libvirt_supported_credentials guestfs_get_libvirt_requested_credentials guestfs_get_libvirt_requested_credential_prompt guestfs_get_libvirt_requested_credential_challenge guestfs_get_libvirt_requested_credential_defresult guestfs_set_libvirt_requested_credential See the documentation and example which shows how to use the new API. This commit also changes existing calls to virConnectOpen* within the library so that the new API is used. Also included is an example (but not a test, because it's hard to see how to automatically test the libvirt API).
Diffstat (limited to 'ocaml/t')
-rw-r--r--ocaml/t/guestfs_400_events.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/ocaml/t/guestfs_400_events.ml b/ocaml/t/guestfs_400_events.ml
index 4585a09d..be406087 100644
--- a/ocaml/t/guestfs_400_events.ml
+++ b/ocaml/t/guestfs_400_events.ml
@@ -28,7 +28,8 @@ let log g ev eh buf array =
| Guestfs.EVENT_APPLIANCE -> "appliance"
| Guestfs.EVENT_LIBRARY -> "library"
| Guestfs.EVENT_TRACE -> "trace"
- | Guestfs.EVENT_ENTER -> "enter" in
+ | Guestfs.EVENT_ENTER -> "enter"
+ | Guestfs.EVENT_LIBVIRT_AUTH -> "libvirt_auth" in
let eh : int = Obj.magic eh in