Commit 8805844280 for qemu.org

commit 880584428002db3b5db3c24d3e5e2d59da9f32cb
Author: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Date:   Wed Aug 12 11:27:57 2026 +0200

    monitor: Reduce inclusion of 'qapi/qapi-emit-events.h' header

    "monitor/monitor.h" don't use anything declared in the generated
    "qapi/qapi-emit-events.h" header.
    However the "monitor/monitor-internal.h" do:

      107 struct MonitorClass {
      ...
      116     /*
      117      * If non-NULL, the monitor is able to send event
      118      * notifications back to the client
      119      */
      120     void (*emit_event)(Monitor *mon, QAPIEvent event, QDict *qdict);
                                               ^^^^^^^^^

    Move the header inclusion to "monitor/monitor-internal.h" to
    avoid including / re-exposing unnecessary declarations in the
    global "monitor/monitor.h" header.

    Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
    Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Message-Id: <20260812211708.92824-11-philmd@oss.qualcomm.com>

diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h
index efdd2165aa..fa9f4a8a75 100644
--- a/include/monitor/monitor.h
+++ b/include/monitor/monitor.h
@@ -3,7 +3,6 @@

 #include "block/block.h"
 #include "qapi/qapi-types-misc.h"
-#include "qapi/qapi-emit-events.h"
 #include "qemu/coroutine-core.h"
 #include "qemu/readline.h"
 #include "exec/hwaddr.h"
diff --git a/monitor/monitor-internal.h b/monitor/monitor-internal.h
index 23829f32f9..bc0932c425 100644
--- a/monitor/monitor-internal.h
+++ b/monitor/monitor-internal.h
@@ -27,6 +27,7 @@

 #include "chardev/char-fe.h"
 #include "monitor/monitor.h"
+#include "qapi/qapi-emit-events.h"
 #include "qapi/qapi-types-control.h"
 #include "qapi/qapi-types-qom.h"
 #include "qapi/qmp-registry.h"