Skip to content

Commit

Permalink
Merge pull request #1128 from mrolappe/darlingserver-stubs-MediaAcces…
Browse files Browse the repository at this point in the history
…sibility

MediaAccessibility framework stubs
  • Loading branch information
facekapow authored Apr 4, 2022
2 parents 7d09e23 + edc2a7c commit d3fe242
Show file tree
Hide file tree
Showing 5 changed files with 1,781 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/frameworks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ add_subdirectory(JavaRuntimeSupport)
add_subdirectory(JavaVM)
add_subdirectory(LocalAuthentication)
add_subdirectory(MapKit)
add_subdirectory(MediaAccessibility)
add_subdirectory(Metal)
add_subdirectory(MetalKit)
add_subdirectory(ModelIO)
Expand Down
16 changes: 16 additions & 0 deletions src/frameworks/MediaAccessibility/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
project(MediaAccessibility)

set(DYLIB_COMPAT_VERSION "1.0.0")
set(DYLIB_CURRENT_VERSION "62.0.0")

add_framework(MediaAccessibility
FAT
CURRENT_VERSION
VERSION "A"

SOURCES
src/MediaAccessibility.c

DEPENDENCIES
system
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/


#ifndef _MediaAccessibility_H_
#define _MediaAccessibility_H_

void* MAAudibleMediaCopyPreferredCharacteristics(void);
void* MAAudibleMediaPrefCopyPreferDescriptiveVideo(void);
void* MAAudibleMediaPrefResetAll(void);
void* MAAudibleMediaPrefSetPreferDescriptiveVideo(void);
void* MACaptionAppearanceAddPreferredLanguage(void);
void* MACaptionAppearanceAddSelectedLanguage(void);
void* MACaptionAppearanceCopyBackgroundColor(void);
void* MACaptionAppearanceCopyFontDescriptorForLanguage(void);
void* MACaptionAppearanceCopyFontDescriptorForStyle(void);
void* MACaptionAppearanceCopyFontDescriptorWithStrokeForStyle(void);
void* MACaptionAppearanceCopyFontForStyle(void);
void* MACaptionAppearanceCopyForegroundColor(void);
void* MACaptionAppearanceCopyPreferredCaptioningMediaCharacteristics(void);
void* MACaptionAppearanceCopyPreferredLanguages(void);
void* MACaptionAppearanceCopySelectedLanguages(void);
void* MACaptionAppearanceCopyStrokeColor(void);
void* MACaptionAppearanceCopyWindowColor(void);
void* MACaptionAppearanceDidDisplayCaptions(void);
void* MACaptionAppearanceGetBackgroundOpacity(void);
void* MACaptionAppearanceGetDisplayType(void);
void* MACaptionAppearanceGetForegroundOpacity(void);
void* MACaptionAppearanceGetRelativeCharacterSize(void);
void* MACaptionAppearanceGetShowCaptions(void);
void* MACaptionAppearanceGetShowCaptionsWhenAvailable(void);
void* MACaptionAppearanceGetStrokeWidth(void);
void* MACaptionAppearanceGetTextEdgeStyle(void);
void* MACaptionAppearanceGetWindowOpacity(void);
void* MACaptionAppearanceGetWindowRoundedCornerRadius(void);
void* MACaptionAppearancePrefCopyActiveProfileID(void);
void* MACaptionAppearancePrefCopyBackgroundColor(void);
void* MACaptionAppearancePrefCopyBackgroundOpacity(void);
void* MACaptionAppearancePrefCopyDisplayType(void);
void* MACaptionAppearancePrefCopyFontDescriptorForStyle(void);
void* MACaptionAppearancePrefCopyFontForStyle(void);
void* MACaptionAppearancePrefCopyFontSpecifiedByUserForStyle(void);
void* MACaptionAppearancePrefCopyForegroundColor(void);
void* MACaptionAppearancePrefCopyForegroundOpacity(void);
void* MACaptionAppearancePrefCopyPreferAccessibleCaptions(void);
void* MACaptionAppearancePrefCopyPreferredLanguages(void);
void* MACaptionAppearancePrefCopyProfileIDs(void);
void* MACaptionAppearancePrefCopyProfileName(void);
void* MACaptionAppearancePrefCopyProfileOrder(void);
void* MACaptionAppearancePrefCopyRelativeCharacterSize(void);
void* MACaptionAppearancePrefCopyShowCaptionsWhenAvailable(void);
void* MACaptionAppearancePrefCopySystemLanguage(void);
void* MACaptionAppearancePrefCopyTextEdgeStyle(void);
void* MACaptionAppearancePrefCopyUsesAppleLookAndFeel(void);
void* MACaptionAppearancePrefCopyVideoOverrideBackgroundColor(void);
void* MACaptionAppearancePrefCopyVideoOverrideBackgroundOpacity(void);
void* MACaptionAppearancePrefCopyVideoOverrideFontForStyle(void);
void* MACaptionAppearancePrefCopyVideoOverrideForegroundColor(void);
void* MACaptionAppearancePrefCopyVideoOverrideForegroundOpacity(void);
void* MACaptionAppearancePrefCopyVideoOverrideRelativeCharSize(void);
void* MACaptionAppearancePrefCopyVideoOverrideRelativeCharacterSize(void);
void* MACaptionAppearancePrefCopyVideoOverrideTextEdgeStyle(void);
void* MACaptionAppearancePrefCopyVideoOverrideWindowColor(void);
void* MACaptionAppearancePrefCopyVideoOverrideWindowOpacity(void);
void* MACaptionAppearancePrefCopyWindowColor(void);
void* MACaptionAppearancePrefCopyWindowOpacity(void);
void* MACaptionAppearancePrefCopyWindowRoundedCornerRadius(void);
void* MACaptionAppearancePrefCreateNewProfileFromProfile(void);
void* MACaptionAppearancePrefCreateNewProfileID(void);
void* MACaptionAppearancePrefGetRelativeCharSize(void);
void* MACaptionAppearancePrefIsProfileEditable(void);
void* MACaptionAppearancePrefRemoveProfile(void);
void* MACaptionAppearancePrefResetAll(void);
void* MACaptionAppearancePrefResetProfile(void);
void* MACaptionAppearancePrefRestoreState(void);
void* MACaptionAppearancePrefSaveState(void);
void* MACaptionAppearancePrefSetActiveProfileID(void);
void* MACaptionAppearancePrefSetAllowNullProfile(void);
void* MACaptionAppearancePrefSetBackgroundColor(void);
void* MACaptionAppearancePrefSetBackgroundOpacity(void);
void* MACaptionAppearancePrefSetDisplayType(void);
void* MACaptionAppearancePrefSetFontDescriptorForStyle(void);
void* MACaptionAppearancePrefSetFontForStyle(void);
void* MACaptionAppearancePrefSetFontSpecifiedByUserForStyle(void);
void* MACaptionAppearancePrefSetForegroundColor(void);
void* MACaptionAppearancePrefSetForegroundOpacity(void);
void* MACaptionAppearancePrefSetPreferAccessibleCaptions(void);
void* MACaptionAppearancePrefSetPreferredLanguages(void);
void* MACaptionAppearancePrefSetProfileName(void);
void* MACaptionAppearancePrefSetProfileOrder(void);
void* MACaptionAppearancePrefSetRelativeCharSize(void);
void* MACaptionAppearancePrefSetRelativeCharacterSize(void);
void* MACaptionAppearancePrefSetShowCaptionsWhenAvailable(void);
void* MACaptionAppearancePrefSetSystemLanguageOverride(void);
void* MACaptionAppearancePrefSetTextEdgeStyle(void);
void* MACaptionAppearancePrefSetUsesAppleLookAndFeel(void);
void* MACaptionAppearancePrefSetVideoOverrideBackgroundColor(void);
void* MACaptionAppearancePrefSetVideoOverrideBackgroundOpacity(void);
void* MACaptionAppearancePrefSetVideoOverrideFontForStyle(void);
void* MACaptionAppearancePrefSetVideoOverrideForegroundColor(void);
void* MACaptionAppearancePrefSetVideoOverrideForegroundOpacity(void);
void* MACaptionAppearancePrefSetVideoOverrideRelativeCharSize(void);
void* MACaptionAppearancePrefSetVideoOverrideRelativeCharacterSize(void);
void* MACaptionAppearancePrefSetVideoOverrideTextEdgeStyle(void);
void* MACaptionAppearancePrefSetVideoOverrideWindowColor(void);
void* MACaptionAppearancePrefSetVideoOverrideWindowOpacity(void);
void* MACaptionAppearancePrefSetWindowColor(void);
void* MACaptionAppearancePrefSetWindowOpacity(void);
void* MACaptionAppearancePrefSetWindowRoundedCornerRadius(void);
void* MACaptionAppearanceSetDidDisplayCaptionsCallback(void);
void* MACaptionAppearanceSetDisplayType(void);
void* MACaptionAppearanceSetShowCaptions(void);
void* MADisplayFilterCombine(void);
void* MADisplayFilterCopySystemFilter(void);
void* MADisplayFilterCreateBlueColorCorrection(void);
void* MADisplayFilterCreateBrightnessAdjust(void);
void* MADisplayFilterCreateGrayscale(void);
void* MADisplayFilterCreateGreenColorCorrection(void);
void* MADisplayFilterCreateIdentity(void);
void* MADisplayFilterCreateInterpolated(void);
void* MADisplayFilterCreateRedBlack(void);
void* MADisplayFilterCreateRedColorCorrection(void);
void* MADisplayFilterCreateRedNightMode(void);
void* MADisplayFilterCreateSaturation(void);
void* MADisplayFilterCreateSingleColor(void);
void* MADisplayFilterCreateTwoColor(void);
void* MADisplayFilterCreateWarmthAdjust(void);
void* MADisplayFilterCreateYellowBlack(void);
void* MADisplayFilterCreateYellowBlue(void);
void* MADisplayFilterGetGain(void);
void* MADisplayFilterGetMatrix(void);
void* MADisplayFilterGetPostOffsets(void);
void* MADisplayFilterGetReduceWhitePoint(void);
void* MADisplayFilterGetTypeID(void);
void* MADisplayFilterInversionCompensationForNightShift(void);
void* MADisplayFilterPrefCopyCategoriesForCurrentPlatform(void);
void* MADisplayFilterPrefGetBlueColorCorrectionIntensity(void);
void* MADisplayFilterPrefGetBrightnessIntensity(void);
void* MADisplayFilterPrefGetCategoryEnabled(void);
void* MADisplayFilterPrefGetGreenColorCorrectionIntensity(void);
void* MADisplayFilterPrefGetRedColorCorrectionIntensity(void);
void* MADisplayFilterPrefGetReduceWhitePointIntensity(void);
void* MADisplayFilterPrefGetSingleColorHue(void);
void* MADisplayFilterPrefGetSingleColorIntensity(void);
void* MADisplayFilterPrefGetType(void);
void* MADisplayFilterPrefGetWarmthIntensity(void);
void* MADisplayFilterPrefPossibleTypesForCategory(void);
void* MADisplayFilterPrefResetAll(void);
void* MADisplayFilterPrefSetBlueColorCorrectionIntensity(void);
void* MADisplayFilterPrefSetBrightnessIntensity(void);
void* MADisplayFilterPrefSetCategoryEnabled(void);
void* MADisplayFilterPrefSetGreenColorCorrectionIntensity(void);
void* MADisplayFilterPrefSetRedColorCorrectionIntensity(void);
void* MADisplayFilterPrefSetReduceWhitePointIntensity(void);
void* MADisplayFilterPrefSetSingleColorHue(void);
void* MADisplayFilterPrefSetSingleColorIntensity(void);
void* MADisplayFilterPrefSetType(void);
void* MADisplayFilterPrefSetWarmthIntensity(void);
void* MADisplayFilterPrefSuspendNotifications(void);
void* MADisplayFilterSetGain(void);
void* MADisplayFilterSetMatrix(void);
void* MADisplayFilterSetPostOffsets(void);
void* MADisplayFilterSetReduceWhitePoint(void);
void* MAImageCaptioningCopyCaption(void);
void* MAImageCaptioningCopyCaptionWithSource(void);
void* MAImageCaptioningCopyMetadataTagPath(void);
void* MAImageCaptioningSetCaption(void);
void* MALegibleOutputDidOutputAttributedStrings(void);
void* MALegibleOutputDidOutputAttributedStringsRegisterCallback(void);
void* MATestingCopyProfileIDs(void);
void* MAXCaptionAppearanceBehaviorCopyBackgroundColor(void);
void* MAXCaptionAppearanceBehaviorCopyBackgroundOpacity(void);
void* MAXCaptionAppearanceBehaviorCopyFontForStyle(void);
void* MAXCaptionAppearanceBehaviorCopyForegroundColor(void);
void* MAXCaptionAppearanceBehaviorCopyForegroundOpacity(void);
void* MAXCaptionAppearanceBehaviorCopyRelativeCharacterSize(void);
void* MAXCaptionAppearanceBehaviorCopyWindowColor(void);
void* MAXCaptionAppearanceBehaviorCopyWindowOpacity(void);
void* MAXCaptionAppearanceBehaviorCopyWindowRoundedCornerRadius(void);
void* MAXCaptionAppearanceBehaviorGetTextEdgeStyle(void);
void* MAXCaptionAppearanceCopyBackgroundColor(void);
void* MAXCaptionAppearanceCopyFontForStyle(void);
void* MAXCaptionAppearanceCopyForegroundColor(void);
void* MAXCaptionAppearanceCopyPreferredLanguages(void);
void* MAXCaptionAppearanceCopyWindowColor(void);
void* MAXCaptionAppearanceGetBackgroundOpacity(void);
void* MAXCaptionAppearanceGetForegroundOpacity(void);
void* MAXCaptionAppearanceGetRelativeCharacterSize(void);
void* MAXCaptionAppearanceGetTextEdgeStyle(void);
void* MAXCaptionAppearanceGetWindowOpacity(void);
void* MAXCaptionAppearanceGetWindowRoundedCornerRadius(void);
void* MAXCaptionAppearanceHasUserDefinedValues(void);
void* MAXCaptionAppearancePrefCopyActiveProfileID(void);
void* MAXCaptionAppearancePrefCopyBackgroundColor(void);
void* MAXCaptionAppearancePrefCopyBackgroundOpacity(void);
void* MAXCaptionAppearancePrefCopyFontForStyle(void);
void* MAXCaptionAppearancePrefCopyForegroundColor(void);
void* MAXCaptionAppearancePrefCopyForegroundOpacity(void);
void* MAXCaptionAppearancePrefCopyPreferredLanguages(void);
void* MAXCaptionAppearancePrefCopyProfileIDs(void);
void* MAXCaptionAppearancePrefCopyProfileName(void);
void* MAXCaptionAppearancePrefCopyProfileOrder(void);
void* MAXCaptionAppearancePrefCopyRelativeCharacterSize(void);
void* MAXCaptionAppearancePrefCopyShowCaptionsWhenAvailable(void);
void* MAXCaptionAppearancePrefCopyTextEdgeStyle(void);
void* MAXCaptionAppearancePrefCopyUsesAppleLookAndFeel(void);
void* MAXCaptionAppearancePrefCopyVideoOverrideBackgroundColor(void);
void* MAXCaptionAppearancePrefCopyVideoOverrideBackgroundOpacity(void);
void* MAXCaptionAppearancePrefCopyVideoOverrideFontForStyle(void);
void* MAXCaptionAppearancePrefCopyVideoOverrideForegroundColor(void);
void* MAXCaptionAppearancePrefCopyVideoOverrideForegroundOpacity(void);
void* MAXCaptionAppearancePrefCopyVideoOverrideRelativeCharacterSize(void);
void* MAXCaptionAppearancePrefCopyVideoOverrideTextEdgeStyle(void);
void* MAXCaptionAppearancePrefCopyVideoOverrideWindowColor(void);
void* MAXCaptionAppearancePrefCopyVideoOverrideWindowOpacity(void);
void* MAXCaptionAppearancePrefCopyWindowColor(void);
void* MAXCaptionAppearancePrefCopyWindowOpacity(void);
void* MAXCaptionAppearancePrefCopyWindowRoundedCornerRadius(void);
void* MAXCaptionAppearancePrefCreateNewProfileFromProfile(void);
void* MAXCaptionAppearancePrefCreateNewProfileID(void);
void* MAXCaptionAppearancePrefIsProfileEditable(void);
void* MAXCaptionAppearancePrefRemoveProfile(void);
void* MAXCaptionAppearancePrefResetAll(void);
void* MAXCaptionAppearancePrefResetProfile(void);
void* MAXCaptionAppearancePrefSetActiveProfileID(void);
void* MAXCaptionAppearancePrefSetBackgroundColor(void);
void* MAXCaptionAppearancePrefSetBackgroundOpacity(void);
void* MAXCaptionAppearancePrefSetFontForStyle(void);
void* MAXCaptionAppearancePrefSetForegroundColor(void);
void* MAXCaptionAppearancePrefSetForegroundOpacity(void);
void* MAXCaptionAppearancePrefSetPreferredLanguages(void);
void* MAXCaptionAppearancePrefSetProfileName(void);
void* MAXCaptionAppearancePrefSetProfileOrder(void);
void* MAXCaptionAppearancePrefSetRelativeCharacterSize(void);
void* MAXCaptionAppearancePrefSetShowCaptionsWhenAvailable(void);
void* MAXCaptionAppearancePrefSetTextEdgeStyle(void);
void* MAXCaptionAppearancePrefSetUsesAppleLookAndFeel(void);
void* MAXCaptionAppearancePrefSetVideoOverrideBackgroundColor(void);
void* MAXCaptionAppearancePrefSetVideoOverrideBackgroundOpacity(void);
void* MAXCaptionAppearancePrefSetVideoOverrideFontForStyle(void);
void* MAXCaptionAppearancePrefSetVideoOverrideForegroundColor(void);
void* MAXCaptionAppearancePrefSetVideoOverrideForegroundOpacity(void);
void* MAXCaptionAppearancePrefSetVideoOverrideRelativeCharacterSize(void);
void* MAXCaptionAppearancePrefSetVideoOverrideTextEdgeStyle(void);
void* MAXCaptionAppearancePrefSetVideoOverrideWindowColor(void);
void* MAXCaptionAppearancePrefSetVideoOverrideWindowOpacity(void);
void* MAXCaptionAppearancePrefSetWindowColor(void);
void* MAXCaptionAppearancePrefSetWindowOpacity(void);
void* MAXCaptionAppearancePrefSetWindowRoundedCornerRadius(void);
void* MAXCaptionAppearanceSetPreferredLanguage(void);
void* MAXCaptionAppearanceShowCaptionsWhenAvailable(void);

#endif
Loading

0 comments on commit d3fe242

Please sign in to comment.