diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2020-10-02 22:54:24 -0400 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-10-06 11:09:35 -0400 |
commit | 38a0d5bcdec74a3937a66a97179aeb7910aa0d4a (patch) | |
tree | db72ec94c4f117834fccd6b391525942c9c3a33e /docs/devel | |
parent | b99e80cb0f773ae3c339b3f5b99f2d4283494c1a (diff) | |
download | qemu-38a0d5bcdec74a3937a66a97179aeb7910aa0d4a.zip qemu-38a0d5bcdec74a3937a66a97179aeb7910aa0d4a.tar.gz qemu-38a0d5bcdec74a3937a66a97179aeb7910aa0d4a.tar.bz2 |
docs/devel/qom: Avoid long lines
Long code lines don't look good in the rendered documents, make
them shorter.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20201003025424.199291-7-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'docs/devel')
-rw-r--r-- | docs/devel/qom.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/devel/qom.rst b/docs/devel/qom.rst index 0c610e2..42d0dc4 100644 --- a/docs/devel/qom.rst +++ b/docs/devel/qom.rst @@ -284,7 +284,8 @@ in the header file: .. code-block:: c :caption: Declaring a simple type - OBJECT_DECLARE_SIMPLE_TYPE(MyDevice, my_device, MY_DEVICE, DEVICE) + OBJECT_DECLARE_SIMPLE_TYPE(MyDevice, my_device, + MY_DEVICE, DEVICE) This is equivalent to the following: @@ -360,7 +361,8 @@ This accepts an array of interface type names. OBJECT_DEFINE_TYPE_WITH_INTERFACES(MyDevice, my_device, MY_DEVICE, DEVICE, - { TYPE_USER_CREATABLE }, { NULL }) + { TYPE_USER_CREATABLE }, + { NULL }) If the type is not intended to be instantiated, then then the OBJECT_DEFINE_ABSTRACT_TYPE() macro can be used instead: @@ -368,7 +370,8 @@ the OBJECT_DEFINE_ABSTRACT_TYPE() macro can be used instead: .. code-block:: c :caption: Defining a simple abstract type - OBJECT_DEFINE_ABSTRACT_TYPE(MyDevice, my_device, MY_DEVICE, DEVICE) + OBJECT_DEFINE_ABSTRACT_TYPE(MyDevice, my_device, + MY_DEVICE, DEVICE) |