]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/XenBusDxe: Fix initialisation of gXenBusPrivateData
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 31 Oct 2014 21:25:36 +0000 (21:25 +0000)
committerjljusten <jljusten@Edk2>
Fri, 31 Oct 2014 21:25:36 +0000 (21:25 +0000)
.. to avoid the use .member = value syntax as VS does not support it.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16295 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/XenBusDxe/XenBus.c

index a569cfa088fa44406f282e74680185aac50f1df0..5baaddb143bec42912f4210f0a92d9cfa9a36699 100644 (file)
@@ -348,28 +348,33 @@ Out:
 }\r
 \r
 STATIC XENBUS_PRIVATE_DATA gXenBusPrivateData = {\r
-  .Signature = XENBUS_PRIVATE_DATA_SIGNATURE,\r
-\r
-  .XenBusIo.XsRead = XenBusXenStoreRead,\r
-  .XenBusIo.XsBackendRead = XenBusXenStoreBackendRead,\r
-  .XenBusIo.XsPrintf = XenBusXenStoreSPrint,\r
-  .XenBusIo.XsRemove = XenBusXenStoreRemove,\r
-  .XenBusIo.XsTransactionStart = XenBusXenStoreTransactionStart,\r
-  .XenBusIo.XsTransactionEnd = XenBusXenStoreTransactionEnd,\r
-  .XenBusIo.SetState = XenBusSetState,\r
-  .XenBusIo.GrantAccess = XenBusGrantAccess,\r
-  .XenBusIo.GrantEndAccess = XenBusGrantEndAccess,\r
-  .XenBusIo.EventChannelAllocate = XenBusEventChannelAllocate,\r
-  .XenBusIo.EventChannelNotify = XenBusEventChannelNotify,\r
-  .XenBusIo.EventChannelClose = XenBusEventChannelClose,\r
-  .XenBusIo.RegisterWatch = XenBusRegisterWatch,\r
-  .XenBusIo.RegisterWatchBackend = XenBusRegisterWatchBackend,\r
-  .XenBusIo.UnregisterWatch = XenBusUnregisterWatch,\r
-  .XenBusIo.WaitForWatch = XenBusWaitForWatch,\r
-\r
-  .XenBusIo.Type = NULL,\r
-  .XenBusIo.Node = NULL,\r
-  .XenBusIo.Backend = NULL,\r
-\r
-  .Dev = NULL\r
+  XENBUS_PRIVATE_DATA_SIGNATURE,    // Signature\r
+  { NULL, NULL },                   // Link\r
+  NULL,                             // Handle\r
+  {                                 // XenBusIo\r
+    XenBusXenStoreRead,             // XenBusIo.XsRead\r
+    XenBusXenStoreBackendRead,      // XenBusIo.XsBackendRead\r
+    XenBusXenStoreSPrint,           // XenBusIo.XsPrintf\r
+    XenBusXenStoreRemove,           // XenBusIo.XsRemove\r
+    XenBusXenStoreTransactionStart, // XenBusIo.XsTransactionStart\r
+    XenBusXenStoreTransactionEnd,   // XenBusIo.XsTransactionEnd\r
+    XenBusSetState,                 // XenBusIo.SetState\r
+    XenBusGrantAccess,              // XenBusIo.GrantAccess\r
+    XenBusGrantEndAccess,           // XenBusIo.GrantEndAccess\r
+    XenBusEventChannelAllocate,     // XenBusIo.EventChannelAllocate\r
+    XenBusEventChannelNotify,       // XenBusIo.EventChannelNotify\r
+    XenBusEventChannelClose,        // XenBusIo.EventChannelClose\r
+    XenBusRegisterWatch,            // XenBusIo.RegisterWatch\r
+    XenBusRegisterWatchBackend,     // XenBusIo.RegisterWatchBackend\r
+    XenBusUnregisterWatch,          // XenBusIo.UnregisterWatch\r
+    XenBusWaitForWatch,             // XenBusIo.WaitForWatch\r
+\r
+    NULL,                           // XenBusIo.Type\r
+    0,                              // XenBusIo.DeviceId\r
+    NULL,                           // XenBusIo.Node\r
+    NULL,                           // XenBusIo.Backend\r
+  },\r
+\r
+  NULL,                             // Dev\r
+  NULL                              // DevicePath\r
 };\r