qapi: Move and rename qapi/qmp/dispatch.h to qapi/qmp-registry.h
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 18 Nov 2024 15:12:35 +0000 (16:12 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 10 Feb 2025 14:33:29 +0000 (15:33 +0100)
commit153b0989d8ec7e8ef660ed9a614964f3dbdf231f
treee44a14be27bf1cda2489bd6d7090353e76bd8330
parent407bc4bf9027f7ac4333e47cd900d773b99a23e3
qapi: Move and rename qapi/qmp/dispatch.h to qapi/qmp-registry.h

The general expectation is that header files should follow the same
file/path naming scheme as the corresponding source file. There are
various historical exceptions to this practice in QEMU, with one of
the most notable being the include/qapi/qmp/ directory.

include/qapi/qmp/dispatch.h corresponds mostly to qapi/qmp-registry.c.
Move and rename it to include/qapi/qmp-registry.h.

Now just qerror.h is left in include/qapi/qmp/.  Since it's deprecated
& (slowly) getting eliminated anyway, it isn't worth moving.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20241118151235.2665921-3-armbru@redhat.com>
docs/devel/qapi-code-gen.rst
include/qapi/qmp-registry.h [new file with mode: 0644]
include/qapi/qmp/dispatch.h [deleted file]
monitor/monitor-internal.h
qapi/qmp-dispatch.c
qapi/qmp-registry.c
qga/guest-agent-core.h
scripts/qapi/commands.py
stubs/qmp-command-available.c
stubs/qmp-quit.c
system/qdev-monitor.c