mirror of https://github.com/xemu-project/xemu.git
qemu/osdep: Document os_find_datadir() return value
Document os_find_datadir() returned data must be freed. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Michael Rolnik <mrolnik@gmail.com> Tested-by: Michael Rolnik <mrolnik@gmail.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20200714164257.23330-2-f4bug@amsat.org>
This commit is contained in:
parent
90218a9a39
commit
7da1d7dcc0
|
@ -84,6 +84,9 @@ void os_setup_signal_handling(void)
|
||||||
* Find a likely location for support files using the location of the binary.
|
* Find a likely location for support files using the location of the binary.
|
||||||
* When running from the build tree this will be "$bindir/../pc-bios".
|
* When running from the build tree this will be "$bindir/../pc-bios".
|
||||||
* Otherwise, this is CONFIG_QEMU_DATADIR.
|
* Otherwise, this is CONFIG_QEMU_DATADIR.
|
||||||
|
*
|
||||||
|
* The caller must use g_free() to free the returned data when it is
|
||||||
|
* no longer required.
|
||||||
*/
|
*/
|
||||||
char *os_find_datadir(void)
|
char *os_find_datadir(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -57,7 +57,12 @@ void os_setup_early_signal_handling(void)
|
||||||
atexit(os_undo_timer_resolution);
|
atexit(os_undo_timer_resolution);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Look for support files in the same directory as the executable. */
|
/*
|
||||||
|
* Look for support files in the same directory as the executable.
|
||||||
|
*
|
||||||
|
* The caller must use g_free() to free the returned data when it is
|
||||||
|
* no longer required.
|
||||||
|
*/
|
||||||
char *os_find_datadir(void)
|
char *os_find_datadir(void)
|
||||||
{
|
{
|
||||||
return qemu_get_exec_dir();
|
return qemu_get_exec_dir();
|
||||||
|
|
Loading…
Reference in New Issue