Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
src/connect.h | 21 ++++++++++++++-------
src/domain.c | 1 +
src/util.c | 42 +++++++++++++++++++++---------------------
3 files changed, 36 insertions(+), 28 deletions(-)
diff --git a/src/connect.h b/src/connect.h
index 9078ae7..1086bc6 100644
--- a/src/connect.h
+++ b/src/connect.h
@@ -20,10 +20,17 @@ struct virtDBusConnect {
};
typedef struct virtDBusConnect virtDBusConnect;
-int virtDBusConnectNew(virtDBusConnect **connectp,
- sd_bus *bus,
- const char *uri,
- const char *connectPath);
-virtDBusConnect *virtDBusConnectFree(virtDBusConnect *connect);
-void virtDBusConnectFreep(virtDBusConnect **connectp);
-void virtDBusConnectListFree(virtDBusConnect ***connectList);
+int
+virtDBusConnectNew(virtDBusConnect **connectp,
+ sd_bus *bus,
+ const char *uri,
+ const char *connectPath);
+
+virtDBusConnect *
+virtDBusConnectFree(virtDBusConnect *connect);
+
+void
+virtDBusConnectFreep(virtDBusConnect **connectp);
+
+void
+virtDBusConnectListFree(virtDBusConnect ***connectList);
diff --git a/src/domain.c b/src/domain.c
index 850ea4a..c9365a4 100644
--- a/src/domain.c
+++ b/src/domain.c
@@ -1,4 +1,5 @@
#define _GNU_SOURCE
+
#include "domain.h"
#include "util.h"
diff --git a/src/util.c b/src/util.c
index 3e6be4e..0d4d0e3 100644
--- a/src/util.c
+++ b/src/util.c
@@ -23,27 +23,27 @@ virtDBusUtilMessageAppendTypedParameters(sd_bus_message *message,
return r;
switch (parameters[i].type) {
- case VIR_TYPED_PARAM_INT:
- r = sd_bus_message_append(message, "v", "i",
parameters[i].value.i);
- break;
- case VIR_TYPED_PARAM_UINT:
- r = sd_bus_message_append(message, "v", "u",
parameters[i].value.ui);
- break;
- case VIR_TYPED_PARAM_LLONG:
- r = sd_bus_message_append(message, "v", "x",
parameters[i].value.l);
- break;
- case VIR_TYPED_PARAM_ULLONG:
- r = sd_bus_message_append(message, "v", "t",
parameters[i].value.ul);
- break;
- case VIR_TYPED_PARAM_DOUBLE:
- r = sd_bus_message_append(message, "v", "d",
parameters[i].value.d);
- break;
- case VIR_TYPED_PARAM_BOOLEAN:
- r = sd_bus_message_append(message, "v", "b",
parameters[i].value.b);
- break;
- case VIR_TYPED_PARAM_STRING:
- r = sd_bus_message_append(message, "v", "s",
parameters[i].value.s);
- break;
+ case VIR_TYPED_PARAM_INT:
+ r = sd_bus_message_append(message, "v", "i",
parameters[i].value.i);
+ break;
+ case VIR_TYPED_PARAM_UINT:
+ r = sd_bus_message_append(message, "v", "u",
parameters[i].value.ui);
+ break;
+ case VIR_TYPED_PARAM_LLONG:
+ r = sd_bus_message_append(message, "v", "x",
parameters[i].value.l);
+ break;
+ case VIR_TYPED_PARAM_ULLONG:
+ r = sd_bus_message_append(message, "v", "t",
parameters[i].value.ul);
+ break;
+ case VIR_TYPED_PARAM_DOUBLE:
+ r = sd_bus_message_append(message, "v", "d",
parameters[i].value.d);
+ break;
+ case VIR_TYPED_PARAM_BOOLEAN:
+ r = sd_bus_message_append(message, "v", "b",
parameters[i].value.b);
+ break;
+ case VIR_TYPED_PARAM_STRING:
+ r = sd_bus_message_append(message, "v", "s",
parameters[i].value.s);
+ break;
}
if (r < 0)
--
2.14.3