Skip to content

Commit

Permalink
include: move qemu_get_vm_name() to sysemu.h
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220323155743.1585078-26-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
elmarco authored and bonzini committed Apr 3, 2022
1 parent 9f5e12c commit 721251c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion audio/audio.c
Expand Up @@ -32,7 +32,7 @@
#include "qapi/qapi-visit-audio.h"
#include "qemu/cutils.h"
#include "qemu/module.h"
#include "qemu-common.h"
#include "sysemu/sysemu.h"
#include "sysemu/replay.h"
#include "sysemu/runstate.h"
#include "ui/qemu-spice.h"
Expand Down
2 changes: 1 addition & 1 deletion block/iscsi.c
Expand Up @@ -28,7 +28,7 @@
#include <poll.h>
#include <math.h>
#include <arpa/inet.h>
#include "qemu-common.h"
#include "sysemu/sysemu.h"
#include "qemu/config-file.h"
#include "qemu/error-report.h"
#include "qemu/bitops.h"
Expand Down
2 changes: 0 additions & 2 deletions include/qemu-common.h
Expand Up @@ -24,8 +24,6 @@
int qemu_main(int argc, char **argv, char **envp);
#endif

const char *qemu_get_vm_name(void);

/* OS specific functions */
void os_setup_early_signal_handling(void);
int os_parse_cmd_args(int index, const char *optarg);
Expand Down
2 changes: 2 additions & 0 deletions include/sysemu/sysemu.h
Expand Up @@ -13,6 +13,8 @@ extern const char *qemu_name;
extern QemuUUID qemu_uuid;
extern bool qemu_uuid_set;

const char *qemu_get_vm_name(void);

void qemu_add_exit_notifier(Notifier *notify);
void qemu_remove_exit_notifier(Notifier *notify);

Expand Down
2 changes: 1 addition & 1 deletion stubs/get-vm-name.c
@@ -1,5 +1,5 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/sysemu.h"

const char *qemu_get_vm_name(void)
{
Expand Down

0 comments on commit 721251c

Please sign in to comment.