[libvirt] [PATCH] Pass remote_message_header to the dispatch functions.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is necessary for the dispatch functions to be able to use
streams in the future.

Signed-off-by: Chris Lalancette <clalance@xxxxxxxxxx>
---
 daemon/dispatch.c                   |    2 +-
 daemon/remote.c                     |  208 +++++++++++++++++++++++++++++++----
 daemon/remote.h                     |    1 +
 daemon/remote_dispatch_prototypes.h |  146 ++++++++++++++++++++++++
 daemon/remote_generate_stubs.pl     |    1 +
 5 files changed, 333 insertions(+), 25 deletions(-)

diff --git a/daemon/dispatch.c b/daemon/dispatch.c
index ae4f60d..f024900 100644
--- a/daemon/dispatch.c
+++ b/daemon/dispatch.c
@@ -503,7 +503,7 @@ remoteDispatchClientCall (struct qemud_server *server,
      *
      *   'conn', 'rerr', 'args and 'ret'
      */
-    rv = (data->fn)(server, client, conn, &rerr, &args, &ret);
+    rv = (data->fn)(server, client, conn, &msg->hdr, &rerr, &args, &ret);
 
     virMutexLock(&server->lock);
     virMutexLock(&client->lock);
diff --git a/daemon/remote.c b/daemon/remote.c
index 6d4cc1c..ba97379 100644
--- a/daemon/remote.c
+++ b/daemon/remote.c
@@ -129,6 +129,7 @@ static int
 remoteDispatchOpen (struct qemud_server *server,
                     struct qemud_client *client,
                     virConnectPtr conn,
+                    remote_message_header *hdr ATTRIBUTE_UNUSED,
                     remote_error *rerr,
                     struct remote_open_args *args, void *ret ATTRIBUTE_UNUSED)
 {
@@ -176,6 +177,7 @@ static int
 remoteDispatchClose (struct qemud_server *server ATTRIBUTE_UNUSED,
                      struct qemud_client *client ATTRIBUTE_UNUSED,
                      virConnectPtr conn ATTRIBUTE_UNUSED,
+                     remote_message_header *hdr ATTRIBUTE_UNUSED,
                      remote_error *rerr ATTRIBUTE_UNUSED,
                      void *args ATTRIBUTE_UNUSED, void *ret ATTRIBUTE_UNUSED)
 {
@@ -193,6 +195,7 @@ static int
 remoteDispatchSupportsFeature (struct qemud_server *server ATTRIBUTE_UNUSED,
                                struct qemud_client *client ATTRIBUTE_UNUSED,
                                virConnectPtr conn,
+                               remote_message_header *hdr ATTRIBUTE_UNUSED,
                                remote_error *rerr,
                                remote_supports_feature_args *args, remote_supports_feature_ret *ret)
 {
@@ -210,6 +213,7 @@ static int
 remoteDispatchGetType (struct qemud_server *server ATTRIBUTE_UNUSED,
                        struct qemud_client *client ATTRIBUTE_UNUSED,
                        virConnectPtr conn,
+                       remote_message_header *hdr ATTRIBUTE_UNUSED,
                        remote_error *rerr,
                        void *args ATTRIBUTE_UNUSED, remote_get_type_ret *ret)
 {
@@ -237,6 +241,7 @@ static int
 remoteDispatchGetVersion (struct qemud_server *server ATTRIBUTE_UNUSED,
                           struct qemud_client *client ATTRIBUTE_UNUSED,
                           virConnectPtr conn,
+                          remote_message_header *hdr ATTRIBUTE_UNUSED,
                           remote_error *rerr,
                           void *args ATTRIBUTE_UNUSED,
                           remote_get_version_ret *ret)
@@ -256,6 +261,7 @@ static int
 remoteDispatchGetHostname (struct qemud_server *server ATTRIBUTE_UNUSED,
                            struct qemud_client *client ATTRIBUTE_UNUSED,
                            virConnectPtr conn,
+                           remote_message_header *hdr ATTRIBUTE_UNUSED,
                            remote_error *rerr,
                            void *args ATTRIBUTE_UNUSED,
                            remote_get_hostname_ret *ret)
@@ -276,6 +282,7 @@ static int
 remoteDispatchGetUri (struct qemud_server *server ATTRIBUTE_UNUSED,
                       struct qemud_client *client ATTRIBUTE_UNUSED,
                       virConnectPtr conn,
+                      remote_message_header *hdr ATTRIBUTE_UNUSED,
                       remote_error *rerr,
                       void *args ATTRIBUTE_UNUSED,
                       remote_get_uri_ret *ret)
@@ -297,6 +304,7 @@ static int
 remoteDispatchGetMaxVcpus (struct qemud_server *server ATTRIBUTE_UNUSED,
                            struct qemud_client *client ATTRIBUTE_UNUSED,
                            virConnectPtr conn,
+                           remote_message_header *hdr ATTRIBUTE_UNUSED,
                            remote_error *rerr,
                            remote_get_max_vcpus_args *args,
                            remote_get_max_vcpus_ret *ret)
@@ -317,6 +325,7 @@ static int
 remoteDispatchNodeGetInfo (struct qemud_server *server ATTRIBUTE_UNUSED,
                            struct qemud_client *client ATTRIBUTE_UNUSED,
                            virConnectPtr conn,
+                           remote_message_header *hdr ATTRIBUTE_UNUSED,
                            remote_error *rerr,
                            void *args ATTRIBUTE_UNUSED,
                            remote_node_get_info_ret *ret)
@@ -344,6 +353,7 @@ static int
 remoteDispatchGetCapabilities (struct qemud_server *server ATTRIBUTE_UNUSED,
                                struct qemud_client *client ATTRIBUTE_UNUSED,
                                virConnectPtr conn,
+                               remote_message_header *hdr ATTRIBUTE_UNUSED,
                                remote_error *rerr,
                                void *args ATTRIBUTE_UNUSED,
                                remote_get_capabilities_ret *ret)
@@ -364,6 +374,7 @@ static int
 remoteDispatchNodeGetCellsFreeMemory (struct qemud_server *server ATTRIBUTE_UNUSED,
                                       struct qemud_client *client ATTRIBUTE_UNUSED,
                                       virConnectPtr conn,
+                                      remote_message_header *hdr ATTRIBUTE_UNUSED,
                                       remote_error *rerr,
                                       remote_node_get_cells_free_memory_args *args,
                                       remote_node_get_cells_free_memory_ret *ret)
@@ -401,6 +412,7 @@ static int
 remoteDispatchNodeGetFreeMemory (struct qemud_server *server ATTRIBUTE_UNUSED,
                                  struct qemud_client *client ATTRIBUTE_UNUSED,
                                  virConnectPtr conn,
+                                 remote_message_header *hdr ATTRIBUTE_UNUSED,
                                  remote_error *rerr,
                                  void *args ATTRIBUTE_UNUSED,
                                  remote_node_get_free_memory_ret *ret)
@@ -421,6 +433,7 @@ static int
 remoteDispatchDomainGetSchedulerType (struct qemud_server *server ATTRIBUTE_UNUSED,
                                       struct qemud_client *client ATTRIBUTE_UNUSED,
                                       virConnectPtr conn,
+                                      remote_message_header *hdr ATTRIBUTE_UNUSED,
                                       remote_error *rerr,
                                       remote_domain_get_scheduler_type_args *args,
                                       remote_domain_get_scheduler_type_ret *ret)
@@ -452,6 +465,7 @@ static int
 remoteDispatchDomainGetSchedulerParameters (struct qemud_server *server ATTRIBUTE_UNUSED,
                                             struct qemud_client *client ATTRIBUTE_UNUSED,
                                             virConnectPtr conn,
+                                            remote_message_header *hdr ATTRIBUTE_UNUSED,
                                             remote_error *rerr,
                                             remote_domain_get_scheduler_parameters_args *args,
                                             remote_domain_get_scheduler_parameters_ret *ret)
@@ -535,6 +549,7 @@ static int
 remoteDispatchDomainSetSchedulerParameters (struct qemud_server *server ATTRIBUTE_UNUSED,
                                             struct qemud_client *client ATTRIBUTE_UNUSED,
                                             virConnectPtr conn,
+                                            remote_message_header *hdr ATTRIBUTE_UNUSED,
                                             remote_error *rerr,
                                             remote_domain_set_scheduler_parameters_args *args,
                                             void *ret ATTRIBUTE_UNUSED)
@@ -600,6 +615,7 @@ static int
 remoteDispatchDomainBlockStats (struct qemud_server *server ATTRIBUTE_UNUSED,
                                 struct qemud_client *client ATTRIBUTE_UNUSED,
                                 virConnectPtr conn,
+                                remote_message_header *hdr ATTRIBUTE_UNUSED,
                                 remote_error *rerr,
                                 remote_domain_block_stats_args *args,
                                 remote_domain_block_stats_ret *ret)
@@ -635,6 +651,7 @@ static int
 remoteDispatchDomainInterfaceStats (struct qemud_server *server ATTRIBUTE_UNUSED,
                                     struct qemud_client *client ATTRIBUTE_UNUSED,
                                     virConnectPtr conn,
+                                    remote_message_header *hdr ATTRIBUTE_UNUSED,
                                     remote_error *rerr,
                                     remote_domain_interface_stats_args *args,
                                     remote_domain_interface_stats_ret *ret)
@@ -673,6 +690,7 @@ static int
 remoteDispatchDomainBlockPeek (struct qemud_server *server ATTRIBUTE_UNUSED,
                                struct qemud_client *client ATTRIBUTE_UNUSED,
                                virConnectPtr conn,
+                               remote_message_header *hdr ATTRIBUTE_UNUSED,
                                remote_error *rerr,
                                remote_domain_block_peek_args *args,
                                remote_domain_block_peek_ret *ret)
@@ -725,6 +743,7 @@ static int
 remoteDispatchDomainMemoryPeek (struct qemud_server *server ATTRIBUTE_UNUSED,
                                 struct qemud_client *client ATTRIBUTE_UNUSED,
                                 virConnectPtr conn,
+                                remote_message_header *hdr ATTRIBUTE_UNUSED,
                                 remote_error *rerr,
                                 remote_domain_memory_peek_args *args,
                                 remote_domain_memory_peek_ret *ret)
@@ -775,6 +794,7 @@ static int
 remoteDispatchDomainAttachDevice (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_domain_attach_device_args *args,
                                   void *ret ATTRIBUTE_UNUSED)
@@ -800,6 +820,7 @@ static int
 remoteDispatchDomainCreate (struct qemud_server *server ATTRIBUTE_UNUSED,
                             struct qemud_client *client ATTRIBUTE_UNUSED,
                             virConnectPtr conn,
+                            remote_message_header *hdr ATTRIBUTE_UNUSED,
                             remote_error *rerr,
                             remote_domain_create_args *args,
                             void *ret ATTRIBUTE_UNUSED)
@@ -825,6 +846,7 @@ static int
 remoteDispatchDomainCreateXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                                struct qemud_client *client ATTRIBUTE_UNUSED,
                                virConnectPtr conn,
+                               remote_message_header *hdr ATTRIBUTE_UNUSED,
                                remote_error *rerr,
                                remote_domain_create_xml_args *args,
                                remote_domain_create_xml_ret *ret)
@@ -847,6 +869,7 @@ static int
 remoteDispatchDomainDefineXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                                struct qemud_client *client ATTRIBUTE_UNUSED,
                                virConnectPtr conn,
+                               remote_message_header *hdr ATTRIBUTE_UNUSED,
                                remote_error *rerr,
                                remote_domain_define_xml_args *args,
                                remote_domain_define_xml_ret *ret)
@@ -869,6 +892,7 @@ static int
 remoteDispatchDomainDestroy (struct qemud_server *server ATTRIBUTE_UNUSED,
                              struct qemud_client *client ATTRIBUTE_UNUSED,
                              virConnectPtr conn,
+                             remote_message_header *hdr ATTRIBUTE_UNUSED,
                              remote_error *rerr,
                              remote_domain_destroy_args *args,
                              void *ret ATTRIBUTE_UNUSED)
@@ -894,6 +918,7 @@ static int
 remoteDispatchDomainDetachDevice (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_domain_detach_device_args *args,
                                   void *ret ATTRIBUTE_UNUSED)
@@ -920,6 +945,7 @@ static int
 remoteDispatchDomainDumpXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                              struct qemud_client *client ATTRIBUTE_UNUSED,
                              virConnectPtr conn,
+                             remote_message_header *hdr ATTRIBUTE_UNUSED,
                              remote_error *rerr,
                              remote_domain_dump_xml_args *args,
                              remote_domain_dump_xml_ret *ret)
@@ -947,6 +973,7 @@ static int
 remoteDispatchDomainXmlFromNative (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    remote_domain_xml_from_native_args *args,
                                    remote_domain_xml_from_native_ret *ret)
@@ -967,6 +994,7 @@ static int
 remoteDispatchDomainXmlToNative (struct qemud_server *server ATTRIBUTE_UNUSED,
                                  struct qemud_client *client ATTRIBUTE_UNUSED,
                                  virConnectPtr conn,
+                                 remote_message_header *hdr ATTRIBUTE_UNUSED,
                                  remote_error *rerr,
                                  remote_domain_xml_to_native_args *args,
                                  remote_domain_xml_to_native_ret *ret)
@@ -988,6 +1016,7 @@ static int
 remoteDispatchDomainGetAutostart (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_domain_get_autostart_args *args,
                                   remote_domain_get_autostart_ret *ret)
@@ -1013,6 +1042,7 @@ static int
 remoteDispatchDomainGetInfo (struct qemud_server *server ATTRIBUTE_UNUSED,
                              struct qemud_client *client ATTRIBUTE_UNUSED,
                              virConnectPtr conn,
+                             remote_message_header *hdr ATTRIBUTE_UNUSED,
                              remote_error *rerr,
                              remote_domain_get_info_args *args,
                              remote_domain_get_info_ret *ret)
@@ -1047,6 +1077,7 @@ static int
 remoteDispatchDomainGetMaxMemory (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_domain_get_max_memory_args *args,
                                   remote_domain_get_max_memory_ret *ret)
@@ -1073,6 +1104,7 @@ static int
 remoteDispatchDomainGetMaxVcpus (struct qemud_server *server ATTRIBUTE_UNUSED,
                                  struct qemud_client *client ATTRIBUTE_UNUSED,
                                  virConnectPtr conn,
+                                 remote_message_header *hdr ATTRIBUTE_UNUSED,
                                  remote_error *rerr,
                                  remote_domain_get_max_vcpus_args *args,
                                  remote_domain_get_max_vcpus_ret *ret)
@@ -1099,6 +1131,7 @@ static int
 remoteDispatchDomainGetSecurityLabel(struct qemud_server *server ATTRIBUTE_UNUSED,
                                      struct qemud_client *client ATTRIBUTE_UNUSED,
                                      virConnectPtr conn,
+                                     remote_message_header *hdr ATTRIBUTE_UNUSED,
                                      remote_error *rerr,
                                      remote_domain_get_security_label_args *args,
                                      remote_domain_get_security_label_ret *ret)
@@ -1136,6 +1169,7 @@ static int
 remoteDispatchNodeGetSecurityModel(struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    void *args ATTRIBUTE_UNUSED,
                                    remote_node_get_security_model_ret *ret)
@@ -1169,6 +1203,7 @@ static int
 remoteDispatchDomainGetOsType (struct qemud_server *server ATTRIBUTE_UNUSED,
                                struct qemud_client *client ATTRIBUTE_UNUSED,
                                virConnectPtr conn,
+                               remote_message_header *hdr ATTRIBUTE_UNUSED,
                                remote_error *rerr,
                                remote_domain_get_os_type_args *args,
                                remote_domain_get_os_type_ret *ret)
@@ -1196,6 +1231,7 @@ static int
 remoteDispatchDomainGetVcpus (struct qemud_server *server ATTRIBUTE_UNUSED,
                               struct qemud_client *client ATTRIBUTE_UNUSED,
                               virConnectPtr conn,
+                              remote_message_header *hdr ATTRIBUTE_UNUSED,
                               remote_error *rerr,
                               remote_domain_get_vcpus_args *args,
                               remote_domain_get_vcpus_ret *ret)
@@ -1276,6 +1312,7 @@ static int
 remoteDispatchDomainMigratePrepare (struct qemud_server *server ATTRIBUTE_UNUSED,
                                     struct qemud_client *client ATTRIBUTE_UNUSED,
                                     virConnectPtr conn,
+                                    remote_message_header *hdr ATTRIBUTE_UNUSED,
                                     remote_error *rerr,
                                     remote_domain_migrate_prepare_args *args,
                                     remote_domain_migrate_prepare_ret *ret)
@@ -1324,6 +1361,7 @@ static int
 remoteDispatchDomainMigratePerform (struct qemud_server *server ATTRIBUTE_UNUSED,
                                     struct qemud_client *client ATTRIBUTE_UNUSED,
                                     virConnectPtr conn,
+                                    remote_message_header *hdr ATTRIBUTE_UNUSED,
                                     remote_error *rerr,
                                     remote_domain_migrate_perform_args *args,
                                     void *ret ATTRIBUTE_UNUSED)
@@ -1358,6 +1396,7 @@ static int
 remoteDispatchDomainMigrateFinish (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    remote_domain_migrate_finish_args *args,
                                    remote_domain_migrate_finish_ret *ret)
@@ -1384,6 +1423,7 @@ static int
 remoteDispatchDomainMigratePrepare2 (struct qemud_server *server ATTRIBUTE_UNUSED,
                                      struct qemud_client *client ATTRIBUTE_UNUSED,
                                      virConnectPtr conn,
+                                     remote_message_header *hdr ATTRIBUTE_UNUSED,
                                      remote_error *rerr,
                                      remote_domain_migrate_prepare2_args *args,
                                      remote_domain_migrate_prepare2_ret *ret)
@@ -1428,6 +1468,7 @@ static int
 remoteDispatchDomainMigrateFinish2 (struct qemud_server *server ATTRIBUTE_UNUSED,
                                     struct qemud_client *client ATTRIBUTE_UNUSED,
                                     virConnectPtr conn,
+                                    remote_message_header *hdr ATTRIBUTE_UNUSED,
                                     remote_error *rerr,
                                     remote_domain_migrate_finish2_args *args,
                                     remote_domain_migrate_finish2_ret *ret)
@@ -1455,6 +1496,7 @@ static int
 remoteDispatchListDefinedDomains (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_list_defined_domains_args *args,
                                   remote_list_defined_domains_ret *ret)
@@ -1488,6 +1530,7 @@ static int
 remoteDispatchDomainLookupById (struct qemud_server *server ATTRIBUTE_UNUSED,
                                 struct qemud_client *client ATTRIBUTE_UNUSED,
                                 virConnectPtr conn,
+                                remote_message_header *hdr ATTRIBUTE_UNUSED,
                                 remote_error *rerr,
                                 remote_domain_lookup_by_id_args *args,
                                 remote_domain_lookup_by_id_ret *ret)
@@ -1509,6 +1552,7 @@ static int
 remoteDispatchDomainLookupByName (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_domain_lookup_by_name_args *args,
                                   remote_domain_lookup_by_name_ret *ret)
@@ -1530,6 +1574,7 @@ static int
 remoteDispatchDomainLookupByUuid (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_domain_lookup_by_uuid_args *args,
                                   remote_domain_lookup_by_uuid_ret *ret)
@@ -1551,6 +1596,7 @@ static int
 remoteDispatchNumOfDefinedDomains (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    void *args ATTRIBUTE_UNUSED,
                                    remote_num_of_defined_domains_ret *ret)
@@ -1569,6 +1615,7 @@ static int
 remoteDispatchDomainPinVcpu (struct qemud_server *server ATTRIBUTE_UNUSED,
                              struct qemud_client *client ATTRIBUTE_UNUSED,
                              virConnectPtr conn,
+                             remote_message_header *hdr ATTRIBUTE_UNUSED,
                              remote_error *rerr,
                              remote_domain_pin_vcpu_args *args,
                              void *ret ATTRIBUTE_UNUSED)
@@ -1604,6 +1651,7 @@ static int
 remoteDispatchDomainReboot (struct qemud_server *server ATTRIBUTE_UNUSED,
                             struct qemud_client *client ATTRIBUTE_UNUSED,
                             virConnectPtr conn,
+                            remote_message_header *hdr ATTRIBUTE_UNUSED,
                             remote_error *rerr,
                             remote_domain_reboot_args *args,
                             void *ret ATTRIBUTE_UNUSED)
@@ -1629,6 +1677,7 @@ static int
 remoteDispatchDomainRestore (struct qemud_server *server ATTRIBUTE_UNUSED,
                              struct qemud_client *client ATTRIBUTE_UNUSED,
                              virConnectPtr conn,
+                             remote_message_header *hdr ATTRIBUTE_UNUSED,
                              remote_error *rerr,
                              remote_domain_restore_args *args,
                              void *ret ATTRIBUTE_UNUSED)
@@ -1646,6 +1695,7 @@ static int
 remoteDispatchDomainResume (struct qemud_server *server ATTRIBUTE_UNUSED,
                             struct qemud_client *client ATTRIBUTE_UNUSED,
                             virConnectPtr conn,
+                            remote_message_header *hdr ATTRIBUTE_UNUSED,
                             remote_error *rerr,
                             remote_domain_resume_args *args,
                             void *ret ATTRIBUTE_UNUSED)
@@ -1671,6 +1721,7 @@ static int
 remoteDispatchDomainSave (struct qemud_server *server ATTRIBUTE_UNUSED,
                           struct qemud_client *client ATTRIBUTE_UNUSED,
                           virConnectPtr conn,
+                          remote_message_header *hdr ATTRIBUTE_UNUSED,
                           remote_error *rerr,
                           remote_domain_save_args *args,
                           void *ret ATTRIBUTE_UNUSED)
@@ -1696,6 +1747,7 @@ static int
 remoteDispatchDomainCoreDump (struct qemud_server *server ATTRIBUTE_UNUSED,
                               struct qemud_client *client ATTRIBUTE_UNUSED,
                               virConnectPtr conn,
+                              remote_message_header *hdr ATTRIBUTE_UNUSED,
                               remote_error *rerr,
                               remote_domain_core_dump_args *args,
                               void *ret ATTRIBUTE_UNUSED)
@@ -1721,6 +1773,7 @@ static int
 remoteDispatchDomainSetAutostart (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_domain_set_autostart_args *args,
                                   void *ret ATTRIBUTE_UNUSED)
@@ -1746,6 +1799,7 @@ static int
 remoteDispatchDomainSetMaxMemory (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_domain_set_max_memory_args *args,
                                   void *ret ATTRIBUTE_UNUSED)
@@ -1771,6 +1825,7 @@ static int
 remoteDispatchDomainSetMemory (struct qemud_server *server ATTRIBUTE_UNUSED,
                                struct qemud_client *client ATTRIBUTE_UNUSED,
                                virConnectPtr conn,
+                               remote_message_header *hdr ATTRIBUTE_UNUSED,
                                remote_error *rerr,
                                remote_domain_set_memory_args *args,
                                void *ret ATTRIBUTE_UNUSED)
@@ -1796,6 +1851,7 @@ static int
 remoteDispatchDomainSetVcpus (struct qemud_server *server ATTRIBUTE_UNUSED,
                               struct qemud_client *client ATTRIBUTE_UNUSED,
                               virConnectPtr conn,
+                              remote_message_header *hdr ATTRIBUTE_UNUSED,
                               remote_error *rerr,
                               remote_domain_set_vcpus_args *args,
                               void *ret ATTRIBUTE_UNUSED)
@@ -1821,6 +1877,7 @@ static int
 remoteDispatchDomainShutdown (struct qemud_server *server ATTRIBUTE_UNUSED,
                               struct qemud_client *client ATTRIBUTE_UNUSED,
                               virConnectPtr conn,
+                              remote_message_header *hdr ATTRIBUTE_UNUSED,
                               remote_error *rerr,
                               remote_domain_shutdown_args *args,
                               void *ret ATTRIBUTE_UNUSED)
@@ -1846,6 +1903,7 @@ static int
 remoteDispatchDomainSuspend (struct qemud_server *server ATTRIBUTE_UNUSED,
                              struct qemud_client *client ATTRIBUTE_UNUSED,
                              virConnectPtr conn,
+                             remote_message_header *hdr ATTRIBUTE_UNUSED,
                              remote_error *rerr,
                              remote_domain_suspend_args *args,
                              void *ret ATTRIBUTE_UNUSED)
@@ -1871,6 +1929,7 @@ static int
 remoteDispatchDomainUndefine (struct qemud_server *server ATTRIBUTE_UNUSED,
                               struct qemud_client *client ATTRIBUTE_UNUSED,
                               virConnectPtr conn,
+                              remote_message_header *hdr ATTRIBUTE_UNUSED,
                               remote_error *rerr,
                               remote_domain_undefine_args *args,
                               void *ret ATTRIBUTE_UNUSED)
@@ -1896,6 +1955,7 @@ static int
 remoteDispatchListDefinedNetworks (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    remote_list_defined_networks_args *args,
                                    remote_list_defined_networks_ret *ret)
@@ -1929,6 +1989,7 @@ static int
 remoteDispatchListDomains (struct qemud_server *server ATTRIBUTE_UNUSED,
                            struct qemud_client *client ATTRIBUTE_UNUSED,
                            virConnectPtr conn,
+                           remote_message_header *hdr ATTRIBUTE_UNUSED,
                            remote_error *rerr,
                            remote_list_domains_args *args,
                            remote_list_domains_ret *ret)
@@ -1961,6 +2022,7 @@ static int
 remoteDispatchListNetworks (struct qemud_server *server ATTRIBUTE_UNUSED,
                             struct qemud_client *client ATTRIBUTE_UNUSED,
                             virConnectPtr conn,
+                            remote_message_header *hdr ATTRIBUTE_UNUSED,
                             remote_error *rerr,
                             remote_list_networks_args *args,
                             remote_list_networks_ret *ret)
@@ -1994,6 +2056,7 @@ static int
 remoteDispatchNetworkCreate (struct qemud_server *server ATTRIBUTE_UNUSED,
                              struct qemud_client *client ATTRIBUTE_UNUSED,
                              virConnectPtr conn,
+                             remote_message_header *hdr ATTRIBUTE_UNUSED,
                              remote_error *rerr,
                              remote_network_create_args *args,
                              void *ret ATTRIBUTE_UNUSED)
@@ -2019,6 +2082,7 @@ static int
 remoteDispatchNetworkCreateXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                                 struct qemud_client *client ATTRIBUTE_UNUSED,
                                 virConnectPtr conn,
+                                remote_message_header *hdr ATTRIBUTE_UNUSED,
                                 remote_error *rerr,
                                 remote_network_create_xml_args *args,
                                 remote_network_create_xml_ret *ret)
@@ -2040,6 +2104,7 @@ static int
 remoteDispatchNetworkDefineXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                                 struct qemud_client *client ATTRIBUTE_UNUSED,
                                 virConnectPtr conn,
+                                remote_message_header *hdr ATTRIBUTE_UNUSED,
                                 remote_error *rerr,
                                 remote_network_define_xml_args *args,
                                 remote_network_define_xml_ret *ret)
@@ -2061,6 +2126,7 @@ static int
 remoteDispatchNetworkDestroy (struct qemud_server *server ATTRIBUTE_UNUSED,
                               struct qemud_client *client ATTRIBUTE_UNUSED,
                               virConnectPtr conn,
+                              remote_message_header *hdr ATTRIBUTE_UNUSED,
                               remote_error *rerr,
                               remote_network_destroy_args *args,
                               void *ret ATTRIBUTE_UNUSED)
@@ -2086,6 +2152,7 @@ static int
 remoteDispatchNetworkDumpXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                               struct qemud_client *client ATTRIBUTE_UNUSED,
                               virConnectPtr conn,
+                              remote_message_header *hdr ATTRIBUTE_UNUSED,
                               remote_error *rerr,
                               remote_network_dump_xml_args *args,
                               remote_network_dump_xml_ret *ret)
@@ -2113,6 +2180,7 @@ static int
 remoteDispatchNetworkGetAutostart (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    remote_network_get_autostart_args *args,
                                    remote_network_get_autostart_ret *ret)
@@ -2138,6 +2206,7 @@ static int
 remoteDispatchNetworkGetBridgeName (struct qemud_server *server ATTRIBUTE_UNUSED,
                                     struct qemud_client *client ATTRIBUTE_UNUSED,
                                     virConnectPtr conn,
+                                    remote_message_header *hdr ATTRIBUTE_UNUSED,
                                     remote_error *rerr,
                                     remote_network_get_bridge_name_args *args,
                                     remote_network_get_bridge_name_ret *ret)
@@ -2165,6 +2234,7 @@ static int
 remoteDispatchNetworkLookupByName (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    remote_network_lookup_by_name_args *args,
                                    remote_network_lookup_by_name_ret *ret)
@@ -2186,6 +2256,7 @@ static int
 remoteDispatchNetworkLookupByUuid (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    remote_network_lookup_by_uuid_args *args,
                                    remote_network_lookup_by_uuid_ret *ret)
@@ -2207,6 +2278,7 @@ static int
 remoteDispatchNetworkSetAutostart (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    remote_network_set_autostart_args *args,
                                    void *ret ATTRIBUTE_UNUSED)
@@ -2232,6 +2304,7 @@ static int
 remoteDispatchNetworkUndefine (struct qemud_server *server ATTRIBUTE_UNUSED,
                                struct qemud_client *client ATTRIBUTE_UNUSED,
                                virConnectPtr conn,
+                               remote_message_header *hdr ATTRIBUTE_UNUSED,
                                remote_error *rerr,
                                remote_network_undefine_args *args,
                                void *ret ATTRIBUTE_UNUSED)
@@ -2257,6 +2330,7 @@ static int
 remoteDispatchNumOfDefinedNetworks (struct qemud_server *server ATTRIBUTE_UNUSED,
                                     struct qemud_client *client ATTRIBUTE_UNUSED,
                                     virConnectPtr conn,
+                                    remote_message_header *hdr ATTRIBUTE_UNUSED,
                                     remote_error *rerr,
                                     void *args ATTRIBUTE_UNUSED,
                                     remote_num_of_defined_networks_ret *ret)
@@ -2275,6 +2349,7 @@ static int
 remoteDispatchNumOfDomains (struct qemud_server *server ATTRIBUTE_UNUSED,
                             struct qemud_client *client ATTRIBUTE_UNUSED,
                             virConnectPtr conn,
+                            remote_message_header *hdr ATTRIBUTE_UNUSED,
                             remote_error *rerr,
                             void *args ATTRIBUTE_UNUSED,
                             remote_num_of_domains_ret *ret)
@@ -2293,6 +2368,7 @@ static int
 remoteDispatchNumOfNetworks (struct qemud_server *server ATTRIBUTE_UNUSED,
                              struct qemud_client *client ATTRIBUTE_UNUSED,
                              virConnectPtr conn,
+                             remote_message_header *hdr ATTRIBUTE_UNUSED,
                              remote_error *rerr,
                              void *args ATTRIBUTE_UNUSED,
                              remote_num_of_networks_ret *ret)
@@ -2313,6 +2389,7 @@ static int
 remoteDispatchNumOfInterfaces (struct qemud_server *server ATTRIBUTE_UNUSED,
                                struct qemud_client *client ATTRIBUTE_UNUSED,
                                virConnectPtr conn,
+                               remote_message_header *hdr ATTRIBUTE_UNUSED,
                                remote_error *rerr,
                                void *args ATTRIBUTE_UNUSED,
                                remote_num_of_interfaces_ret *ret)
@@ -2331,6 +2408,7 @@ static int
 remoteDispatchListInterfaces (struct qemud_server *server ATTRIBUTE_UNUSED,
                               struct qemud_client *client ATTRIBUTE_UNUSED,
                               virConnectPtr conn,
+                              remote_message_header *hdr ATTRIBUTE_UNUSED,
                               remote_error *rerr,
                               remote_list_interfaces_args *args,
                               remote_list_interfaces_ret *ret)
@@ -2364,6 +2442,7 @@ static int
 remoteDispatchNumOfDefinedInterfaces (struct qemud_server *server ATTRIBUTE_UNUSED,
                                       struct qemud_client *client ATTRIBUTE_UNUSED,
                                       virConnectPtr conn,
+                                      remote_message_header *hdr ATTRIBUTE_UNUSED,
                                       remote_error *rerr,
                                       void *args ATTRIBUTE_UNUSED,
                                       remote_num_of_defined_interfaces_ret *ret)
@@ -2382,6 +2461,7 @@ static int
 remoteDispatchListDefinedInterfaces (struct qemud_server *server ATTRIBUTE_UNUSED,
                                      struct qemud_client *client ATTRIBUTE_UNUSED,
                                      virConnectPtr conn,
+                                     remote_message_header *hdr ATTRIBUTE_UNUSED,
                                      remote_error *rerr,
                                      remote_list_defined_interfaces_args *args,
                                      remote_list_defined_interfaces_ret *ret)
@@ -2415,6 +2495,7 @@ static int
 remoteDispatchInterfaceLookupByName (struct qemud_server *server ATTRIBUTE_UNUSED,
                                      struct qemud_client *client ATTRIBUTE_UNUSED,
                                      virConnectPtr conn,
+                                     remote_message_header *hdr ATTRIBUTE_UNUSED,
                                      remote_error *rerr,
                                      remote_interface_lookup_by_name_args *args,
                                      remote_interface_lookup_by_name_ret *ret)
@@ -2436,6 +2517,7 @@ static int
 remoteDispatchInterfaceLookupByMacString (struct qemud_server *server ATTRIBUTE_UNUSED,
                                           struct qemud_client *client ATTRIBUTE_UNUSED,
                                           virConnectPtr conn,
+                                          remote_message_header *hdr ATTRIBUTE_UNUSED,
                                           remote_error *rerr,
                                           remote_interface_lookup_by_mac_string_args *args,
                                           remote_interface_lookup_by_mac_string_ret *ret)
@@ -2457,6 +2539,7 @@ static int
 remoteDispatchInterfaceGetXmlDesc (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    remote_interface_get_xml_desc_args *args,
                                    remote_interface_get_xml_desc_ret *ret)
@@ -2484,6 +2567,7 @@ static int
 remoteDispatchInterfaceDefineXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_interface_define_xml_args *args,
                                   remote_interface_define_xml_ret *ret)
@@ -2503,11 +2587,12 @@ remoteDispatchInterfaceDefineXml (struct qemud_server *server ATTRIBUTE_UNUSED,
 
 static int
 remoteDispatchInterfaceUndefine (struct qemud_server *server ATTRIBUTE_UNUSED,
-                               struct qemud_client *client ATTRIBUTE_UNUSED,
-                               virConnectPtr conn,
-                               remote_error *rerr,
-                               remote_interface_undefine_args *args,
-                               void *ret ATTRIBUTE_UNUSED)
+                                 struct qemud_client *client ATTRIBUTE_UNUSED,
+                                 virConnectPtr conn,
+                                 remote_message_header *hdr ATTRIBUTE_UNUSED,
+                                 remote_error *rerr,
+                                 remote_interface_undefine_args *args,
+                                 void *ret ATTRIBUTE_UNUSED)
 {
     virInterfacePtr iface;
 
@@ -2528,11 +2613,12 @@ remoteDispatchInterfaceUndefine (struct qemud_server *server ATTRIBUTE_UNUSED,
 
 static int
 remoteDispatchInterfaceCreate (struct qemud_server *server ATTRIBUTE_UNUSED,
-                             struct qemud_client *client ATTRIBUTE_UNUSED,
-                             virConnectPtr conn,
-                             remote_error *rerr,
-                             remote_interface_create_args *args,
-                             void *ret ATTRIBUTE_UNUSED)
+                               struct qemud_client *client ATTRIBUTE_UNUSED,
+                               virConnectPtr conn,
+                               remote_message_header *hdr ATTRIBUTE_UNUSED,
+                               remote_error *rerr,
+                               remote_interface_create_args *args,
+                               void *ret ATTRIBUTE_UNUSED)
 {
     virInterfacePtr iface;
 
@@ -2553,11 +2639,12 @@ remoteDispatchInterfaceCreate (struct qemud_server *server ATTRIBUTE_UNUSED,
 
 static int
 remoteDispatchInterfaceDestroy (struct qemud_server *server ATTRIBUTE_UNUSED,
-                              struct qemud_client *client ATTRIBUTE_UNUSED,
-                              virConnectPtr conn,
-                              remote_error *rerr,
-                              remote_interface_destroy_args *args,
-                              void *ret ATTRIBUTE_UNUSED)
+                                struct qemud_client *client ATTRIBUTE_UNUSED,
+                                virConnectPtr conn,
+                                remote_message_header *hdr ATTRIBUTE_UNUSED,
+                                remote_error *rerr,
+                                remote_interface_destroy_args *args,
+                                void *ret ATTRIBUTE_UNUSED)
 {
     virInterfacePtr iface;
 
@@ -2582,6 +2669,7 @@ static int
 remoteDispatchAuthList (struct qemud_server *server,
                         struct qemud_client *client,
                         virConnectPtr conn ATTRIBUTE_UNUSED,
+                        remote_message_header *hdr ATTRIBUTE_UNUSED,
                         remote_error *rerr,
                         void *args ATTRIBUTE_UNUSED,
                         remote_auth_list_ret *ret)
@@ -2640,6 +2728,7 @@ static int
 remoteDispatchAuthSaslInit (struct qemud_server *server,
                             struct qemud_client *client,
                             virConnectPtr conn ATTRIBUTE_UNUSED,
+                            remote_message_header *hdr ATTRIBUTE_UNUSED,
                             remote_error *rerr,
                             void *args ATTRIBUTE_UNUSED,
                             remote_auth_sasl_init_ret *ret)
@@ -2897,6 +2986,7 @@ static int
 remoteDispatchAuthSaslStart (struct qemud_server *server,
                              struct qemud_client *client,
                              virConnectPtr conn ATTRIBUTE_UNUSED,
+                             remote_message_header *hdr ATTRIBUTE_UNUSED,
                              remote_error *rerr,
                              remote_auth_sasl_start_args *args,
                              remote_auth_sasl_start_ret *ret)
@@ -2984,6 +3074,7 @@ static int
 remoteDispatchAuthSaslStep (struct qemud_server *server,
                             struct qemud_client *client,
                             virConnectPtr conn ATTRIBUTE_UNUSED,
+                            remote_message_header *hdr ATTRIBUTE_UNUSED,
                             remote_error *rerr,
                             remote_auth_sasl_step_args *args,
                             remote_auth_sasl_step_ret *ret)
@@ -3073,6 +3164,7 @@ static int
 remoteDispatchAuthSaslInit (struct qemud_server *server ATTRIBUTE_UNUSED,
                             struct qemud_client *client ATTRIBUTE_UNUSED,
                             virConnectPtr conn ATTRIBUTE_UNUSED,
+                            remote_message_header *hdr ATTRIBUTE_UNUSED,
                             remote_error *rerr,
                             void *args ATTRIBUTE_UNUSED,
                             remote_auth_sasl_init_ret *ret ATTRIBUTE_UNUSED)
@@ -3086,6 +3178,7 @@ static int
 remoteDispatchAuthSaslStart (struct qemud_server *server ATTRIBUTE_UNUSED,
                              struct qemud_client *client ATTRIBUTE_UNUSED,
                              virConnectPtr conn ATTRIBUTE_UNUSED,
+                             remote_message_header *hdr ATTRIBUTE_UNUSED,
                              remote_error *rerr,
                              remote_auth_sasl_start_args *args ATTRIBUTE_UNUSED,
                              remote_auth_sasl_start_ret *ret ATTRIBUTE_UNUSED)
@@ -3099,6 +3192,7 @@ static int
 remoteDispatchAuthSaslStep (struct qemud_server *server ATTRIBUTE_UNUSED,
                             struct qemud_client *client ATTRIBUTE_UNUSED,
                             virConnectPtr conn ATTRIBUTE_UNUSED,
+                            remote_message_header *hdr ATTRIBUTE_UNUSED,
                             remote_error *rerr,
                             remote_auth_sasl_step_args *args ATTRIBUTE_UNUSED,
                             remote_auth_sasl_step_ret *ret ATTRIBUTE_UNUSED)
@@ -3115,6 +3209,7 @@ static int
 remoteDispatchAuthPolkit (struct qemud_server *server,
                           struct qemud_client *client,
                           virConnectPtr conn ATTRIBUTE_UNUSED,
+                          remote_message_header *hdr ATTRIBUTE_UNUSED,
                           remote_error *rerr,
                           void *args ATTRIBUTE_UNUSED,
                           remote_auth_polkit_ret *ret)
@@ -3188,6 +3283,7 @@ static int
 remoteDispatchAuthPolkit (struct qemud_server *server,
                           struct qemud_client *client,
                           virConnectPtr conn ATTRIBUTE_UNUSED,
+                          remote_message_header *hdr ATTRIBUTE_UNUSED,
                           remote_error *rerr,
                           void *args ATTRIBUTE_UNUSED,
                           remote_auth_polkit_ret *ret)
@@ -3300,6 +3396,7 @@ static int
 remoteDispatchAuthPolkit (struct qemud_server *server ATTRIBUTE_UNUSED,
                           struct qemud_client *client ATTRIBUTE_UNUSED,
                           virConnectPtr conn ATTRIBUTE_UNUSED,
+                          remote_message_header *hdr ATTRIBUTE_UNUSED,
                           remote_error *rerr,
                           void *args ATTRIBUTE_UNUSED,
                           remote_auth_polkit_ret *ret ATTRIBUTE_UNUSED)
@@ -3320,6 +3417,7 @@ static int
 remoteDispatchListDefinedStoragePools (struct qemud_server *server ATTRIBUTE_UNUSED,
                                        struct qemud_client *client ATTRIBUTE_UNUSED,
                                        virConnectPtr conn,
+                                       remote_message_header *hdr ATTRIBUTE_UNUSED,
                                        remote_error *rerr,
                                        remote_list_defined_storage_pools_args *args,
                                        remote_list_defined_storage_pools_ret *ret)
@@ -3353,6 +3451,7 @@ static int
 remoteDispatchListStoragePools (struct qemud_server *server ATTRIBUTE_UNUSED,
                                 struct qemud_client *client ATTRIBUTE_UNUSED,
                                 virConnectPtr conn,
+                                remote_message_header *hdr ATTRIBUTE_UNUSED,
                                 remote_error *rerr,
                                 remote_list_storage_pools_args *args,
                                 remote_list_storage_pools_ret *ret)
@@ -3386,6 +3485,7 @@ static int
 remoteDispatchFindStoragePoolSources (struct qemud_server *server ATTRIBUTE_UNUSED,
                                       struct qemud_client *client ATTRIBUTE_UNUSED,
                                       virConnectPtr conn,
+                                      remote_message_header *hdr ATTRIBUTE_UNUSED,
                                       remote_error *rerr,
                                       remote_find_storage_pool_sources_args *args,
                                       remote_find_storage_pool_sources_ret *ret)
@@ -3408,6 +3508,7 @@ static int
 remoteDispatchStoragePoolCreate (struct qemud_server *server ATTRIBUTE_UNUSED,
                                  struct qemud_client *client ATTRIBUTE_UNUSED,
                                  virConnectPtr conn,
+                                 remote_message_header *hdr ATTRIBUTE_UNUSED,
                                  remote_error *rerr,
                                  remote_storage_pool_create_args *args,
                                  void *ret ATTRIBUTE_UNUSED)
@@ -3433,6 +3534,7 @@ static int
 remoteDispatchStoragePoolCreateXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                                     struct qemud_client *client ATTRIBUTE_UNUSED,
                                     virConnectPtr conn,
+                                    remote_message_header *hdr ATTRIBUTE_UNUSED,
                                     remote_error *rerr,
                                     remote_storage_pool_create_xml_args *args,
                                     remote_storage_pool_create_xml_ret *ret)
@@ -3454,6 +3556,7 @@ static int
 remoteDispatchStoragePoolDefineXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                                     struct qemud_client *client ATTRIBUTE_UNUSED,
                                     virConnectPtr conn,
+                                    remote_message_header *hdr ATTRIBUTE_UNUSED,
                                     remote_error *rerr,
                                     remote_storage_pool_define_xml_args *args,
                                     remote_storage_pool_define_xml_ret *ret)
@@ -3475,6 +3578,7 @@ static int
 remoteDispatchStoragePoolBuild (struct qemud_server *server ATTRIBUTE_UNUSED,
                                 struct qemud_client *client ATTRIBUTE_UNUSED,
                                 virConnectPtr conn,
+                                remote_message_header *hdr ATTRIBUTE_UNUSED,
                                 remote_error *rerr,
                                 remote_storage_pool_build_args *args,
                                 void *ret ATTRIBUTE_UNUSED)
@@ -3501,6 +3605,7 @@ static int
 remoteDispatchStoragePoolDestroy (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_storage_pool_destroy_args *args,
                                   void *ret ATTRIBUTE_UNUSED)
@@ -3526,6 +3631,7 @@ static int
 remoteDispatchStoragePoolDelete (struct qemud_server *server ATTRIBUTE_UNUSED,
                                  struct qemud_client *client ATTRIBUTE_UNUSED,
                                  virConnectPtr conn,
+                                 remote_message_header *hdr ATTRIBUTE_UNUSED,
                                  remote_error *rerr,
                                  remote_storage_pool_delete_args *args,
                                  void *ret ATTRIBUTE_UNUSED)
@@ -3551,6 +3657,7 @@ static int
 remoteDispatchStoragePoolRefresh (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_storage_pool_refresh_args *args,
                                   void *ret ATTRIBUTE_UNUSED)
@@ -3576,6 +3683,7 @@ static int
 remoteDispatchStoragePoolGetInfo (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_storage_pool_get_info_args *args,
                                   remote_storage_pool_get_info_ret *ret)
@@ -3609,6 +3717,7 @@ static int
 remoteDispatchStoragePoolDumpXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_storage_pool_dump_xml_args *args,
                                   remote_storage_pool_dump_xml_ret *ret)
@@ -3636,6 +3745,7 @@ static int
 remoteDispatchStoragePoolGetAutostart (struct qemud_server *server ATTRIBUTE_UNUSED,
                                        struct qemud_client *client ATTRIBUTE_UNUSED,
                                        virConnectPtr conn,
+                                       remote_message_header *hdr ATTRIBUTE_UNUSED,
                                        remote_error *rerr,
                                        remote_storage_pool_get_autostart_args *args,
                                        remote_storage_pool_get_autostart_ret *ret)
@@ -3662,6 +3772,7 @@ static int
 remoteDispatchStoragePoolLookupByName (struct qemud_server *server ATTRIBUTE_UNUSED,
                                        struct qemud_client *client ATTRIBUTE_UNUSED,
                                        virConnectPtr conn,
+                                       remote_message_header *hdr ATTRIBUTE_UNUSED,
                                        remote_error *rerr,
                                        remote_storage_pool_lookup_by_name_args *args,
                                        remote_storage_pool_lookup_by_name_ret *ret)
@@ -3683,6 +3794,7 @@ static int
 remoteDispatchStoragePoolLookupByUuid (struct qemud_server *server ATTRIBUTE_UNUSED,
                                        struct qemud_client *client ATTRIBUTE_UNUSED,
                                        virConnectPtr conn,
+                                       remote_message_header *hdr ATTRIBUTE_UNUSED,
                                        remote_error *rerr,
                                        remote_storage_pool_lookup_by_uuid_args *args,
                                        remote_storage_pool_lookup_by_uuid_ret *ret)
@@ -3704,6 +3816,7 @@ static int
 remoteDispatchStoragePoolLookupByVolume (struct qemud_server *server ATTRIBUTE_UNUSED,
                                          struct qemud_client *client ATTRIBUTE_UNUSED,
                                          virConnectPtr conn,
+                                         remote_message_header *hdr ATTRIBUTE_UNUSED,
                                          remote_error *rerr,
                                          remote_storage_pool_lookup_by_volume_args *args,
                                          remote_storage_pool_lookup_by_volume_ret *ret)
@@ -3733,6 +3846,7 @@ static int
 remoteDispatchStoragePoolSetAutostart (struct qemud_server *server ATTRIBUTE_UNUSED,
                                        struct qemud_client *client ATTRIBUTE_UNUSED,
                                        virConnectPtr conn,
+                                       remote_message_header *hdr ATTRIBUTE_UNUSED,
                                        remote_error *rerr,
                                        remote_storage_pool_set_autostart_args *args,
                                        void *ret ATTRIBUTE_UNUSED)
@@ -3758,6 +3872,7 @@ static int
 remoteDispatchStoragePoolUndefine (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    remote_storage_pool_undefine_args *args,
                                    void *ret ATTRIBUTE_UNUSED)
@@ -3783,6 +3898,7 @@ static int
 remoteDispatchNumOfStoragePools (struct qemud_server *server ATTRIBUTE_UNUSED,
                                  struct qemud_client *client ATTRIBUTE_UNUSED,
                                  virConnectPtr conn,
+                                 remote_message_header *hdr ATTRIBUTE_UNUSED,
                                  remote_error *rerr,
                                  void *args ATTRIBUTE_UNUSED,
                                  remote_num_of_storage_pools_ret *ret)
@@ -3801,6 +3917,7 @@ static int
 remoteDispatchNumOfDefinedStoragePools (struct qemud_server *server ATTRIBUTE_UNUSED,
                                         struct qemud_client *client ATTRIBUTE_UNUSED,
                                         virConnectPtr conn,
+                                        remote_message_header *hdr ATTRIBUTE_UNUSED,
                                         remote_error *rerr,
                                         void *args ATTRIBUTE_UNUSED,
                                         remote_num_of_defined_storage_pools_ret *ret)
@@ -3819,6 +3936,7 @@ static int
 remoteDispatchStoragePoolListVolumes (struct qemud_server *server ATTRIBUTE_UNUSED,
                                       struct qemud_client *client ATTRIBUTE_UNUSED,
                                       virConnectPtr conn,
+                                      remote_message_header *hdr ATTRIBUTE_UNUSED,
                                       remote_error *rerr,
                                       remote_storage_pool_list_volumes_args *args,
                                       remote_storage_pool_list_volumes_ret *ret)
@@ -3862,6 +3980,7 @@ static int
 remoteDispatchStoragePoolNumOfVolumes (struct qemud_server *server ATTRIBUTE_UNUSED,
                                        struct qemud_client *client ATTRIBUTE_UNUSED,
                                        virConnectPtr conn,
+                                       remote_message_header *hdr ATTRIBUTE_UNUSED,
                                        remote_error *rerr,
                                        remote_storage_pool_num_of_volumes_args *args,
                                        remote_storage_pool_num_of_volumes_ret *ret)
@@ -3895,6 +4014,7 @@ static int
 remoteDispatchStorageVolCreateXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    remote_storage_vol_create_xml_args *args,
                                    remote_storage_vol_create_xml_ret *ret)
@@ -3924,6 +4044,7 @@ static int
 remoteDispatchStorageVolCreateXmlFrom (struct qemud_server *server ATTRIBUTE_UNUSED,
                                        struct qemud_client *client ATTRIBUTE_UNUSED,
                                        virConnectPtr conn,
+                                       remote_message_header *hdr ATTRIBUTE_UNUSED,
                                        remote_error *rerr,
                                        remote_storage_vol_create_xml_from_args *args,
                                        remote_storage_vol_create_xml_from_ret *ret)
@@ -3959,6 +4080,7 @@ static int
 remoteDispatchStorageVolDelete (struct qemud_server *server ATTRIBUTE_UNUSED,
                                 struct qemud_client *client ATTRIBUTE_UNUSED,
                                 virConnectPtr conn,
+                                remote_message_header *hdr ATTRIBUTE_UNUSED,
                                 remote_error *rerr,
                                 remote_storage_vol_delete_args *args,
                                 void *ret ATTRIBUTE_UNUSED)
@@ -3984,6 +4106,7 @@ static int
 remoteDispatchStorageVolGetInfo (struct qemud_server *server ATTRIBUTE_UNUSED,
                                  struct qemud_client *client ATTRIBUTE_UNUSED,
                                  virConnectPtr conn,
+                                 remote_message_header *hdr ATTRIBUTE_UNUSED,
                                  remote_error *rerr,
                                  remote_storage_vol_get_info_args *args,
                                  remote_storage_vol_get_info_ret *ret)
@@ -4016,6 +4139,7 @@ static int
 remoteDispatchStorageVolDumpXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                                  struct qemud_client *client ATTRIBUTE_UNUSED,
                                  virConnectPtr conn,
+                                 remote_message_header *hdr ATTRIBUTE_UNUSED,
                                  remote_error *rerr,
                                  remote_storage_vol_dump_xml_args *args,
                                  remote_storage_vol_dump_xml_ret *ret)
@@ -4044,6 +4168,7 @@ static int
 remoteDispatchStorageVolGetPath (struct qemud_server *server ATTRIBUTE_UNUSED,
                                  struct qemud_client *client ATTRIBUTE_UNUSED,
                                  virConnectPtr conn,
+                                 remote_message_header *hdr ATTRIBUTE_UNUSED,
                                  remote_error *rerr,
                                  remote_storage_vol_get_path_args *args,
                                  remote_storage_vol_get_path_ret *ret)
@@ -4072,6 +4197,7 @@ static int
 remoteDispatchStorageVolLookupByName (struct qemud_server *server ATTRIBUTE_UNUSED,
                                       struct qemud_client *client ATTRIBUTE_UNUSED,
                                       virConnectPtr conn,
+                                      remote_message_header *hdr ATTRIBUTE_UNUSED,
                                       remote_error *rerr,
                                       remote_storage_vol_lookup_by_name_args *args,
                                       remote_storage_vol_lookup_by_name_ret *ret)
@@ -4101,6 +4227,7 @@ static int
 remoteDispatchStorageVolLookupByKey (struct qemud_server *server ATTRIBUTE_UNUSED,
                                      struct qemud_client *client ATTRIBUTE_UNUSED,
                                      virConnectPtr conn,
+                                     remote_message_header *hdr ATTRIBUTE_UNUSED,
                                      remote_error *rerr,
                                      remote_storage_vol_lookup_by_key_args *args,
                                      remote_storage_vol_lookup_by_key_ret *ret)
@@ -4123,6 +4250,7 @@ static int
 remoteDispatchStorageVolLookupByPath (struct qemud_server *server ATTRIBUTE_UNUSED,
                                       struct qemud_client *client ATTRIBUTE_UNUSED,
                                       virConnectPtr conn,
+                                      remote_message_header *hdr ATTRIBUTE_UNUSED,
                                       remote_error *rerr,
                                       remote_storage_vol_lookup_by_path_args *args,
                                       remote_storage_vol_lookup_by_path_ret *ret)
@@ -4149,6 +4277,7 @@ static int
 remoteDispatchNodeNumOfDevices (struct qemud_server *server ATTRIBUTE_UNUSED,
                                 struct qemud_client *client ATTRIBUTE_UNUSED,
                                 virConnectPtr conn,
+                                remote_message_header *hdr ATTRIBUTE_UNUSED,
                                 remote_error *rerr,
                                 remote_node_num_of_devices_args *args,
                                 remote_node_num_of_devices_ret *ret)
@@ -4171,6 +4300,7 @@ static int
 remoteDispatchNodeListDevices (struct qemud_server *server ATTRIBUTE_UNUSED,
                                struct qemud_client *client ATTRIBUTE_UNUSED,
                                virConnectPtr conn,
+                               remote_message_header *hdr ATTRIBUTE_UNUSED,
                                remote_error *rerr,
                                remote_node_list_devices_args *args,
                                remote_node_list_devices_ret *ret)
@@ -4207,6 +4337,7 @@ static int
 remoteDispatchNodeDeviceLookupByName (struct qemud_server *server ATTRIBUTE_UNUSED,
                                       struct qemud_client *client ATTRIBUTE_UNUSED,
                                       virConnectPtr conn,
+                                      remote_message_header *hdr ATTRIBUTE_UNUSED,
                                       remote_error *rerr,
                                       remote_node_device_lookup_by_name_args *args,
                                       remote_node_device_lookup_by_name_ret *ret)
@@ -4231,6 +4362,7 @@ static int
 remoteDispatchNodeDeviceDumpXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                                  struct qemud_client *client ATTRIBUTE_UNUSED,
                                  virConnectPtr conn,
+                                 remote_message_header *hdr ATTRIBUTE_UNUSED,
                                  remote_error *rerr,
                                  remote_node_device_dump_xml_args *args,
                                  remote_node_device_dump_xml_ret *ret)
@@ -4260,6 +4392,7 @@ static int
 remoteDispatchNodeDeviceGetParent (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    remote_node_device_get_parent_args *args,
                                    remote_node_device_get_parent_ret *ret)
@@ -4302,6 +4435,7 @@ static int
 remoteDispatchNodeDeviceNumOfCaps (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
                                    virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
                                    remote_error *rerr,
                                    remote_node_device_num_of_caps_args *args,
                                    remote_node_device_num_of_caps_ret *ret)
@@ -4330,6 +4464,7 @@ static int
 remoteDispatchNodeDeviceListCaps (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_node_device_list_caps_args *args,
                                   remote_node_device_list_caps_ret *ret)
@@ -4372,6 +4507,7 @@ static int
 remoteDispatchNodeDeviceDettach (struct qemud_server *server ATTRIBUTE_UNUSED,
                                  struct qemud_client *client ATTRIBUTE_UNUSED,
                                  virConnectPtr conn,
+                                 remote_message_header *hdr ATTRIBUTE_UNUSED,
                                  remote_error *rerr,
                                  remote_node_device_dettach_args *args,
                                  void *ret ATTRIBUTE_UNUSED)
@@ -4398,6 +4534,7 @@ static int
 remoteDispatchNodeDeviceReAttach (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_node_device_re_attach_args *args,
                                   void *ret ATTRIBUTE_UNUSED)
@@ -4424,6 +4561,7 @@ static int
 remoteDispatchNodeDeviceReset (struct qemud_server *server ATTRIBUTE_UNUSED,
                                struct qemud_client *client ATTRIBUTE_UNUSED,
                                virConnectPtr conn,
+                               remote_message_header *hdr ATTRIBUTE_UNUSED,
                                remote_error *rerr,
                                remote_node_device_reset_args *args,
                                void *ret ATTRIBUTE_UNUSED)
@@ -4450,6 +4588,7 @@ static int
 remoteDispatchNodeDeviceCreateXml(struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
                                   virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
                                   remote_error *rerr,
                                   remote_node_device_create_xml_args *args,
                                   remote_node_device_create_xml_ret *ret)
@@ -4473,6 +4612,7 @@ static int
 remoteDispatchNodeDeviceDestroy(struct qemud_server *server ATTRIBUTE_UNUSED,
                                 struct qemud_client *client ATTRIBUTE_UNUSED,
                                 virConnectPtr conn,
+                                remote_message_header *hdr ATTRIBUTE_UNUSED,
                                 remote_error *rerr,
                                 remote_node_device_destroy_args *args,
                                 void *ret ATTRIBUTE_UNUSED)
@@ -4502,6 +4642,7 @@ static int
 remoteDispatchDomainEventsRegister (struct qemud_server *server ATTRIBUTE_UNUSED,
                                     struct qemud_client *client ATTRIBUTE_UNUSED,
                                     virConnectPtr conn,
+                                    remote_message_header *hdr ATTRIBUTE_UNUSED,
                                     remote_error *rerr ATTRIBUTE_UNUSED,
                                     void *args ATTRIBUTE_UNUSED,
                                     remote_domain_events_register_ret *ret ATTRIBUTE_UNUSED)
@@ -4521,6 +4662,7 @@ static int
 remoteDispatchDomainEventsDeregister (struct qemud_server *server ATTRIBUTE_UNUSED,
                                       struct qemud_client *client ATTRIBUTE_UNUSED,
                                       virConnectPtr conn,
+                                      remote_message_header *hdr ATTRIBUTE_UNUSED,
                                       remote_error *rerr ATTRIBUTE_UNUSED,
                                       void *args ATTRIBUTE_UNUSED,
                                       remote_domain_events_deregister_ret *ret ATTRIBUTE_UNUSED)
@@ -4595,7 +4737,9 @@ error:
 static int
 remoteDispatchNumOfSecrets (struct qemud_server *server ATTRIBUTE_UNUSED,
                             struct qemud_client *client ATTRIBUTE_UNUSED,
-                            virConnectPtr conn, remote_error *err,
+                            virConnectPtr conn,
+                            remote_message_header *hdr ATTRIBUTE_UNUSED,
+                            remote_error *err,
                             void *args ATTRIBUTE_UNUSED,
                             remote_num_of_secrets_ret *ret)
 {
@@ -4611,7 +4755,9 @@ remoteDispatchNumOfSecrets (struct qemud_server *server ATTRIBUTE_UNUSED,
 static int
 remoteDispatchListSecrets (struct qemud_server *server ATTRIBUTE_UNUSED,
                            struct qemud_client *client ATTRIBUTE_UNUSED,
-                           virConnectPtr conn, remote_error *err,
+                           virConnectPtr conn,
+                           remote_message_header *hdr ATTRIBUTE_UNUSED,
+                           remote_error *err,
                            remote_list_secrets_args *args,
                            remote_list_secrets_ret *ret)
 {
@@ -4640,7 +4786,9 @@ remoteDispatchListSecrets (struct qemud_server *server ATTRIBUTE_UNUSED,
 static int
 remoteDispatchSecretDefineXml (struct qemud_server *server ATTRIBUTE_UNUSED,
                                struct qemud_client *client ATTRIBUTE_UNUSED,
-                               virConnectPtr conn, remote_error *err,
+                               virConnectPtr conn,
+                               remote_message_header *hdr ATTRIBUTE_UNUSED,
+                               remote_error *err,
                                remote_secret_define_xml_args *args,
                                remote_secret_define_xml_ret *ret)
 {
@@ -4660,7 +4808,9 @@ remoteDispatchSecretDefineXml (struct qemud_server *server ATTRIBUTE_UNUSED,
 static int
 remoteDispatchSecretGetValue (struct qemud_server *server ATTRIBUTE_UNUSED,
                               struct qemud_client *client ATTRIBUTE_UNUSED,
-                              virConnectPtr conn, remote_error *err,
+                              virConnectPtr conn,
+                              remote_message_header *hdr ATTRIBUTE_UNUSED,
+                              remote_error *err,
                               remote_secret_get_value_args *args,
                               remote_secret_get_value_ret *ret)
 {
@@ -4690,7 +4840,9 @@ remoteDispatchSecretGetValue (struct qemud_server *server ATTRIBUTE_UNUSED,
 static int
 remoteDispatchSecretGetXmlDesc (struct qemud_server *server ATTRIBUTE_UNUSED,
                                 struct qemud_client *client ATTRIBUTE_UNUSED,
-                                virConnectPtr conn, remote_error *err,
+                                virConnectPtr conn,
+                                remote_message_header *hdr ATTRIBUTE_UNUSED,
+                                remote_error *err,
                                 remote_secret_get_xml_desc_args *args,
                                 remote_secret_get_xml_desc_ret *ret)
 {
@@ -4714,7 +4866,9 @@ remoteDispatchSecretGetXmlDesc (struct qemud_server *server ATTRIBUTE_UNUSED,
 static int
 remoteDispatchSecretLookupByUuid (struct qemud_server *server ATTRIBUTE_UNUSED,
                                   struct qemud_client *client ATTRIBUTE_UNUSED,
-                                  virConnectPtr conn, remote_error *err,
+                                  virConnectPtr conn,
+                                  remote_message_header *hdr ATTRIBUTE_UNUSED,
+                                  remote_error *err,
                                   remote_secret_lookup_by_uuid_args *args,
                                   remote_secret_lookup_by_uuid_ret *ret)
 {
@@ -4734,7 +4888,9 @@ remoteDispatchSecretLookupByUuid (struct qemud_server *server ATTRIBUTE_UNUSED,
 static int
 remoteDispatchSecretSetValue (struct qemud_server *server ATTRIBUTE_UNUSED,
                               struct qemud_client *client ATTRIBUTE_UNUSED,
-                              virConnectPtr conn, remote_error *err,
+                              virConnectPtr conn,
+                              remote_message_header *hdr ATTRIBUTE_UNUSED,
+                              remote_error *err,
                               remote_secret_set_value_args *args,
                               void *ret ATTRIBUTE_UNUSED)
 {
@@ -4759,7 +4915,9 @@ remoteDispatchSecretSetValue (struct qemud_server *server ATTRIBUTE_UNUSED,
 static int
 remoteDispatchSecretUndefine (struct qemud_server *server ATTRIBUTE_UNUSED,
                               struct qemud_client *client ATTRIBUTE_UNUSED,
-                              virConnectPtr conn, remote_error *err,
+                              virConnectPtr conn,
+                              remote_message_header *hdr ATTRIBUTE_UNUSED,
+                              remote_error *err,
                               remote_secret_undefine_args *args,
                               void *ret ATTRIBUTE_UNUSED)
 {
@@ -4783,7 +4941,9 @@ remoteDispatchSecretUndefine (struct qemud_server *server ATTRIBUTE_UNUSED,
 static int
 remoteDispatchSecretLookupByUsage (struct qemud_server *server ATTRIBUTE_UNUSED,
                                    struct qemud_client *client ATTRIBUTE_UNUSED,
-                                   virConnectPtr conn, remote_error *err,
+                                   virConnectPtr conn,
+                                   remote_message_header *hdr ATTRIBUTE_UNUSED,
+                                   remote_error *err,
                                    remote_secret_lookup_by_usage_args *args,
                                    remote_secret_lookup_by_usage_ret *ret)
 {
diff --git a/daemon/remote.h b/daemon/remote.h
index 5df601b..24e8c73 100644
--- a/daemon/remote.h
+++ b/daemon/remote.h
@@ -54,6 +54,7 @@ typedef union {
 typedef int (*dispatch_fn) (struct qemud_server *server,
                             struct qemud_client *client,
                             virConnectPtr conn,
+                            remote_message_header *hdr,
                             remote_error *err,
                             dispatch_args *args,
                             dispatch_ret *ret);
diff --git a/daemon/remote_dispatch_prototypes.h b/daemon/remote_dispatch_prototypes.h
index 0605542..16e8bb0 100644
--- a/daemon/remote_dispatch_prototypes.h
+++ b/daemon/remote_dispatch_prototypes.h
@@ -6,6 +6,7 @@ static int remoteDispatchAuthList(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_auth_list_ret *ret);
@@ -13,6 +14,7 @@ static int remoteDispatchAuthPolkit(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_auth_polkit_ret *ret);
@@ -20,6 +22,7 @@ static int remoteDispatchAuthSaslInit(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_auth_sasl_init_ret *ret);
@@ -27,6 +30,7 @@ static int remoteDispatchAuthSaslStart(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_auth_sasl_start_args *args,
     remote_auth_sasl_start_ret *ret);
@@ -34,6 +38,7 @@ static int remoteDispatchAuthSaslStep(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_auth_sasl_step_args *args,
     remote_auth_sasl_step_ret *ret);
@@ -41,6 +46,7 @@ static int remoteDispatchClose(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     void *ret);
@@ -48,6 +54,7 @@ static int remoteDispatchDomainAttachDevice(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_attach_device_args *args,
     void *ret);
@@ -55,6 +62,7 @@ static int remoteDispatchDomainBlockPeek(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_block_peek_args *args,
     remote_domain_block_peek_ret *ret);
@@ -62,6 +70,7 @@ static int remoteDispatchDomainBlockStats(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_block_stats_args *args,
     remote_domain_block_stats_ret *ret);
@@ -69,6 +78,7 @@ static int remoteDispatchDomainCoreDump(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_core_dump_args *args,
     void *ret);
@@ -76,6 +86,7 @@ static int remoteDispatchDomainCreate(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_create_args *args,
     void *ret);
@@ -83,6 +94,7 @@ static int remoteDispatchDomainCreateXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_create_xml_args *args,
     remote_domain_create_xml_ret *ret);
@@ -90,6 +102,7 @@ static int remoteDispatchDomainDefineXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_define_xml_args *args,
     remote_domain_define_xml_ret *ret);
@@ -97,6 +110,7 @@ static int remoteDispatchDomainDestroy(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_destroy_args *args,
     void *ret);
@@ -104,6 +118,7 @@ static int remoteDispatchDomainDetachDevice(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_detach_device_args *args,
     void *ret);
@@ -111,6 +126,7 @@ static int remoteDispatchDomainDumpXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_dump_xml_args *args,
     remote_domain_dump_xml_ret *ret);
@@ -118,6 +134,7 @@ static int remoteDispatchDomainEventsDeregister(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_domain_events_deregister_ret *ret);
@@ -125,6 +142,7 @@ static int remoteDispatchDomainEventsRegister(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_domain_events_register_ret *ret);
@@ -132,6 +150,7 @@ static int remoteDispatchDomainGetAutostart(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_get_autostart_args *args,
     remote_domain_get_autostart_ret *ret);
@@ -139,6 +158,7 @@ static int remoteDispatchDomainGetInfo(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_get_info_args *args,
     remote_domain_get_info_ret *ret);
@@ -146,6 +166,7 @@ static int remoteDispatchDomainGetMaxMemory(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_get_max_memory_args *args,
     remote_domain_get_max_memory_ret *ret);
@@ -153,6 +174,7 @@ static int remoteDispatchDomainGetMaxVcpus(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_get_max_vcpus_args *args,
     remote_domain_get_max_vcpus_ret *ret);
@@ -160,6 +182,7 @@ static int remoteDispatchDomainGetOsType(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_get_os_type_args *args,
     remote_domain_get_os_type_ret *ret);
@@ -167,6 +190,7 @@ static int remoteDispatchDomainGetSchedulerParameters(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_get_scheduler_parameters_args *args,
     remote_domain_get_scheduler_parameters_ret *ret);
@@ -174,6 +198,7 @@ static int remoteDispatchDomainGetSchedulerType(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_get_scheduler_type_args *args,
     remote_domain_get_scheduler_type_ret *ret);
@@ -181,6 +206,7 @@ static int remoteDispatchDomainGetSecurityLabel(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_get_security_label_args *args,
     remote_domain_get_security_label_ret *ret);
@@ -188,6 +214,7 @@ static int remoteDispatchDomainGetVcpus(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_get_vcpus_args *args,
     remote_domain_get_vcpus_ret *ret);
@@ -195,6 +222,7 @@ static int remoteDispatchDomainInterfaceStats(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_interface_stats_args *args,
     remote_domain_interface_stats_ret *ret);
@@ -202,6 +230,7 @@ static int remoteDispatchDomainLookupById(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_lookup_by_id_args *args,
     remote_domain_lookup_by_id_ret *ret);
@@ -209,6 +238,7 @@ static int remoteDispatchDomainLookupByName(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_lookup_by_name_args *args,
     remote_domain_lookup_by_name_ret *ret);
@@ -216,6 +246,7 @@ static int remoteDispatchDomainLookupByUuid(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_lookup_by_uuid_args *args,
     remote_domain_lookup_by_uuid_ret *ret);
@@ -223,6 +254,7 @@ static int remoteDispatchDomainMemoryPeek(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_memory_peek_args *args,
     remote_domain_memory_peek_ret *ret);
@@ -230,6 +262,7 @@ static int remoteDispatchDomainMigrateFinish(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_migrate_finish_args *args,
     remote_domain_migrate_finish_ret *ret);
@@ -237,6 +270,7 @@ static int remoteDispatchDomainMigrateFinish2(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_migrate_finish2_args *args,
     remote_domain_migrate_finish2_ret *ret);
@@ -244,6 +278,7 @@ static int remoteDispatchDomainMigratePerform(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_migrate_perform_args *args,
     void *ret);
@@ -251,6 +286,7 @@ static int remoteDispatchDomainMigratePrepare(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_migrate_prepare_args *args,
     remote_domain_migrate_prepare_ret *ret);
@@ -258,6 +294,7 @@ static int remoteDispatchDomainMigratePrepare2(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_migrate_prepare2_args *args,
     remote_domain_migrate_prepare2_ret *ret);
@@ -265,6 +302,7 @@ static int remoteDispatchDomainPinVcpu(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_pin_vcpu_args *args,
     void *ret);
@@ -272,6 +310,7 @@ static int remoteDispatchDomainReboot(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_reboot_args *args,
     void *ret);
@@ -279,6 +318,7 @@ static int remoteDispatchDomainRestore(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_restore_args *args,
     void *ret);
@@ -286,6 +326,7 @@ static int remoteDispatchDomainResume(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_resume_args *args,
     void *ret);
@@ -293,6 +334,7 @@ static int remoteDispatchDomainSave(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_save_args *args,
     void *ret);
@@ -300,6 +342,7 @@ static int remoteDispatchDomainSetAutostart(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_set_autostart_args *args,
     void *ret);
@@ -307,6 +350,7 @@ static int remoteDispatchDomainSetMaxMemory(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_set_max_memory_args *args,
     void *ret);
@@ -314,6 +358,7 @@ static int remoteDispatchDomainSetMemory(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_set_memory_args *args,
     void *ret);
@@ -321,6 +366,7 @@ static int remoteDispatchDomainSetSchedulerParameters(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_set_scheduler_parameters_args *args,
     void *ret);
@@ -328,6 +374,7 @@ static int remoteDispatchDomainSetVcpus(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_set_vcpus_args *args,
     void *ret);
@@ -335,6 +382,7 @@ static int remoteDispatchDomainShutdown(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_shutdown_args *args,
     void *ret);
@@ -342,6 +390,7 @@ static int remoteDispatchDomainSuspend(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_suspend_args *args,
     void *ret);
@@ -349,6 +398,7 @@ static int remoteDispatchDomainUndefine(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_undefine_args *args,
     void *ret);
@@ -356,6 +406,7 @@ static int remoteDispatchDomainXmlFromNative(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_xml_from_native_args *args,
     remote_domain_xml_from_native_ret *ret);
@@ -363,6 +414,7 @@ static int remoteDispatchDomainXmlToNative(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_domain_xml_to_native_args *args,
     remote_domain_xml_to_native_ret *ret);
@@ -370,6 +422,7 @@ static int remoteDispatchFindStoragePoolSources(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_find_storage_pool_sources_args *args,
     remote_find_storage_pool_sources_ret *ret);
@@ -377,6 +430,7 @@ static int remoteDispatchGetCapabilities(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_get_capabilities_ret *ret);
@@ -384,6 +438,7 @@ static int remoteDispatchGetHostname(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_get_hostname_ret *ret);
@@ -391,6 +446,7 @@ static int remoteDispatchGetMaxVcpus(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_get_max_vcpus_args *args,
     remote_get_max_vcpus_ret *ret);
@@ -398,6 +454,7 @@ static int remoteDispatchGetType(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_get_type_ret *ret);
@@ -405,6 +462,7 @@ static int remoteDispatchGetUri(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_get_uri_ret *ret);
@@ -412,6 +470,7 @@ static int remoteDispatchGetVersion(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_get_version_ret *ret);
@@ -419,6 +478,7 @@ static int remoteDispatchInterfaceCreate(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_interface_create_args *args,
     void *ret);
@@ -426,6 +486,7 @@ static int remoteDispatchInterfaceDefineXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_interface_define_xml_args *args,
     remote_interface_define_xml_ret *ret);
@@ -433,6 +494,7 @@ static int remoteDispatchInterfaceDestroy(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_interface_destroy_args *args,
     void *ret);
@@ -440,6 +502,7 @@ static int remoteDispatchInterfaceGetXmlDesc(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_interface_get_xml_desc_args *args,
     remote_interface_get_xml_desc_ret *ret);
@@ -447,6 +510,7 @@ static int remoteDispatchInterfaceLookupByMacString(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_interface_lookup_by_mac_string_args *args,
     remote_interface_lookup_by_mac_string_ret *ret);
@@ -454,6 +518,7 @@ static int remoteDispatchInterfaceLookupByName(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_interface_lookup_by_name_args *args,
     remote_interface_lookup_by_name_ret *ret);
@@ -461,6 +526,7 @@ static int remoteDispatchInterfaceUndefine(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_interface_undefine_args *args,
     void *ret);
@@ -468,6 +534,7 @@ static int remoteDispatchListDefinedDomains(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_list_defined_domains_args *args,
     remote_list_defined_domains_ret *ret);
@@ -475,6 +542,7 @@ static int remoteDispatchListDefinedInterfaces(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_list_defined_interfaces_args *args,
     remote_list_defined_interfaces_ret *ret);
@@ -482,6 +550,7 @@ static int remoteDispatchListDefinedNetworks(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_list_defined_networks_args *args,
     remote_list_defined_networks_ret *ret);
@@ -489,6 +558,7 @@ static int remoteDispatchListDefinedStoragePools(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_list_defined_storage_pools_args *args,
     remote_list_defined_storage_pools_ret *ret);
@@ -496,6 +566,7 @@ static int remoteDispatchListDomains(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_list_domains_args *args,
     remote_list_domains_ret *ret);
@@ -503,6 +574,7 @@ static int remoteDispatchListInterfaces(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_list_interfaces_args *args,
     remote_list_interfaces_ret *ret);
@@ -510,6 +582,7 @@ static int remoteDispatchListNetworks(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_list_networks_args *args,
     remote_list_networks_ret *ret);
@@ -517,6 +590,7 @@ static int remoteDispatchListSecrets(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_list_secrets_args *args,
     remote_list_secrets_ret *ret);
@@ -524,6 +598,7 @@ static int remoteDispatchListStoragePools(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_list_storage_pools_args *args,
     remote_list_storage_pools_ret *ret);
@@ -531,6 +606,7 @@ static int remoteDispatchNetworkCreate(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_network_create_args *args,
     void *ret);
@@ -538,6 +614,7 @@ static int remoteDispatchNetworkCreateXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_network_create_xml_args *args,
     remote_network_create_xml_ret *ret);
@@ -545,6 +622,7 @@ static int remoteDispatchNetworkDefineXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_network_define_xml_args *args,
     remote_network_define_xml_ret *ret);
@@ -552,6 +630,7 @@ static int remoteDispatchNetworkDestroy(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_network_destroy_args *args,
     void *ret);
@@ -559,6 +638,7 @@ static int remoteDispatchNetworkDumpXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_network_dump_xml_args *args,
     remote_network_dump_xml_ret *ret);
@@ -566,6 +646,7 @@ static int remoteDispatchNetworkGetAutostart(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_network_get_autostart_args *args,
     remote_network_get_autostart_ret *ret);
@@ -573,6 +654,7 @@ static int remoteDispatchNetworkGetBridgeName(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_network_get_bridge_name_args *args,
     remote_network_get_bridge_name_ret *ret);
@@ -580,6 +662,7 @@ static int remoteDispatchNetworkLookupByName(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_network_lookup_by_name_args *args,
     remote_network_lookup_by_name_ret *ret);
@@ -587,6 +670,7 @@ static int remoteDispatchNetworkLookupByUuid(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_network_lookup_by_uuid_args *args,
     remote_network_lookup_by_uuid_ret *ret);
@@ -594,6 +678,7 @@ static int remoteDispatchNetworkSetAutostart(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_network_set_autostart_args *args,
     void *ret);
@@ -601,6 +686,7 @@ static int remoteDispatchNetworkUndefine(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_network_undefine_args *args,
     void *ret);
@@ -608,6 +694,7 @@ static int remoteDispatchNodeDeviceCreateXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_node_device_create_xml_args *args,
     remote_node_device_create_xml_ret *ret);
@@ -615,6 +702,7 @@ static int remoteDispatchNodeDeviceDestroy(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_node_device_destroy_args *args,
     void *ret);
@@ -622,6 +710,7 @@ static int remoteDispatchNodeDeviceDettach(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_node_device_dettach_args *args,
     void *ret);
@@ -629,6 +718,7 @@ static int remoteDispatchNodeDeviceDumpXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_node_device_dump_xml_args *args,
     remote_node_device_dump_xml_ret *ret);
@@ -636,6 +726,7 @@ static int remoteDispatchNodeDeviceGetParent(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_node_device_get_parent_args *args,
     remote_node_device_get_parent_ret *ret);
@@ -643,6 +734,7 @@ static int remoteDispatchNodeDeviceListCaps(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_node_device_list_caps_args *args,
     remote_node_device_list_caps_ret *ret);
@@ -650,6 +742,7 @@ static int remoteDispatchNodeDeviceLookupByName(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_node_device_lookup_by_name_args *args,
     remote_node_device_lookup_by_name_ret *ret);
@@ -657,6 +750,7 @@ static int remoteDispatchNodeDeviceNumOfCaps(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_node_device_num_of_caps_args *args,
     remote_node_device_num_of_caps_ret *ret);
@@ -664,6 +758,7 @@ static int remoteDispatchNodeDeviceReAttach(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_node_device_re_attach_args *args,
     void *ret);
@@ -671,6 +766,7 @@ static int remoteDispatchNodeDeviceReset(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_node_device_reset_args *args,
     void *ret);
@@ -678,6 +774,7 @@ static int remoteDispatchNodeGetCellsFreeMemory(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_node_get_cells_free_memory_args *args,
     remote_node_get_cells_free_memory_ret *ret);
@@ -685,6 +782,7 @@ static int remoteDispatchNodeGetFreeMemory(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_node_get_free_memory_ret *ret);
@@ -692,6 +790,7 @@ static int remoteDispatchNodeGetInfo(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_node_get_info_ret *ret);
@@ -699,6 +798,7 @@ static int remoteDispatchNodeGetSecurityModel(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_node_get_security_model_ret *ret);
@@ -706,6 +806,7 @@ static int remoteDispatchNodeListDevices(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_node_list_devices_args *args,
     remote_node_list_devices_ret *ret);
@@ -713,6 +814,7 @@ static int remoteDispatchNodeNumOfDevices(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_node_num_of_devices_args *args,
     remote_node_num_of_devices_ret *ret);
@@ -720,6 +822,7 @@ static int remoteDispatchNumOfDefinedDomains(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_num_of_defined_domains_ret *ret);
@@ -727,6 +830,7 @@ static int remoteDispatchNumOfDefinedInterfaces(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_num_of_defined_interfaces_ret *ret);
@@ -734,6 +838,7 @@ static int remoteDispatchNumOfDefinedNetworks(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_num_of_defined_networks_ret *ret);
@@ -741,6 +846,7 @@ static int remoteDispatchNumOfDefinedStoragePools(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_num_of_defined_storage_pools_ret *ret);
@@ -748,6 +854,7 @@ static int remoteDispatchNumOfDomains(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_num_of_domains_ret *ret);
@@ -755,6 +862,7 @@ static int remoteDispatchNumOfInterfaces(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_num_of_interfaces_ret *ret);
@@ -762,6 +870,7 @@ static int remoteDispatchNumOfNetworks(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_num_of_networks_ret *ret);
@@ -769,6 +878,7 @@ static int remoteDispatchNumOfSecrets(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_num_of_secrets_ret *ret);
@@ -776,6 +886,7 @@ static int remoteDispatchNumOfStoragePools(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     void *args,
     remote_num_of_storage_pools_ret *ret);
@@ -783,6 +894,7 @@ static int remoteDispatchOpen(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_open_args *args,
     void *ret);
@@ -790,6 +902,7 @@ static int remoteDispatchSecretDefineXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_secret_define_xml_args *args,
     remote_secret_define_xml_ret *ret);
@@ -797,6 +910,7 @@ static int remoteDispatchSecretGetValue(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_secret_get_value_args *args,
     remote_secret_get_value_ret *ret);
@@ -804,6 +918,7 @@ static int remoteDispatchSecretGetXmlDesc(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_secret_get_xml_desc_args *args,
     remote_secret_get_xml_desc_ret *ret);
@@ -811,6 +926,7 @@ static int remoteDispatchSecretLookupByUsage(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_secret_lookup_by_usage_args *args,
     remote_secret_lookup_by_usage_ret *ret);
@@ -818,6 +934,7 @@ static int remoteDispatchSecretLookupByUuid(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_secret_lookup_by_uuid_args *args,
     remote_secret_lookup_by_uuid_ret *ret);
@@ -825,6 +942,7 @@ static int remoteDispatchSecretSetValue(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_secret_set_value_args *args,
     void *ret);
@@ -832,6 +950,7 @@ static int remoteDispatchSecretUndefine(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_secret_undefine_args *args,
     void *ret);
@@ -839,6 +958,7 @@ static int remoteDispatchStoragePoolBuild(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_build_args *args,
     void *ret);
@@ -846,6 +966,7 @@ static int remoteDispatchStoragePoolCreate(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_create_args *args,
     void *ret);
@@ -853,6 +974,7 @@ static int remoteDispatchStoragePoolCreateXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_create_xml_args *args,
     remote_storage_pool_create_xml_ret *ret);
@@ -860,6 +982,7 @@ static int remoteDispatchStoragePoolDefineXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_define_xml_args *args,
     remote_storage_pool_define_xml_ret *ret);
@@ -867,6 +990,7 @@ static int remoteDispatchStoragePoolDelete(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_delete_args *args,
     void *ret);
@@ -874,6 +998,7 @@ static int remoteDispatchStoragePoolDestroy(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_destroy_args *args,
     void *ret);
@@ -881,6 +1006,7 @@ static int remoteDispatchStoragePoolDumpXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_dump_xml_args *args,
     remote_storage_pool_dump_xml_ret *ret);
@@ -888,6 +1014,7 @@ static int remoteDispatchStoragePoolGetAutostart(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_get_autostart_args *args,
     remote_storage_pool_get_autostart_ret *ret);
@@ -895,6 +1022,7 @@ static int remoteDispatchStoragePoolGetInfo(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_get_info_args *args,
     remote_storage_pool_get_info_ret *ret);
@@ -902,6 +1030,7 @@ static int remoteDispatchStoragePoolListVolumes(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_list_volumes_args *args,
     remote_storage_pool_list_volumes_ret *ret);
@@ -909,6 +1038,7 @@ static int remoteDispatchStoragePoolLookupByName(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_lookup_by_name_args *args,
     remote_storage_pool_lookup_by_name_ret *ret);
@@ -916,6 +1046,7 @@ static int remoteDispatchStoragePoolLookupByUuid(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_lookup_by_uuid_args *args,
     remote_storage_pool_lookup_by_uuid_ret *ret);
@@ -923,6 +1054,7 @@ static int remoteDispatchStoragePoolLookupByVolume(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_lookup_by_volume_args *args,
     remote_storage_pool_lookup_by_volume_ret *ret);
@@ -930,6 +1062,7 @@ static int remoteDispatchStoragePoolNumOfVolumes(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_num_of_volumes_args *args,
     remote_storage_pool_num_of_volumes_ret *ret);
@@ -937,6 +1070,7 @@ static int remoteDispatchStoragePoolRefresh(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_refresh_args *args,
     void *ret);
@@ -944,6 +1078,7 @@ static int remoteDispatchStoragePoolSetAutostart(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_set_autostart_args *args,
     void *ret);
@@ -951,6 +1086,7 @@ static int remoteDispatchStoragePoolUndefine(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_pool_undefine_args *args,
     void *ret);
@@ -958,6 +1094,7 @@ static int remoteDispatchStorageVolCreateXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_vol_create_xml_args *args,
     remote_storage_vol_create_xml_ret *ret);
@@ -965,6 +1102,7 @@ static int remoteDispatchStorageVolCreateXmlFrom(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_vol_create_xml_from_args *args,
     remote_storage_vol_create_xml_from_ret *ret);
@@ -972,6 +1110,7 @@ static int remoteDispatchStorageVolDelete(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_vol_delete_args *args,
     void *ret);
@@ -979,6 +1118,7 @@ static int remoteDispatchStorageVolDumpXml(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_vol_dump_xml_args *args,
     remote_storage_vol_dump_xml_ret *ret);
@@ -986,6 +1126,7 @@ static int remoteDispatchStorageVolGetInfo(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_vol_get_info_args *args,
     remote_storage_vol_get_info_ret *ret);
@@ -993,6 +1134,7 @@ static int remoteDispatchStorageVolGetPath(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_vol_get_path_args *args,
     remote_storage_vol_get_path_ret *ret);
@@ -1000,6 +1142,7 @@ static int remoteDispatchStorageVolLookupByKey(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_vol_lookup_by_key_args *args,
     remote_storage_vol_lookup_by_key_ret *ret);
@@ -1007,6 +1150,7 @@ static int remoteDispatchStorageVolLookupByName(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_vol_lookup_by_name_args *args,
     remote_storage_vol_lookup_by_name_ret *ret);
@@ -1014,6 +1158,7 @@ static int remoteDispatchStorageVolLookupByPath(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_storage_vol_lookup_by_path_args *args,
     remote_storage_vol_lookup_by_path_ret *ret);
@@ -1021,6 +1166,7 @@ static int remoteDispatchSupportsFeature(
     struct qemud_server *server,
     struct qemud_client *client,
     virConnectPtr conn,
+    remote_message_header *hdr,
     remote_error *err,
     remote_supports_feature_args *args,
     remote_supports_feature_ret *ret);
diff --git a/daemon/remote_generate_stubs.pl b/daemon/remote_generate_stubs.pl
index 9bca0cc..8b26e3d 100755
--- a/daemon/remote_generate_stubs.pl
+++ b/daemon/remote_generate_stubs.pl
@@ -115,6 +115,7 @@ elsif ($opt_p) {
 	print "    struct qemud_server *server,\n";
 	print "    struct qemud_client *client,\n";
 	print "    virConnectPtr conn,\n";
+	print "    remote_message_header *hdr,\n";
 	print "    remote_error *err,\n";
 	print "    $calls{$_}->{args} *args,\n";
 	print "    $calls{$_}->{ret} *ret);\n";
-- 
1.6.0.6

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]