]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: completer: Introduce dummy completer for local files
authorPeter Krempa <pkrempa@redhat.com>
Wed, 15 Sep 2021 15:08:37 +0000 (17:08 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 17 Sep 2021 07:40:46 +0000 (09:40 +0200)
commit16252b16b7dee2121a24bde67cfc7ca984603269
tree34116683a477ca63b885df9c0b4e9d214e5ac9be
parentbc4739ed77adb32d5594c0c21291d23d3328aa92
virsh: completer: Introduce dummy completer for local files

For now the completion does the correct thing of completing a local path
if NULL is returned.

Introduce 'virshCompletePathLocalExisting' and use it in the
'VIRSH_COMMON_OPT_FILE' macro.

This for now serves as an annotation for the function which want to read
a file on the host running virsh. In the future this can be used with a
more sophisticated implementation.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-completer.c
tools/virsh-completer.h
tools/virsh.h