[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 23/36] docs/devel/qom.rst: Correct code style
From: |
Alex Bennée |
Subject: |
[PATCH v3 23/36] docs/devel/qom.rst: Correct code style |
Date: |
Tue, 27 Jun 2023 17:09:30 +0100 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
Per commit 067109a11c ("docs/devel: mention the spacing requirement
for QOM"):
For a storage structure the first declaration should always be
called “parent_obj” and for a class structure the first member
should always be called “parent_class”
Adapt the QOM rST document accordingly.
Reported-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230622101717.70468-1-philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
docs/devel/qom.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/devel/qom.rst b/docs/devel/qom.rst
index c9237950d0..2828843058 100644
--- a/docs/devel/qom.rst
+++ b/docs/devel/qom.rst
@@ -26,7 +26,7 @@ features:
typedef DeviceClass MyDeviceClass;
typedef struct MyDevice
{
- DeviceState parent;
+ DeviceState parent_obj;
int reg0, reg1, reg2;
} MyDevice;
@@ -147,7 +147,7 @@ will also have a wrapper function to call it easily:
typedef struct MyDeviceClass
{
- DeviceClass parent;
+ DeviceClass parent_class;
void (*frobnicate) (MyDevice *obj);
} MyDeviceClass;
--
2.39.2
- [PATCH v3 17/36] plugins: force slow path when plugins instrument memory ops, (continued)
- [PATCH v3 17/36] plugins: force slow path when plugins instrument memory ops, Alex Bennée, 2023/06/27
- [PATCH v3 34/36] gdbstub: Add support for info proc mappings, Alex Bennée, 2023/06/27
- [PATCH v3 22/36] include/hw/qdev-core: fixup kerneldoc annotations, Alex Bennée, 2023/06/27
- [PATCH v3 19/36] plugins: update lockstep to use g_memdup2, Alex Bennée, 2023/06/27
- [PATCH v3 24/36] docs/devel: split qom-api reference into new file, Alex Bennée, 2023/06/27
- [PATCH v3 33/36] gdbstub: Report the actual qemu-user pid, Alex Bennée, 2023/06/27
- [PATCH v3 23/36] docs/devel/qom.rst: Correct code style,
Alex Bennée <=
- [PATCH v3 32/36] gdbstub: Expose gdb_get_process() and gdb_get_first_cpu_in_process(), Alex Bennée, 2023/06/27
- [PATCH v3 29/36] linux-user: Expose do_guest_openat() and do_guest_readlink(), Alex Bennée, 2023/06/27
- [PATCH v3 36/36] tests/tcg: Add a test for info proc mappings, Alex Bennée, 2023/06/27
- [PATCH v3 28/36] gdbstub: clean-up vcont handling to avoid goto, Alex Bennée, 2023/06/27
- [PATCH v3 20/36] docs/devel: add some front matter to the devel index, Alex Bennée, 2023/06/27
- [PATCH v3 31/36] linux-user: Emulate /proc/self/smaps, Alex Bennée, 2023/06/27
- [PATCH v3 35/36] docs: Document security implications of debugging, Alex Bennée, 2023/06/27