add qemu_add_data_dir()
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 14 Sep 2017 11:42:35 +0000 (13:42 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 26 Sep 2017 11:05:28 +0000 (13:05 +0200)
commit2a1cce9058698d384b7c1b6c6b744d928d32dfba
tree6ea4e450f55a990bd9855e09a66f520627b8e299
parent1e3ee834083227f552179f6e43902cba5a866e6b
add qemu_add_data_dir()

Add helper function to add a directory to the qemu search path, so we
don't duplicate the checks.  Add a check for duplicate entries, so we
stop trying to open files twice.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20170914114236.25343-2-kraxel@redhat.com
vl.c