Signed-off-by: Jiri Denemark <jdenemar(a)redhat.com>
---
daemon/remote_dispatch_prototypes.h | 16 ++++++++++++++++
src/remote/remote_protocol.c | 27 +++++++++++++++++++++++++++
src/remote/remote_protocol.x | 18 +++++++++++++++++-
3 files changed, 60 insertions(+), 1 deletions(-)
diff --git a/daemon/remote_dispatch_prototypes.h b/daemon/remote_dispatch_prototypes.h
index b05a9a4..a6c13f0 100644
--- a/daemon/remote_dispatch_prototypes.h
+++ b/daemon/remote_dispatch_prototypes.h
@@ -50,6 +50,14 @@ static int remoteDispatchClose(
remote_error *err,
void *args,
void *ret);
+static int remoteDispatchCpuCompare(
+ struct qemud_server *server,
+ struct qemud_client *client,
+ virConnectPtr conn,
+ remote_message_header *hdr,
+ remote_error *err,
+ remote_cpu_compare_args *args,
+ remote_cpu_compare_ret *ret);
static int remoteDispatchDomainAttachDevice(
struct qemud_server *server,
struct qemud_client *client,
@@ -458,6 +466,14 @@ static int remoteDispatchGetCapabilities(
remote_error *err,
void *args,
remote_get_capabilities_ret *ret);
+static int remoteDispatchGetHostCpu(
+ struct qemud_server *server,
+ struct qemud_client *client,
+ virConnectPtr conn,
+ remote_message_header *hdr,
+ remote_error *err,
+ void *args,
+ remote_get_host_cpu_ret *ret);
static int remoteDispatchGetHostname(
struct qemud_server *server,
struct qemud_client *client,
diff --git a/src/remote/remote_protocol.c b/src/remote/remote_protocol.c
index a10558a..221e81c 100644
--- a/src/remote/remote_protocol.c
+++ b/src/remote/remote_protocol.c
@@ -2857,6 +2857,33 @@ xdr_remote_interface_is_active_ret (XDR *xdrs,
remote_interface_is_active_ret *o
}
bool_t
+xdr_remote_cpu_compare_args (XDR *xdrs, remote_cpu_compare_args *objp)
+{
+
+ if (!xdr_remote_nonnull_string (xdrs, &objp->xml))
+ return FALSE;
+ return TRUE;
+}
+
+bool_t
+xdr_remote_cpu_compare_ret (XDR *xdrs, remote_cpu_compare_ret *objp)
+{
+
+ if (!xdr_int (xdrs, &objp->result))
+ return FALSE;
+ return TRUE;
+}
+
+bool_t
+xdr_remote_get_host_cpu_ret (XDR *xdrs, remote_get_host_cpu_ret *objp)
+{
+
+ if (!xdr_remote_nonnull_string (xdrs, &objp->cpu))
+ return FALSE;
+ return TRUE;
+}
+
+bool_t
xdr_remote_procedure (XDR *xdrs, remote_procedure *objp)
{
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index 92f7010..1a06c16 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -1433,6 +1433,20 @@ struct remote_interface_is_active_ret {
};
+struct remote_cpu_compare_args {
+ remote_nonnull_string xml;
+};
+
+struct remote_cpu_compare_ret {
+ int result;
+};
+
+
+struct remote_get_host_cpu_ret {
+ remote_nonnull_string cpu;
+};
+
+
/*----- Protocol. -----*/
/* Define the program number, protocol version and procedure numbers here. */
@@ -1611,7 +1625,9 @@ enum remote_procedure {
REMOTE_PROC_STORAGE_POOL_IS_ACTIVE = 154,
REMOTE_PROC_STORAGE_POOL_IS_PERSISTENT = 155,
REMOTE_PROC_INTERFACE_IS_ACTIVE = 156,
- REMOTE_PROC_GET_LIB_VERSION = 157
+ REMOTE_PROC_GET_LIB_VERSION = 157,
+ REMOTE_PROC_CPU_COMPARE = 158,
+ REMOTE_PROC_GET_HOST_CPU = 159
/*
* Notice how the entries are grouped in sets of 10 ?
--
1.6.5.6