util: Split out exec_dir from os_find_datadir
commit10f5bff622cad71645e22c027b77ac31e51008ef
authorFam Zheng <famz@redhat.com>
Mon, 10 Feb 2014 06:48:51 +0000 (10 14:48 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Feb 2014 12:12:54 +0000 (20 13:12 +0100)
tree350ebef38d05121c3b438ef43145c59a0ff7da81
parent46eef33b89e936ca793e13c4aeea1414e97e8dbb
util: Split out exec_dir from os_find_datadir

With this change, main() calls qemu_init_exec_dir and uses argv[0] to
init exec_dir. The saved value can be retrieved with
qemu_get_exec_dir later. It will be reused by module loading.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu-common.h
include/qemu/osdep.h
os-posix.c
os-win32.c
qemu-img.c
qemu-io.c
qemu-nbd.c
util/oslib-posix.c
util/oslib-win32.c
vl.c