On 24/06/21 22:37, Eduardo Habkost wrote:
On Thu, Jun 24, 2021 at 12:38:03PM +0200, Gerd Hoffmann wrote:
Add macros for module info annotations.
Instead of having that module meta-data stored in lists in util/module.c
place directly in the module source code.
[...]
+/* module implements QOM type <name> */
+#define module_obj(name) modinfo(obj, name)
Can we make OBJECT_DEFINE_TYPE*() use this macro automatically?
Yeah, that's possible. I would do it as a separate patch though,
because Gerd is on vacation and he asked me to include it in a pull
request before soft freeze.
Thanks,
Paolo