aboutsummaryrefslogtreecommitdiff
path: root/include/qemu-main.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-04-20 17:25:47 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-04-21 16:56:55 +0400
commit88c39c8693f2b7f0a9fbac1cdd9496493066563a (patch)
treec5cf9edf2bc6d544f0d1aed02fc5beae18f35a86 /include/qemu-main.h
parent6712f04ec8f417d5082e206e0bc0b80d6572afbb (diff)
Simplify softmmu/main.c
Move qemu_main() declaration to a new header. Simplify main.c since both cocoa & sdl cannot be enabled together. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Akihiko Odaki <akihiko.odaki@gmail.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20220420132624.2439741-5-marcandre.lureau@redhat.com>
Diffstat (limited to 'include/qemu-main.h')
-rw-r--r--include/qemu-main.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/qemu-main.h b/include/qemu-main.h
new file mode 100644
index 0000000000..6a3e90d0ad
--- /dev/null
+++ b/include/qemu-main.h
@@ -0,0 +1,10 @@
+/*
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+#ifndef QEMU_MAIN_H
+#define QEMU_MAIN_H
+
+int qemu_main(int argc, char **argv, char **envp);
+
+#endif /* QEMU_MAIN_H */