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@redhat.com>
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
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__ */