Skip to content

qemu-io: readline command completion

Stefan Hajnoczi qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5readline: decouple readline from the monitorhmp.c include/monitor/readline.h monitor.c +1 more+71 -380 replies
2/5readline: move readline to a generic locationMakefile.objs include/monitor/monitor.h include/monitor/readline.h +5 more+560 -5600 replies
3/5osdep: add qemu_set_tty_echo()include/qemu/osdep.h util/oslib-posix.c util/oslib-win32.c+39 -03 replies
4/5qemu-io: use readline.cqemu-io.c+58 -450 replies
5/5qemu-io: add command completioninclude/qemu-io.h qemu-io-cmds.c qemu-io.c+25 -10 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLuiz Capitulino
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/5] qemu-io: readline command completion

This series decouples readline.c from the QEMU monitor and then reuses it in qemu-io. This adds history and command completion to the qemu-io interactive prompt.

Stefan Hajnoczi (5):
readline: decouple readline from the monitor
readline: move readline to a generic location
osdep: add qemu_set_tty_echo()
qemu-io: use readline.c
qemu-io: add command completion

 Makefile.objs              |   1 -
 hmp.c                      |   6 +-
 include/monitor/monitor.h  |   2 +-
 include/monitor/readline.h |  56 -----
 include/qemu-io.h          |   3 +
 include/qemu/osdep.h       |   2 +
 include/qemu/readline.h    |  62 ++++++
 monitor.c                  |  41 +++-
 qemu-io-cmds.c             |  15 ++
 qemu-io.c                  | 109 +++++-----
 readline.c                 | 493 --------------------------------------------
 util/Makefile.objs         |   1 +
 util/oslib-posix.c         |  18 ++
 util/oslib-win32.c         |  19 ++
 util/readline.c            | 495 +++++++++++++++++++++++++++++++++++++++++++++
 15 files changed, 716 insertions(+), 607 deletions(-)
 delete mode 100644 include/monitor/readline.h
 create mode 100644 include/qemu/readline.h
 delete mode 100644 readline.c
 create mode 100644 util/readline.c
Signature · 1 line
1.8.3.1