diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2024-11-18 16:12:35 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2025-02-10 15:33:29 +0100 |
commit | 153b0989d8ec7e8ef660ed9a614964f3dbdf231f (patch) | |
tree | e44a14be27bf1cda2489bd6d7090353e76bd8330 /stubs | |
parent | 407bc4bf9027f7ac4333e47cd900d773b99a23e3 (diff) | |
download | qemu-153b0989d8ec7e8ef660ed9a614964f3dbdf231f.zip qemu-153b0989d8ec7e8ef660ed9a614964f3dbdf231f.tar.gz qemu-153b0989d8ec7e8ef660ed9a614964f3dbdf231f.tar.bz2 |
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>
Diffstat (limited to 'stubs')
-rw-r--r-- | stubs/qmp-command-available.c | 2 | ||||
-rw-r--r-- | stubs/qmp-quit.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/stubs/qmp-command-available.c b/stubs/qmp-command-available.c index 46540af..8851fac 100644 --- a/stubs/qmp-command-available.c +++ b/stubs/qmp-command-available.c @@ -1,5 +1,5 @@ #include "qemu/osdep.h" -#include "qapi/qmp/dispatch.h" +#include "qapi/qmp-registry.h" bool qmp_command_available(const QmpCommand *cmd, Error **errp) { diff --git a/stubs/qmp-quit.c b/stubs/qmp-quit.c index a3ff47f..8fb523e 100644 --- a/stubs/qmp-quit.c +++ b/stubs/qmp-quit.c @@ -1,6 +1,6 @@ #include "qemu/osdep.h" #include "qapi/qapi-commands-control.h" -#include "qapi/qmp/dispatch.h" +#include "qapi/qmp-registry.h" void qmp_quit(Error **errp) { |