[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 24/25] plugins: Support C++
From: |
Akihiko Odaki |
Subject: |
[PATCH v4 24/25] plugins: Support C++ |
Date: |
Wed, 16 Aug 2023 23:51:45 +0900 |
Make qemu-plugin.h consumable for C++ platform.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
include/qemu/qemu-plugin.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h
index 214b12bfd6..8637e3d8cf 100644
--- a/include/qemu/qemu-plugin.h
+++ b/include/qemu/qemu-plugin.h
@@ -16,6 +16,8 @@
#include <stdbool.h>
#include <stddef.h>
+G_BEGIN_DECLS
+
/*
* For best performance, build the plugin with -fvisibility=hidden so that
* QEMU_PLUGIN_LOCAL is implicit. Then, just mark qemu_plugin_install with
@@ -723,4 +725,6 @@ qemu_plugin_get_register_files(unsigned int vcpu_index, int
*size);
*/
int qemu_plugin_read_register(GByteArray *buf, int reg);
+G_END_DECLS
+
#endif /* QEMU_QEMU_PLUGIN_H */
--
2.41.0
- [PATCH v4 14/25] gdbstub: Dynamically allocate target.xml buffer, (continued)
- [PATCH v4 14/25] gdbstub: Dynamically allocate target.xml buffer, Akihiko Odaki, 2023/08/16
- [PATCH v4 15/25] gdbstub: Simplify XML lookup, Akihiko Odaki, 2023/08/16
- [PATCH v4 16/25] hw/core/cpu: Remove gdb_get_dynamic_xml member, Akihiko Odaki, 2023/08/16
- [PATCH v4 17/25] gdbstub: Add members to identify registers to GDBFeature, Akihiko Odaki, 2023/08/16
- [PATCH v4 18/25] hw/core/cpu: Add a parameter to gdb_read_register/gdb_write_register, Akihiko Odaki, 2023/08/16
- [PATCH v4 19/25] gdbstub: Hide gdb_has_xml, Akihiko Odaki, 2023/08/16
- [PATCH v4 20/25] gdbstub: Expose functions to read registers, Akihiko Odaki, 2023/08/16
- [PATCH v4 21/25] cpu: Call plugin hooks only when ready, Akihiko Odaki, 2023/08/16
- [PATCH v4 22/25] plugins: Allow to read registers, Akihiko Odaki, 2023/08/16
- [PATCH v4 23/25] contrib/plugins: Allow to log registers, Akihiko Odaki, 2023/08/16
- [PATCH v4 24/25] plugins: Support C++,
Akihiko Odaki <=
- [PATCH v4 25/25] contrib/plugins: Add cc plugin, Akihiko Odaki, 2023/08/16