diff mbox series

[1/2] qom:open brace '{' following struct go on the same line

Message ID 20201118064558.92658-2-aiyutao@huawei.com
State New
Headers show
Series Fix some style problems in qom | expand

Commit Message

Yutao Ai Nov. 18, 2020, 6:45 a.m. UTC
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 mbox series

Patch

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;