Skip to content

Commit

Permalink
Monitor: Introduce the qmp-commands.hx file
Browse files Browse the repository at this point in the history
This file contains a copy of the following information from the
qemu-monitor.hx file:

    o QObject handlers entries
    o QMP documentation (all SQMP/EQMP sections)

Right now it's only used to generate the QMP docs in QMP/, but
next commits will turn this into QMP's command dispatch table.

It's important to note that QObject handlers entries are going
to get duplicated: they will exist in both QMP's and HMP's
dispatch tables.

This will be fixed in the near future, when we add a proper
QMP call interface and HMP is converted to use it. This way we
can completely drop QObject handlers entries from HMP's tables.

NOTE: HMP specific constructions, like "q|quit", have been dropped.

Signed-off-by: Luiz Capitulino <[email protected]>
  • Loading branch information
Luiz Capitulino committed Oct 1, 2010
1 parent 1162daa commit 82a56f0
Show file tree
Hide file tree
Showing 3 changed files with 1,543 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ qemu-options.texi: $(SRC_PATH)/qemu-options.hx
qemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx
$(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")

QMP/qmp-commands.txt: $(SRC_PATH)/qemu-monitor.hx
QMP/qmp-commands.txt: $(SRC_PATH)/qmp-commands.hx
$(call quiet-command,sh $(SRC_PATH)/hxtool -q < $< > $@," GEN $@")

qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx
Expand Down
2 changes: 1 addition & 1 deletion QMP/README
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ doing any code change. This is so because:
2. Review can improve your interface. Letting that happen before
you implement it can save you work.

* The qmp-commands.txt file is generated from the qemu-monitor.hx one, which
* The qmp-commands.txt file is generated from the qmp-commands.hx one, which
is the file that should be edited.

Homepage
Expand Down
Loading

0 comments on commit 82a56f0

Please sign in to comment.