mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
d3922ab5fa
commit
3bbbee18a4
2 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue