[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] qom:open brace '{' following struct go on the same line
From: |
Yutao Ai |
Subject: |
[PATCH 1/2] qom:open brace '{' following struct go on the same line |
Date: |
Wed, 18 Nov 2020 06:45:57 +0000 |
Move the open brace '{' following struct go on the same line
Signed-off-by: Yutao Ai <aiyutao@huawei.com>
---
qom/object.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/qom/object.c b/qom/object.c
index 1065355233..0cd2161012 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -38,13 +38,11 @@
typedef struct InterfaceImpl InterfaceImpl;
typedef struct TypeImpl TypeImpl;
-struct InterfaceImpl
-{
+struct InterfaceImpl {
const char *typename;
};
-struct TypeImpl
-{
+struct TypeImpl {
const char *name;
size_t class_size;
@@ -1048,8 +1046,7 @@ ObjectClass *object_class_get_parent(ObjectClass *class)
return type->class;
}
-typedef struct OCFData
-{
+typedef struct OCFData {
void (*fn)(ObjectClass *klass, void *opaque);
const char *implements_type;
bool include_abstract;
@@ -2137,8 +2134,7 @@ Object *object_resolve_path(const char *path, bool
*ambiguous)
return object_resolve_path_type(path, TYPE_OBJECT, ambiguous);
}
-typedef struct StringProperty
-{
+typedef struct StringProperty {
char *(*get)(Object *, Error **);
void (*set)(Object *, const char *, Error **);
} StringProperty;
@@ -2216,8 +2212,7 @@ object_class_property_add_str(ObjectClass *klass, const
char *name,
prop);
}
-typedef struct BoolProperty
-{
+typedef struct BoolProperty {
bool (*get)(Object *, Error **);
void (*set)(Object *, bool, Error **);
} BoolProperty;
--
2.19.1