We have to expose some constants, in order for the client object transport
field to make sense.
Signed-off-by: Erik Skultety <eskultet(a)redhat.com>
---
include/libvirt/libvirt-admin.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/include/libvirt/libvirt-admin.h b/include/libvirt/libvirt-admin.h
index feb9473..f83ac1c 100644
--- a/include/libvirt/libvirt-admin.h
+++ b/include/libvirt/libvirt-admin.h
@@ -205,6 +205,16 @@ long long virAdmClientGetTimestamp(virAdmClientPtr client);
int virAdmClientGetTransport(virAdmClientPtr client);
int virAdmClientFree(virAdmClientPtr client);
+typedef enum {
+ VIR_CLIENT_TRANS_UNIX = 0, /* connection via UNIX socket */
+ VIR_CLIENT_TRANS_TCP, /* connection via unencrypted TCP socket */
+ VIR_CLIENT_TRANS_TLS, /* connection via encrypted TCP socket */
+
+# ifdef VIR_ENUM_SENTINELS
+ VIR_CLIENT_TRANS_LAST
+# endif
+} virClientTransport;
+
# ifdef __cplusplus
}
# endif
--
2.4.11