diff options
author | Andreas Färber <andreas.faerber@web.de> | 2011-05-29 19:42:51 +0200 |
---|---|---|
committer | Andreas Färber <andreas.faerber@web.de> | 2011-06-14 03:08:58 +0200 |
commit | 3bbbee18a4e72f92a5830d6937ec50c441ec7826 (patch) | |
tree | 0aec9698c528b14112af56123296f56da0f21d6c /qemu-common.h | |
parent | d3922ab5fa791ac1546140f2a8df86d632d8fd6a (diff) | |
download | hqemu-3bbbee18a4e72f92a5830d6937ec50c441ec7826.zip hqemu-3bbbee18a4e72f92a5830d6937ec50c441ec7826.tar.gz |
cocoa: Provide central qemu_main() prototype
This fixes a missing prototype warning in vl.c and obsoletes
the prototype in cocoa.m. Adjust callers in cocoa.m to supply
third argument, which is currently only used on Linux/ppc.
The prototype is designed so that it could be shared with SDL
and other frontends, if desired.
Cc: Alexandre Raymond <cerbere@gmail.com>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Diffstat (limited to 'qemu-common.h')
-rw-r--r-- | qemu-common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h index 39fabc9..109498d 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -132,6 +132,11 @@ static inline char *realpath(const char *path, char *resolved_path) #endif /* !defined(NEED_CPU_H) */ +/* main function, renamed */ +#if defined(CONFIG_COCOA) +int qemu_main(int argc, char **argv, char **envp); +#endif + /* bottom halves */ typedef void QEMUBHFunc(void *opaque); |