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

[libvirt] [PATCH 03/11] Change bridge driver to use named initializers with virDriverState



From: "Daniel P. Berrange" <berrange redhat com>

Signed-off-by: Daniel P. Berrange <berrange redhat com>
---
 src/network/bridge_driver.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
index 3dbf009..cad19be 100644
--- a/src/network/bridge_driver.c
+++ b/src/network/bridge_driver.c
@@ -3295,11 +3295,11 @@ static virNetworkDriver networkDriver = {
 };
 
 static virStateDriver networkStateDriver = {
-    "Network",
-    networkStartup,
-    networkShutdown,
-    networkReload,
-    networkActive,
+    .name = "Network",
+    .initialize  = networkStartup,
+    .cleanup = networkShutdown,
+    .reload = networkReload,
+    .active = networkActive,
 };
 
 int networkRegister(void) {
-- 
1.7.12.1


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