diff options
author | der richter <der.richter@gmx.de> | 2024-02-27 16:55:29 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-02-28 15:52:47 +0100 |
commit | 86fa9b18a3619a379a597ca0902c23dc053cafc0 (patch) | |
tree | f187f85a97744bd0468290975e5ec4d10054b25b /osdep/macOS_swift_bridge.h | |
parent | 661f45377a17635125ae36f0b8a3487ae13cf606 (diff) | |
download | mpv-86fa9b18a3619a379a597ca0902c23dc053cafc0.tar.bz2 mpv-86fa9b18a3619a379a597ca0902c23dc053cafc0.tar.xz |
osdep/mac: make mac naming of files, folders and function consistent
rename all macOS namings (osx, macosx, macOS, macos, apple) to mac, to
make naming consistent.
Diffstat (limited to 'osdep/macOS_swift_bridge.h')
-rw-r--r-- | osdep/macOS_swift_bridge.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/osdep/macOS_swift_bridge.h b/osdep/macOS_swift_bridge.h deleted file mode 100644 index 72be85274a..0000000000 --- a/osdep/macOS_swift_bridge.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * This file is part of mpv. - * - * mpv is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * mpv is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with mpv. If not, see <http://www.gnu.org/licenses/>. - */ - -// including frameworks here again doesn't make sense, but otherwise the swift -// compiler doesn't include the needed headers in our generated header file -#import <IOKit/pwr_mgt/IOPMLib.h> -#import <QuartzCore/QuartzCore.h> - -#include "player/client.h" -#include "video/out/libmpv.h" -#include "libmpv/render_gl.h" - -#include "options/m_config.h" -#include "player/core.h" -#include "input/input.h" -#include "input/event.h" -#include "video/out/win_state.h" - -#include "osdep/macosx_application_objc.h" -#include "osdep/macosx_events_objc.h" - - -// complex macros won't get imported to Swift so we have to reassign them -static int SWIFT_MBTN_LEFT = MP_MBTN_LEFT; -static int SWIFT_MBTN_MID = MP_MBTN_MID; -static int SWIFT_MBTN_RIGHT = MP_MBTN_RIGHT; -static int SWIFT_WHEEL_UP = MP_WHEEL_UP; -static int SWIFT_WHEEL_DOWN = MP_WHEEL_DOWN; -static int SWIFT_WHEEL_LEFT = MP_WHEEL_LEFT; -static int SWIFT_WHEEL_RIGHT = MP_WHEEL_RIGHT; -static int SWIFT_MBTN_BACK = MP_MBTN_BACK; -static int SWIFT_MBTN_FORWARD = MP_MBTN_FORWARD; -static int SWIFT_MBTN9 = MP_MBTN9; - -static int SWIFT_KEY_MOUSE_LEAVE = MP_KEY_MOUSE_LEAVE; -static int SWIFT_KEY_MOUSE_ENTER = MP_KEY_MOUSE_ENTER; - -// only used from Swift files and therefore seen as unused by the c compiler -static void SWIFT_TARRAY_STRING_APPEND(void *t, char ***a, int *i, char *s) __attribute__ ((unused)); - -static void SWIFT_TARRAY_STRING_APPEND(void *t, char ***a, int *i, char *s) -{ - MP_TARRAY_APPEND(t, *a, *i, s); -} |