diff options
author | der richter <der.richter@gmx.de> | 2024-03-30 19:26:45 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-04-01 22:13:39 +0200 |
commit | 7619cceb875da939f26b02ae3e1b2f5b3d0f103c (patch) | |
tree | deda004068cdaf49add3dc8059bfaf49e80eb385 /osdep/mac/app_bridge.h | |
parent | b7c5b26d35f9ba4e8776c63be69fd4aefd1afb3c (diff) | |
download | mpv-7619cceb875da939f26b02ae3e1b2f5b3d0f103c.tar.bz2 mpv-7619cceb875da939f26b02ae3e1b2f5b3d0f103c.tar.xz |
mac/app: rewrite App c main function, startup and termination in swift
also move main invocation into AppHub and completely delete the old
Application c implementation.
Diffstat (limited to 'osdep/mac/app_bridge.h')
-rw-r--r-- | osdep/mac/app_bridge.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/osdep/mac/app_bridge.h b/osdep/mac/app_bridge.h index 27cc2413ea..fe1180a7ec 100644 --- a/osdep/mac/app_bridge.h +++ b/osdep/mac/app_bridge.h @@ -17,6 +17,12 @@ #pragma once +#include <stdbool.h> +#include "options/m_option.h" + +struct input_ctx; +struct mpv_handle; + enum { FRAME_VISIBLE = 0, FRAME_WHOLE, @@ -46,5 +52,7 @@ void cocoa_uninit_media_keys(void); void cocoa_set_input_context(struct input_ctx *input_context); void cocoa_set_mpv_handle(struct mpv_handle *ctx); void cocoa_init_cocoa_cb(void); +// multithreaded wrapper for mpv_main +int cocoa_main(int argc, char *argv[]); extern const struct m_sub_options macos_conf; |