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 f85a7e2..d38b6b7 100644
--- a/include/libvirt/libvirt-admin.h
+++ b/include/libvirt/libvirt-admin.h
@@ -204,6 +204,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