mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-19 02:55:17 +00:00
a474371fc6
Introduce a new API to get libvirt version. It is worth noting, that libvirt-admin and libvirt share the same version number. Unfortunately, our existing API isn't generic enough to be used with virAdmConnectPtr as well. Also this patch wires up this API to the virt-admin client as a generic cmdVersion command.
13 lines
332 B
C
13 lines
332 B
C
/* -*- c -*- */
|
|
struct admin_connect_open_args {
|
|
u_int flags;
|
|
};
|
|
struct admin_connect_get_lib_version_ret {
|
|
uint64_t libVer;
|
|
};
|
|
enum admin_procedure {
|
|
ADMIN_PROC_CONNECT_OPEN = 1,
|
|
ADMIN_PROC_CONNECT_CLOSE = 2,
|
|
ADMIN_PROC_CONNECT_GET_LIB_VERSION = 3,
|
|
};
|