We don't have any per-client private data we need to persist, but the
RPC infrastructure requires that we provide the callbacks and serialize
an empty JSON object. This makes us future proof going forwards.
Signed-off-by: Daniel P. Berrange <berrange(a)redhat.com>
---
src/admin/admin_server_dispatch.c | 21 +++++++++++++++++++++
src/admin/admin_server_dispatch.h | 5 +++++
2 files changed, 26 insertions(+)
diff --git a/src/admin/admin_server_dispatch.c b/src/admin/admin_server_dispatch.c
index 9f110025a2..b78ff902c0 100644
--- a/src/admin/admin_server_dispatch.c
+++ b/src/admin/admin_server_dispatch.c
@@ -86,6 +86,27 @@ remoteAdmClientNew(virNetServerClientPtr client ATTRIBUTE_UNUSED,
return priv;
}
+void *remoteAdmClientNewPostExecRestart(virNetServerClientPtr client,
+ virJSONValuePtr object ATTRIBUTE_UNUSED,
+ void *opaque)
+{
+ return remoteAdmClientNew(client, opaque);
+}
+
+virJSONValuePtr remoteAdmClientPreExecRestart(virNetServerClientPtr client
ATTRIBUTE_UNUSED,
+ void *data ATTRIBUTE_UNUSED)
+{
+ virJSONValuePtr object = virJSONValueNewObject();
+
+ if (!object)
+ return NULL;
+
+ /* No content to add at this time - just need empty object */
+
+ return object;
+}
+
+
/* Helpers */
static virNetServerPtr
diff --git a/src/admin/admin_server_dispatch.h b/src/admin/admin_server_dispatch.h
index ff6cfcd607..c998cf3cba 100644
--- a/src/admin/admin_server_dispatch.h
+++ b/src/admin/admin_server_dispatch.h
@@ -33,5 +33,10 @@ extern size_t adminNProcs;
void remoteAdmClientFree(void *data);
void *remoteAdmClientNew(virNetServerClientPtr client, void *opaque);
+void *remoteAdmClientNewPostExecRestart(virNetServerClientPtr client,
+ virJSONValuePtr object,
+ void *opaque);
+virJSONValuePtr remoteAdmClientPreExecRestart(virNetServerClientPtr client,
+ void *data);
#endif /* __ADMIN_SERVER_DISPATCH_H__ */
--
2.14.3