this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Many, many fixes/additions for PyObjC

* Fix the Carbon framework to properly reexport the right frameworks
* Add many missing Carbon-related type definitions
* A couple of fixes in some submodules (see their commits)

+3841 -31
+3
.gitmodules
··· 369 369 [submodule "src/external/openjdk"] 370 370 path = src/external/openjdk 371 371 url = ../openjdk.git 372 + [submodule "src/external/pyobjc"] 373 + path = src/external/pyobjc 374 + url = ../darling-pyobjc.git
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks
··· 1 + Versions/A/Frameworks
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Headers
··· 1 + Versions/Current/Headers
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/Headers
··· 1 + ../../../../../../../../../../../../../../../../src/frameworks/Carbon/CommonPanels/include/CommonPanels
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/Current
··· 1 + A
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Headers
··· 1 + Versions/Current/Headers
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Headers
··· 1 + ../../../../../../../../../../../../../../../../src/frameworks/Carbon/HIToolbox/include/HIToolbox
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/Current
··· 1 + A
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Headers
··· 1 + Versions/Current/Headers
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Headers
··· 1 + ../../../../../../../../../../../../../../../../src/frameworks/Carbon/Help/include/Help
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/Current
··· 1 + A
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Headers
··· 1 + Versions/Current/Headers
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/Headers
··· 1 + ../../../../../../../../../../../../../../../../src/frameworks/Carbon/ImageCapture/include/ImageCapture
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/Current
··· 1 + A
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Headers
··· 1 + Versions/Current/Headers
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Headers
··· 1 + ../../../../../../../../../../../../../../../../src/frameworks/Carbon/Ink/include/Ink
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/Current
··· 1 + A
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Headers
··· 1 + Versions/Current/Headers
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/Headers
··· 1 + ../../../../../../../../../../../../../../../../src/frameworks/Carbon/OpenScripting/include/OpenScripting
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/Current
··· 1 + A
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Headers
··· 1 + Versions/Current/Headers
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Headers
··· 1 + ../../../../../../../../../../../../../../../../src/frameworks/Carbon/Print/include/Print
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/Current
··· 1 + A
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Headers
··· 1 + Versions/Current/Headers
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/Headers
··· 1 + ../../../../../../../../../../../../../../../../src/frameworks/Carbon/SecurityHI/include/SecurityHI
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/Current
··· 1 + A
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Headers
··· 1 + Versions/Current/Headers
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/Headers
··· 1 + ../../../../../../../../../../../../../../../../src/frameworks/Carbon/SpeechRecognition/include/SpeechRecognition
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/Current
··· 1 + A
+35 -1
cmake/use_ld64.cmake
··· 128 128 -Wl,-dylib_file,/usr/lib/libenergytrace.dylib:${CMAKE_BINARY_DIR}/src/external/energytrace/libenergytrace.dylib \ 129 129 -Wl,-dylib_file,/System/Library/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory:${CMAKE_BINARY_DIR}/src/frameworks/CFOpenDirectory/CFOpenDirectory \ 130 130 -Wl,-dylib_file,/usr/lib/libnetwork.dylib:${CMAKE_BINARY_DIR}/src/external/libnetwork/libnetwork.dylib \ 131 - -Wl,-dylib_file,/usr/lib/system/libcache.dylib:${CMAKE_BINARY_DIR}/src/libcache/libcache.dylib") 131 + -Wl,-dylib_file,/usr/lib/system/libcache.dylib:${CMAKE_BINARY_DIR}/src/libcache/libcache.dylib \ 132 + -Wl,-dylib_file,/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels:${CMAKE_BINARY_DIR}/src/frameworks/Carbon/CommonPanels/CommonPanels \ 133 + -Wl,-dylib_file,/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help:${CMAKE_BINARY_DIR}/src/frameworks/Carbon/Help/Help \ 134 + -Wl,-dylib_file,/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox:${CMAKE_BINARY_DIR}/src/frameworks/Carbon/HIToolbox/HIToolbox \ 135 + -Wl,-dylib_file,/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture:${CMAKE_BINARY_DIR}/src/frameworks/Carbon/ImageCapture/ImageCapture \ 136 + -Wl,-dylib_file,/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink:${CMAKE_BINARY_DIR}/src/frameworks/Carbon/Ink/Ink \ 137 + -Wl,-dylib_file,/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting:${CMAKE_BINARY_DIR}/src/frameworks/Carbon/OpenScripting/OpenScripting \ 138 + -Wl,-dylib_file,/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print:${CMAKE_BINARY_DIR}/src/frameworks/Carbon/Print/Print \ 139 + -Wl,-dylib_file,/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI:${CMAKE_BINARY_DIR}/src/frameworks/Carbon/SecurityHI/SecurityHI \ 140 + -Wl,-dylib_file,/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition:${CMAKE_BINARY_DIR}/src/frameworks/Carbon/SpeechRecognition/SpeechRecognition \ 141 + -Wl,-dylib_file,/System/Library/Frameworks/CoreData.framework/Versions/A/CoreData:${CMAKE_BINARY_DIR}/src/external/cocotron/CoreData/CoreData \ 142 + -Wl,-dylib_file,/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore:${CMAKE_BINARY_DIR}/src/external/cocotron/QuartzCore/QuartzCore \ 143 + -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL:${CMAKE_BINARY_DIR}/src/frameworks/OpenGL/OpenGL \ 144 + -Wl,-dylib_file,/System/Library/PrivateFrameworks/Onyx2D.framework/Versions/A/Onyx2D:${CMAKE_BINARY_DIR}/src/external/cocotron/Onyx2D/Onyx2D \ 145 + -Wl,-dylib_file,/usr/lib/darling/libelfloader.dylib:${CMAKE_BINARY_DIR}/src/libelfloader/libelfloader.dylib \ 146 + -Wl,-dylib_file,/usr/lib/native/libavcodec.dylib:${CMAKE_BINARY_DIR}/src/native/libavcodec.dylib \ 147 + -Wl,-dylib_file,/usr/lib/native/libavformat.dylib:${CMAKE_BINARY_DIR}/src/native/libavformat.dylib \ 148 + -Wl,-dylib_file,/usr/lib/native/libavresample.dylib:${CMAKE_BINARY_DIR}/src/native/libavresample.dylib \ 149 + -Wl,-dylib_file,/usr/lib/native/libavutil.dylib:${CMAKE_BINARY_DIR}/src/native/libavutil.dylib \ 150 + -Wl,-dylib_file,/usr/lib/native/libcairo.dylib:${CMAKE_BINARY_DIR}/src/native/libcairo.dylib \ 151 + -Wl,-dylib_file,/usr/lib/native/libdbus.dylib:${CMAKE_BINARY_DIR}/src/native/libdbus.dylib \ 152 + -Wl,-dylib_file,/usr/lib/native/libEGL.dylib:${CMAKE_BINARY_DIR}/src/native/libEGL.dylib \ 153 + -Wl,-dylib_file,/usr/lib/native/libfontconfig.dylib:${CMAKE_BINARY_DIR}/src/native/libfontconfig.dylib \ 154 + -Wl,-dylib_file,/usr/lib/native/libFreeType.dylib:${CMAKE_BINARY_DIR}/src/native/libFreeType.dylib \ 155 + -Wl,-dylib_file,/usr/lib/native/libfuse.dylib:${CMAKE_BINARY_DIR}/src/native/libfuse.dylib \ 156 + -Wl,-dylib_file,/usr/lib/native/libgif.dylib:${CMAKE_BINARY_DIR}/src/native/libgif.dylib \ 157 + -Wl,-dylib_file,/usr/lib/native/libjpeg.dylib:${CMAKE_BINARY_DIR}/src/native/libjpeg.dylib \ 158 + -Wl,-dylib_file,/usr/lib/native/libpng.dylib:${CMAKE_BINARY_DIR}/src/native/libpng.dylib \ 159 + -Wl,-dylib_file,/usr/lib/native/libpulse.dylib:${CMAKE_BINARY_DIR}/src/native/libpulse.dylib \ 160 + -Wl,-dylib_file,/usr/lib/native/libtiff.dylib:${CMAKE_BINARY_DIR}/src/native/libtiff.dylib \ 161 + -Wl,-dylib_file,/usr/lib/native/libX11.dylib:${CMAKE_BINARY_DIR}/src/native/libX11.dylib \ 162 + -Wl,-dylib_file,/usr/lib/native/libXcursor.dylib:${CMAKE_BINARY_DIR}/src/native/libXcursor.dylib \ 163 + -Wl,-dylib_file,/usr/lib/native/libXext.dylib:${CMAKE_BINARY_DIR}/src/native/libXext.dylib \ 164 + -Wl,-dylib_file,/usr/lib/native/libxkbfile.dylib:${CMAKE_BINARY_DIR}/src/native/libxkbfile.dylib \ 165 + -Wl,-dylib_file,/usr/lib/native/libXRandR.dylib:${CMAKE_BINARY_DIR}/src/native/libXRandR.dylib") 132 166 133 167 add_dependencies(${target} ${APPLE_TARGET_TRIPLET_PRIMARY}-ld) 134 168
+1
framework-include/CommonPanels
··· 1 + ../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/CommonPanels.framework/Headers
+1
framework-include/HIToolbox
··· 1 + ../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers
+1
framework-include/Help
··· 1 + ../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/Help.framework/Headers
+1
framework-include/ImageCapture
··· 1 + ../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/ImageCapture.framework/Headers
+1
framework-include/Ink
··· 1 + ../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/Ink.framework/Headers
+1
framework-include/OpenScripting
··· 1 + ../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/OpenScripting.framework/Headers
+1
framework-include/Print
··· 1 + ../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/Print.framework/Headers
+1
framework-include/SecurityHI
··· 1 + ../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SecurityHI.framework/Headers
+1
framework-include/SpeechRecognition
··· 1 + ../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/SpeechRecognition.framework/Headers
+1
src/CMakeLists.txt
··· 195 195 add_subdirectory(csu) 196 196 add_subdirectory(external/BerkeleyDB) 197 197 add_subdirectory(external/python/2.7/Python-2.7.16) 198 + add_subdirectory(external/pyobjc) 198 199 add_subdirectory(external/ruby) 199 200 add_subdirectory(external/expat) 200 201 add_subdirectory(shellspawn)
-2
src/frameworks/AGL/src/AGL.c
··· 15 15 typedef void* AGLRendererInfo; 16 16 typedef void* AGLPixelFormat; 17 17 typedef void* AGLPbuffer; 18 - typedef void* GDHandle; 19 18 typedef void* HIViewRef; 20 - typedef void* WindowRef; 21 19 typedef uint32_t AGLDevice; 22 20 23 21 typedef void* AGLDrawable;
+3
src/frameworks/AddressBook/include/AddressBook/AddressBook.h
··· 585 585 #import <AddressBook/ABCardCollectionTableViewController.h> 586 586 #import <AddressBook/_ABPersonView.h> 587 587 588 + @protocol ABImageClient 589 + @end 590 + 588 591 void* ABAddressBookLocalizedString(void); 589 592 void* ABDeleteRecordsCommandNameForRecords(void); 590 593 void* ABEmailCertificateCopyMatchingUnexpired(void);
+16
src/frameworks/ApplicationServices/QD/include/QD/QD.h
··· 104 104 CSpecArray ctTable; 105 105 }; 106 106 107 + typedef struct OpaqueWindowPtr* WindowPtr; 108 + typedef WindowPtr WindowRef; 109 + 110 + typedef struct OpaqueGrafPtr* GrafPtr; 111 + typedef GrafPtr CGrafPtr; 112 + typedef CGrafPtr GWorldPtr; 113 + 114 + struct BitMap { 115 + Ptr baseAddr; 116 + short rowBytes; 117 + Rect bounds; 118 + }; 119 + typedef struct BitMap BitMap; 120 + typedef BitMap* BitMapPtr; 121 + 122 + 107 123 #endif
+43 -5
src/frameworks/Carbon/CMakeLists.txt
··· 1 1 project(Carbon) 2 2 3 + add_subdirectory(CommonPanels) 4 + add_subdirectory(Help) 5 + add_subdirectory(HIToolbox) 6 + add_subdirectory(ImageCapture) 7 + add_subdirectory(Ink) 8 + add_subdirectory(OpenScripting) 9 + add_subdirectory(Print) 10 + add_subdirectory(SecurityHI) 11 + add_subdirectory(SpeechRecognition) 12 + 3 13 set(DYLIB_COMPAT_VERSION "2.0.0") 4 14 set(DYLIB_CURRENT_VERSION "158.0.0") 5 15 ··· 10 20 11 21 SOURCES 12 22 src/Carbon.c 13 - src/constants.c 14 - HIToolbox/Keyboards.cpp 15 - HIToolbox/Events.cpp 16 - HIToolbox/MacWindows.cpp 17 - HIToolbox/TextInputSources.mm 18 23 19 24 DEPENDENCIES 25 + CommonPanels 26 + Help 27 + HIToolbox 28 + ImageCapture 29 + Ink 30 + OpenScripting 31 + Print 32 + SecurityHI 33 + SpeechRecognition 20 34 CoreFoundation 21 35 Foundation 22 36 system 23 37 ) 38 + 39 + set(CommonPanels_BUILD ${CMAKE_CURRENT_BINARY_DIR}/CommonPanels/CommonPanels) 40 + set(Help_BUILD ${CMAKE_CURRENT_BINARY_DIR}/Help/Help) 41 + set(HIToolbox_BUILD ${CMAKE_CURRENT_BINARY_DIR}/HIToolbox/HIToolbox) 42 + set(ImageCapture_BUILD ${CMAKE_CURRENT_BINARY_DIR}/ImageCapture/ImageCapture) 43 + set(Ink_BUILD ${CMAKE_CURRENT_BINARY_DIR}/Ink/Ink) 44 + set(OpenScripting_BUILD ${CMAKE_CURRENT_BINARY_DIR}/OpenScripting/OpenScripting) 45 + set(Print_BUILD ${CMAKE_CURRENT_BINARY_DIR}/Print/Print) 46 + set(SecurityHI_BUILD ${CMAKE_CURRENT_BINARY_DIR}/SecurityHI/SecurityHI) 47 + set(SpeechRecognition_BUILD ${CMAKE_CURRENT_BINARY_DIR}/SpeechRecognition/SpeechRecognition) 48 + 49 + reexport(Carbon CommonPanels ${CommonPanels_BUILD}) 50 + reexport(Carbon Help ${Help_BUILD}) 51 + reexport(Carbon HIToolbox ${HIToolbox_BUILD}) 52 + reexport(Carbon ImageCapture ${ImageCapture_BUILD}) 53 + reexport(Carbon Ink ${Ink_BUILD}) 54 + reexport(Carbon OpenScripting ${OpenScripting_BUILD}) 55 + reexport(Carbon Print ${Print_BUILD}) 56 + reexport(Carbon SecurityHI ${SecurityHI_BUILD}) 57 + reexport(Carbon SpeechRecognition ${SpeechRecognition_BUILD}) 58 + 59 + set(ApplicationServices_BUILD ${CMAKE_CURRENT_BINARY_DIR}/../ApplicationServices/ApplicationServices) 60 + 61 + reexport(Carbon ApplicationServices ${ApplicationServices_BUILD})
+19
src/frameworks/Carbon/CommonPanels/CMakeLists.txt
··· 1 + project(CommonPanels) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "101.0.0") 5 + 6 + add_framework(CommonPanels 7 + FAT 8 + CURRENT_VERSION 9 + VERSION "A" 10 + PARENT "Carbon" 11 + 12 + SOURCES 13 + src/CommonPanels.m 14 + 15 + DEPENDENCIES 16 + system 17 + objc 18 + Foundation 19 + )
+67
src/frameworks/Carbon/CommonPanels/include/CommonPanels/CommonPanels.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #ifndef _CommonPanels_H_ 22 + #define _CommonPanels_H_ 23 + 24 + #import <Foundation/Foundation.h> 25 + 26 + 27 + void* CCP_FontPanelClose(void); 28 + void* CCP_FontPanelGetSelection(void); 29 + void* CCP_FontPanelIsVisible(void); 30 + void* CCP_FontPanelOpen(void); 31 + void* CCP_FontPanelSelectFonts(void); 32 + void* CCP_NPickColor(void); 33 + void* CMCalibrateDisplay(void); 34 + void* Call_CommonCocoaPanels_NPickColor(void); 35 + void* DisposeCalibrateEventUPP(void); 36 + void* DisposeCalibrateUPP(void); 37 + void* DisposeCanCalibrateUPP(void); 38 + void* DisposeNColorChangedUPP(void); 39 + void* FCAddCollection(void); 40 + void* FCAddFontDescriptorToCollection(void); 41 + void* FCCopyCollectionNames(void); 42 + void* FCCopyFontDescriptorsInCollection(void); 43 + void* FCFontDescriptorCreateWithFontAttributes(void); 44 + void* FCFontDescriptorCreateWithName(void); 45 + void* FCRemoveCollection(void); 46 + void* FCRemoveFontDescriptorFromCollection(void); 47 + void* FPIsFontPanelVisible(void); 48 + void* FPShowHideFontPanel(void); 49 + void* GetColor(void); 50 + void* GetHandleApplicationEventsUPP(void); 51 + void* GetHandleWinEventsUPP(void); 52 + void* InvokeCalibrateEventUPP(void); 53 + void* InvokeCalibrateUPP(void); 54 + void* InvokeCanCalibrateUPP(void); 55 + void* InvokeNColorChangedUPP(void); 56 + void* LoadNSTypographyBundle(void); 57 + void* NPickColor(void); 58 + void* NewCalibrateEventUPP(void); 59 + void* NewCalibrateUPP(void); 60 + void* NewCanCalibrateUPP(void); 61 + void* NewNColorChangedUPP(void); 62 + void* SetFontInfoForSelection(void); 63 + void* SoftLinkingGetFunctionPointerFromBundleInDirectory(void); 64 + void* UserWantsColorPanelFromCommonCocoaPanels(void); 65 + void* _SoftLinkingLoadBundleFromLocation(void); 66 + 67 + #endif
+264
src/frameworks/Carbon/CommonPanels/src/CommonPanels.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <CommonPanels/CommonPanels.h> 22 + #include <stdlib.h> 23 + #include <stdio.h> 24 + 25 + static int verbose = 0; 26 + 27 + __attribute__((constructor)) 28 + static void initme(void) { 29 + verbose = getenv("STUB_VERBOSE") != NULL; 30 + } 31 + 32 + void* CCP_FontPanelClose(void) 33 + { 34 + if (verbose) puts("STUB: CCP_FontPanelClose called"); 35 + return NULL; 36 + } 37 + 38 + void* CCP_FontPanelGetSelection(void) 39 + { 40 + if (verbose) puts("STUB: CCP_FontPanelGetSelection called"); 41 + return NULL; 42 + } 43 + 44 + void* CCP_FontPanelIsVisible(void) 45 + { 46 + if (verbose) puts("STUB: CCP_FontPanelIsVisible called"); 47 + return NULL; 48 + } 49 + 50 + void* CCP_FontPanelOpen(void) 51 + { 52 + if (verbose) puts("STUB: CCP_FontPanelOpen called"); 53 + return NULL; 54 + } 55 + 56 + void* CCP_FontPanelSelectFonts(void) 57 + { 58 + if (verbose) puts("STUB: CCP_FontPanelSelectFonts called"); 59 + return NULL; 60 + } 61 + 62 + void* CCP_NPickColor(void) 63 + { 64 + if (verbose) puts("STUB: CCP_NPickColor called"); 65 + return NULL; 66 + } 67 + 68 + void* CMCalibrateDisplay(void) 69 + { 70 + if (verbose) puts("STUB: CMCalibrateDisplay called"); 71 + return NULL; 72 + } 73 + 74 + void* Call_CommonCocoaPanels_NPickColor(void) 75 + { 76 + if (verbose) puts("STUB: Call_CommonCocoaPanels_NPickColor called"); 77 + return NULL; 78 + } 79 + 80 + void* DisposeCalibrateEventUPP(void) 81 + { 82 + if (verbose) puts("STUB: DisposeCalibrateEventUPP called"); 83 + return NULL; 84 + } 85 + 86 + void* DisposeCalibrateUPP(void) 87 + { 88 + if (verbose) puts("STUB: DisposeCalibrateUPP called"); 89 + return NULL; 90 + } 91 + 92 + void* DisposeCanCalibrateUPP(void) 93 + { 94 + if (verbose) puts("STUB: DisposeCanCalibrateUPP called"); 95 + return NULL; 96 + } 97 + 98 + void* DisposeNColorChangedUPP(void) 99 + { 100 + if (verbose) puts("STUB: DisposeNColorChangedUPP called"); 101 + return NULL; 102 + } 103 + 104 + void* FCAddCollection(void) 105 + { 106 + if (verbose) puts("STUB: FCAddCollection called"); 107 + return NULL; 108 + } 109 + 110 + void* FCAddFontDescriptorToCollection(void) 111 + { 112 + if (verbose) puts("STUB: FCAddFontDescriptorToCollection called"); 113 + return NULL; 114 + } 115 + 116 + void* FCCopyCollectionNames(void) 117 + { 118 + if (verbose) puts("STUB: FCCopyCollectionNames called"); 119 + return NULL; 120 + } 121 + 122 + void* FCCopyFontDescriptorsInCollection(void) 123 + { 124 + if (verbose) puts("STUB: FCCopyFontDescriptorsInCollection called"); 125 + return NULL; 126 + } 127 + 128 + void* FCFontDescriptorCreateWithFontAttributes(void) 129 + { 130 + if (verbose) puts("STUB: FCFontDescriptorCreateWithFontAttributes called"); 131 + return NULL; 132 + } 133 + 134 + void* FCFontDescriptorCreateWithName(void) 135 + { 136 + if (verbose) puts("STUB: FCFontDescriptorCreateWithName called"); 137 + return NULL; 138 + } 139 + 140 + void* FCRemoveCollection(void) 141 + { 142 + if (verbose) puts("STUB: FCRemoveCollection called"); 143 + return NULL; 144 + } 145 + 146 + void* FCRemoveFontDescriptorFromCollection(void) 147 + { 148 + if (verbose) puts("STUB: FCRemoveFontDescriptorFromCollection called"); 149 + return NULL; 150 + } 151 + 152 + void* FPIsFontPanelVisible(void) 153 + { 154 + if (verbose) puts("STUB: FPIsFontPanelVisible called"); 155 + return NULL; 156 + } 157 + 158 + void* FPShowHideFontPanel(void) 159 + { 160 + if (verbose) puts("STUB: FPShowHideFontPanel called"); 161 + return NULL; 162 + } 163 + 164 + void* GetColor(void) 165 + { 166 + if (verbose) puts("STUB: GetColor called"); 167 + return NULL; 168 + } 169 + 170 + void* GetHandleApplicationEventsUPP(void) 171 + { 172 + if (verbose) puts("STUB: GetHandleApplicationEventsUPP called"); 173 + return NULL; 174 + } 175 + 176 + void* GetHandleWinEventsUPP(void) 177 + { 178 + if (verbose) puts("STUB: GetHandleWinEventsUPP called"); 179 + return NULL; 180 + } 181 + 182 + void* InvokeCalibrateEventUPP(void) 183 + { 184 + if (verbose) puts("STUB: InvokeCalibrateEventUPP called"); 185 + return NULL; 186 + } 187 + 188 + void* InvokeCalibrateUPP(void) 189 + { 190 + if (verbose) puts("STUB: InvokeCalibrateUPP called"); 191 + return NULL; 192 + } 193 + 194 + void* InvokeCanCalibrateUPP(void) 195 + { 196 + if (verbose) puts("STUB: InvokeCanCalibrateUPP called"); 197 + return NULL; 198 + } 199 + 200 + void* InvokeNColorChangedUPP(void) 201 + { 202 + if (verbose) puts("STUB: InvokeNColorChangedUPP called"); 203 + return NULL; 204 + } 205 + 206 + void* LoadNSTypographyBundle(void) 207 + { 208 + if (verbose) puts("STUB: LoadNSTypographyBundle called"); 209 + return NULL; 210 + } 211 + 212 + void* NPickColor(void) 213 + { 214 + if (verbose) puts("STUB: NPickColor called"); 215 + return NULL; 216 + } 217 + 218 + void* NewCalibrateEventUPP(void) 219 + { 220 + if (verbose) puts("STUB: NewCalibrateEventUPP called"); 221 + return NULL; 222 + } 223 + 224 + void* NewCalibrateUPP(void) 225 + { 226 + if (verbose) puts("STUB: NewCalibrateUPP called"); 227 + return NULL; 228 + } 229 + 230 + void* NewCanCalibrateUPP(void) 231 + { 232 + if (verbose) puts("STUB: NewCanCalibrateUPP called"); 233 + return NULL; 234 + } 235 + 236 + void* NewNColorChangedUPP(void) 237 + { 238 + if (verbose) puts("STUB: NewNColorChangedUPP called"); 239 + return NULL; 240 + } 241 + 242 + void* SetFontInfoForSelection(void) 243 + { 244 + if (verbose) puts("STUB: SetFontInfoForSelection called"); 245 + return NULL; 246 + } 247 + 248 + void* SoftLinkingGetFunctionPointerFromBundleInDirectory(void) 249 + { 250 + if (verbose) puts("STUB: SoftLinkingGetFunctionPointerFromBundleInDirectory called"); 251 + return NULL; 252 + } 253 + 254 + void* UserWantsColorPanelFromCommonCocoaPanels(void) 255 + { 256 + if (verbose) puts("STUB: UserWantsColorPanelFromCommonCocoaPanels called"); 257 + return NULL; 258 + } 259 + 260 + void* _SoftLinkingLoadBundleFromLocation(void) 261 + { 262 + if (verbose) puts("STUB: _SoftLinkingLoadBundleFromLocation called"); 263 + return NULL; 264 + }
+23
src/frameworks/Carbon/HIToolbox/CMakeLists.txt
··· 1 + project(HIToolbox) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "994.6.0") 5 + 6 + add_framework(HIToolbox 7 + FAT 8 + CURRENT_VERSION 9 + VERSION "A" 10 + PARENT "Carbon" 11 + 12 + SOURCES 13 + src/Keyboards.cpp 14 + src/Events.cpp 15 + src/MacWindows.cpp 16 + src/TextInputSources.mm 17 + src/constants.c 18 + 19 + DEPENDENCIES 20 + CoreFoundation 21 + Foundation 22 + system 23 + )
src/frameworks/Carbon/HIToolbox/Events.cpp src/frameworks/Carbon/HIToolbox/src/Events.cpp
src/frameworks/Carbon/HIToolbox/Keyboards.cpp src/frameworks/Carbon/HIToolbox/src/Keyboards.cpp
src/frameworks/Carbon/HIToolbox/MacWindows.cpp src/frameworks/Carbon/HIToolbox/src/MacWindows.cpp
+1 -6
src/frameworks/Carbon/HIToolbox/MacWindows.h src/frameworks/Carbon/HIToolbox/src/MacWindows.h
··· 5 5 #include "CoreServices/MacErrors.h" 6 6 #include "CoreServices/MacTypes.h" 7 7 #include <stdint.h> 8 + #include <QD/QD.h> 8 9 9 10 #pragma pack(2) 10 11 ··· 12 13 extern "C" { 13 14 #endif 14 15 15 - typedef int WindowRef; // mapped to X11 Window 16 16 typedef WindowRef HIWindowRef; 17 17 typedef int WindowGroupRef; 18 - typedef void* CGrafPtr; 19 18 20 19 typedef uint32_t WindowClass; 21 20 typedef OptionBits WindowAttributes; ··· 26 25 typedef void* TransitionWindowOptions; 27 26 typedef uint32_t WindowTransitionAction; 28 27 typedef uint32_t WindowTransitionEffect; 29 - 30 - typedef struct RGBColor { 31 - uint16_t components[3]; 32 - } RGBColor; 33 28 34 29 OSStatus CreateNewWindow(WindowClass cls, WindowAttributes attr, const Rect* rect, WindowRef* newWindow); 35 30 void DisposeWindow(WindowRef wnd);
src/frameworks/Carbon/HIToolbox/TextInputSources.h src/frameworks/Carbon/HIToolbox/src/TextInputSources.h
src/frameworks/Carbon/HIToolbox/TextInputSources.mm src/frameworks/Carbon/HIToolbox/src/TextInputSources.mm
+7
src/frameworks/Carbon/HIToolbox/include/HIToolbox/Drag.h
··· 1 + #ifndef _HITOOLBOX_DRAG_H_ 2 + #define _HITOOLBOX_DRAG_H_ 3 + 4 + typedef struct OpaqueDragRef* DragRef; 5 + typedef DragRef DragReference; 6 + 7 + #endif // _HITOOLBOX_DRAG_H_
+7
src/frameworks/Carbon/HIToolbox/include/HIToolbox/HIObject.h
··· 1 + #ifndef _HITOOLBOX_HIOBJECT_H_ 2 + #define _HITOOLBOX_HIOBJECT_H_ 3 + 4 + typedef struct OpaqueControlRef* ControlRef; 5 + typedef ControlRef ControlHandle; 6 + 7 + #endif // _HITOOLBOX_HIOBJECT_H_
+43
src/frameworks/Carbon/HIToolbox/include/HIToolbox/Lists.h
··· 1 + #include <CoreServices/CoreServices.h> 2 + #include <QD/QD.h> 3 + 4 + #include <HIToolbox/HIObject.h> 5 + 6 + typedef Point Cell; 7 + typedef Rect ListBounds; 8 + typedef char DataArray[32001]; 9 + typedef char* DataPtr; 10 + typedef DataPtr* DataHandle; 11 + typedef CALLBACK_API(short, ListSearchProcPtr)(Ptr aPtr, Ptr bPtr, short aLen, short bLen); 12 + typedef CALLBACK_API( Boolean , ListClickLoopProcPtr )(void); 13 + typedef STACK_UPP_TYPE(ListSearchProcPtr) ListSearchUPP; 14 + typedef STACK_UPP_TYPE(ListClickLoopProcPtr) ListClickLoopUPP; 15 + 16 + struct ListRec { 17 + Rect rView; 18 + GrafPtr port; 19 + Point indent; 20 + Point cellSize; 21 + ListBounds visible; 22 + ControlRef vScroll; 23 + ControlRef hScroll; 24 + SInt8 selFlags; 25 + Boolean lActive; 26 + SInt8 lReserved; 27 + SInt8 listFlags; 28 + long clikTime; 29 + Point clikLoc; 30 + Point mouseLoc; 31 + ListClickLoopUPP lClickLoop; 32 + Cell lastClick; 33 + long refCon; 34 + Handle listDefProc; 35 + Handle userHandle; 36 + ListBounds dataBounds; 37 + DataHandle cells; 38 + short maxIndex; 39 + short cellArray[1]; 40 + }; 41 + typedef struct ListRec ListRec; 42 + typedef ListRec* ListPtr; 43 + typedef ListPtr* ListHandle;
+72
src/frameworks/Carbon/HIToolbox/include/HIToolbox/TextEdit.h
··· 1 + #ifndef _HITOOLBOX_TEXTEDIT_H_ 2 + #define _HITOOLBOX_TEXTEDIT_H_ 3 + 4 + #include <CoreServices/CoreServices.h> 5 + #include <QD/QD.h> 6 + 7 + typedef struct TERec TERec; 8 + typedef TERec* TEPtr; 9 + typedef TEPtr* TEHandle; 10 + 11 + typedef CALLBACK_API(void, HighHookProcPtr)(const Rect* r, TEPtr pTE); 12 + typedef CALLBACK_API(Boolean, EOLHookProcPtr)(char theChar, TEPtr pTE, TEHandle hTE); 13 + typedef CALLBACK_API(void, CaretHookProcPtr)(const Rect* r, TEPtr pTE); 14 + typedef CALLBACK_API(unsigned short, WidthHookProcPtr)(unsigned short textLen, unsigned short textOffset, void* textBufferPtr, TEPtr pTE, TEHandle hTE); 15 + typedef CALLBACK_API(unsigned short, TextWidthHookProcPtr)(unsigned short textLen, unsigned short textOffset, void* textBufferPtr, TEPtr pTE, TEHandle hTE); 16 + typedef CALLBACK_API(unsigned short, NWidthHookProcPtr)(unsigned short styleRunLen, unsigned short styleRunOffset, short slop, short direction, void *textBufferPtr, short* lineStart, TEPtr pTE, TEHandle hTE); 17 + typedef CALLBACK_API(void, DrawHookProcPtr)(unsigned short textOffset, unsigned short drawLen, void* textBufferPtr, TEPtr pTE, TEHandle hTE); 18 + typedef CALLBACK_API(Boolean, HitTestHookProcPtr)(unsigned short styleRunLen, unsigned short styleRunOffset, unsigned short slop, void* textBufferPtr, TEPtr pTE, TEHandle hTE, unsigned short *pixelWidth, unsigned short* charOffset, Boolean* pixelInChar); 19 + typedef CALLBACK_API(void, TEFindWordProcPtr)(unsigned short currentPos, short caller, TEPtr pTE, TEHandle hTE, unsigned short* wordStart, unsigned short* wordEnd); 20 + typedef CALLBACK_API(void, TERecalcProcPtr)(TEPtr pTE, unsigned short changeLength, unsigned short* lineStart, unsigned short* firstChar, unsigned short* lastChar); 21 + typedef CALLBACK_API(void, TEDoTextProcPtr)(TEPtr pTE, unsigned short firstChar, unsigned short lastChar, short selector, GrafPtr* currentGrafPort, short* charPosition); 22 + typedef CALLBACK_API(Boolean, TEClickLoopProcPtr)(TEPtr pTE); 23 + typedef CALLBACK_API(Boolean, WordBreakProcPtr)(Ptr text, short charPos); 24 + 25 + typedef STACK_UPP_TYPE(HighHookProcPtr) HighHookUPP; 26 + typedef STACK_UPP_TYPE(EOLHookProcPtr) EOLHookUPP; 27 + typedef STACK_UPP_TYPE(CaretHookProcPtr) CaretHookUPP; 28 + typedef STACK_UPP_TYPE(WidthHookProcPtr) WidthHookUPP; 29 + typedef STACK_UPP_TYPE(TextWidthHookProcPtr) TextWidthHookUPP; 30 + typedef STACK_UPP_TYPE(NWidthHookProcPtr) NWidthHookUPP; 31 + typedef STACK_UPP_TYPE(DrawHookProcPtr) DrawHookUPP; 32 + typedef STACK_UPP_TYPE(HitTestHookProcPtr) HitTestHookUPP; 33 + typedef STACK_UPP_TYPE(TEFindWordProcPtr) TEFindWordUPP; 34 + typedef STACK_UPP_TYPE(TERecalcProcPtr) TERecalcUPP; 35 + typedef STACK_UPP_TYPE(TEDoTextProcPtr) TEDoTextUPP; 36 + typedef STACK_UPP_TYPE(TEClickLoopProcPtr) TEClickLoopUPP; 37 + typedef STACK_UPP_TYPE(WordBreakProcPtr) WordBreakUPP; 38 + 39 + struct TERec { 40 + Rect destRect; 41 + Rect viewRect; 42 + Rect selRect; 43 + short lineHeight; 44 + short fontAscent; 45 + Point selPoint; 46 + short selStart; 47 + short selEnd; 48 + short active; 49 + WordBreakUPP wordBreak; 50 + TEClickLoopUPP clickLoop; 51 + long clickTime; 52 + short clickLoc; 53 + long caretTime; 54 + short caretState; 55 + short just; 56 + short teLength; 57 + Handle hText; 58 + long hDispatchRec; 59 + short clikStuff; 60 + short crOnly; 61 + short txFont; 62 + StyleField txFace; 63 + short txMode; 64 + short txSize; 65 + GrafPtr inPort; 66 + HighHookUPP highHook; 67 + CaretHookUPP caretHook; 68 + short nLines; 69 + short lineStarts[16001]; 70 + }; 71 + 72 + #endif // _HITOOLBOX_TEXTEDIT_H_
+17
src/frameworks/Carbon/Help/CMakeLists.txt
··· 1 + project(Help) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "71.0.0") 5 + 6 + add_framework(Help 7 + FAT 8 + CURRENT_VERSION 9 + VERSION "A" 10 + PARENT "Carbon" 11 + 12 + SOURCES 13 + src/Help.c 14 + 15 + DEPENDENCIES 16 + system 17 + )
+40
src/frameworks/Carbon/Help/include/Help/Help.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #ifndef _Help_H_ 22 + #define _Help_H_ 23 + 24 + void* AHGotoApplicationHelp(void); 25 + void* AHGotoMainTOC(void); 26 + void* AHGotoPage(void); 27 + void* AHLookupAnchor(void); 28 + void* AHRegisterHelpBook(void); 29 + void* AHRegisterHelpBookWithURL(void); 30 + void* AHSearch(void); 31 + void* AppendEncodingHint(void); 32 + void* CFStringToCString(void); 33 + void* CopyBookDetails(void); 34 + void* CreateBookDetailsFromAppBundle(void); 35 + void* CreateBookDetailsFromAppBundleAtIndex(void); 36 + void* CreateBookDetailsWithBookNameAndID(void); 37 + void* EscapeMacCharacters(void); 38 + void* MacPathToURLPath(void); 39 + 40 + #endif
+120
src/frameworks/Carbon/Help/src/Help.c
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <Help/Help.h> 22 + #include <stdlib.h> 23 + #include <stdio.h> 24 + 25 + static int verbose = 0; 26 + 27 + __attribute__((constructor)) 28 + static void initme(void) { 29 + verbose = getenv("STUB_VERBOSE") != NULL; 30 + } 31 + 32 + void* AHGotoApplicationHelp(void) 33 + { 34 + if (verbose) puts("STUB: AHGotoApplicationHelp called"); 35 + return NULL; 36 + } 37 + 38 + void* AHGotoMainTOC(void) 39 + { 40 + if (verbose) puts("STUB: AHGotoMainTOC called"); 41 + return NULL; 42 + } 43 + 44 + void* AHGotoPage(void) 45 + { 46 + if (verbose) puts("STUB: AHGotoPage called"); 47 + return NULL; 48 + } 49 + 50 + void* AHLookupAnchor(void) 51 + { 52 + if (verbose) puts("STUB: AHLookupAnchor called"); 53 + return NULL; 54 + } 55 + 56 + void* AHRegisterHelpBook(void) 57 + { 58 + if (verbose) puts("STUB: AHRegisterHelpBook called"); 59 + return NULL; 60 + } 61 + 62 + void* AHRegisterHelpBookWithURL(void) 63 + { 64 + if (verbose) puts("STUB: AHRegisterHelpBookWithURL called"); 65 + return NULL; 66 + } 67 + 68 + void* AHSearch(void) 69 + { 70 + if (verbose) puts("STUB: AHSearch called"); 71 + return NULL; 72 + } 73 + 74 + void* AppendEncodingHint(void) 75 + { 76 + if (verbose) puts("STUB: AppendEncodingHint called"); 77 + return NULL; 78 + } 79 + 80 + void* CFStringToCString(void) 81 + { 82 + if (verbose) puts("STUB: CFStringToCString called"); 83 + return NULL; 84 + } 85 + 86 + void* CopyBookDetails(void) 87 + { 88 + if (verbose) puts("STUB: CopyBookDetails called"); 89 + return NULL; 90 + } 91 + 92 + void* CreateBookDetailsFromAppBundle(void) 93 + { 94 + if (verbose) puts("STUB: CreateBookDetailsFromAppBundle called"); 95 + return NULL; 96 + } 97 + 98 + void* CreateBookDetailsFromAppBundleAtIndex(void) 99 + { 100 + if (verbose) puts("STUB: CreateBookDetailsFromAppBundleAtIndex called"); 101 + return NULL; 102 + } 103 + 104 + void* CreateBookDetailsWithBookNameAndID(void) 105 + { 106 + if (verbose) puts("STUB: CreateBookDetailsWithBookNameAndID called"); 107 + return NULL; 108 + } 109 + 110 + void* EscapeMacCharacters(void) 111 + { 112 + if (verbose) puts("STUB: EscapeMacCharacters called"); 113 + return NULL; 114 + } 115 + 116 + void* MacPathToURLPath(void) 117 + { 118 + if (verbose) puts("STUB: MacPathToURLPath called"); 119 + return NULL; 120 + }
+19
src/frameworks/Carbon/ImageCapture/CMakeLists.txt
··· 1 + project(ImageCapture) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "5.0.0") 5 + 6 + add_framework(ImageCapture 7 + FAT 8 + CURRENT_VERSION 9 + VERSION "A" 10 + PARENT "Carbon" 11 + 12 + SOURCES 13 + src/ImageCapture.m 14 + 15 + DEPENDENCIES 16 + system 17 + objc 18 + Foundation 19 + )
+115
src/frameworks/Carbon/ImageCapture/include/ImageCapture/ImageCapture.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #ifndef _ImageCapture_H_ 22 + #define _ImageCapture_H_ 23 + 24 + #import <Foundation/Foundation.h> 25 + 26 + 27 + void* ICACloseSession(void); 28 + void* ICAConvertJPEGDataToICADataInPlace(void); 29 + void* ICAConvertTIFFDataToICADataInPlace(void); 30 + void* ICACopyMatchingDeviceDictionaries(void); 31 + void* ICACopyObjectData(void); 32 + void* ICACopyObjectPropertyDictionary(void); 33 + void* ICACopyObjectThumbnail(void); 34 + void* ICACopyParameterBlockPtrForAsyncCall(void); 35 + void* ICACreateCutsomIconForImageAtPath(void); 36 + void* ICACreateJPEGThumbnailDataFromURL(void); 37 + void* ICADictionaryApplierFunction(void); 38 + void* ICADoMacho2CFMConversion(void); 39 + void* ICADownloadFile(void); 40 + void* ICADownloadFileWithOptions(void); 41 + void* ICAElapsedTime(void); 42 + void* ICAGetBehaviorFlags(void); 43 + void* ICAGetChildCount(void); 44 + void* ICAGetDateFromSeconds(void); 45 + void* ICAGetDateFromSecondsSince1904(void); 46 + void* ICAGetDateFromSecondsSince1970(void); 47 + void* ICAGetDeviceList(void); 48 + void* ICAGetEXIFDateCStringFromSecondsSince1904(void); 49 + void* ICAGetEXIFDateCStringFromSecondsSince1970(void); 50 + void* ICAGetEXIFUTCDateCStringFromSecondsSince1904(void); 51 + void* ICAGetEXIFUTCDateCStringFromSecondsSince1970(void); 52 + void* ICAGetICAObjectForFile(void); 53 + void* ICAGetICAObjectFromDict(void); 54 + void* ICAGetLongValueFromDict(void); 55 + void* ICAGetNthChild(void); 56 + void* ICAGetNthProperty(void); 57 + void* ICAGetObjectInfo(void); 58 + void* ICAGetObjectRefCon(void); 59 + void* ICAGetParentOfObject(void); 60 + void* ICAGetParentOfProperty(void); 61 + void* ICAGetPropertyByType(void); 62 + void* ICAGetPropertyCount(void); 63 + void* ICAGetPropertyData(void); 64 + void* ICAGetPropertyInfo(void); 65 + void* ICAGetPropertyRefCon(void); 66 + void* ICAGetRootOfObject(void); 67 + void* ICAGetRootOfProperty(void); 68 + void* ICAGetSInt16ValueFromDict(void); 69 + void* ICAGetSInt32ValueFromDict(void); 70 + void* ICAGetSInt64ValueFromDict(void); 71 + void* ICAGetUTCDateFromDateCString(void); 72 + void* ICAGetUTCDateFromSeconds(void); 73 + void* ICAGetUTCDateFromSecondsSince1904(void); 74 + void* ICAImportImage(void); 75 + void* ICALoadDeviceModule(void); 76 + void* ICAObjectSendMessage(void); 77 + void* ICAOpenSession(void); 78 + void* ICARegisterEventNotification(void); 79 + void* ICARegisterForEventNotification(void); 80 + void* ICAScannerCloseSession(void); 81 + void* ICAScannerGetParameters(void); 82 + void* ICAScannerInitialize(void); 83 + void* ICAScannerOpenSession(void); 84 + void* ICAScannerSetParameters(void); 85 + void* ICAScannerStart(void); 86 + void* ICAScannerStatus(void); 87 + void* ICASetBehaviorFlags(void); 88 + void* ICASetICAObjectInDict(void); 89 + void* ICASetLongValueInDict(void); 90 + void* ICASetObjectRefCon(void); 91 + void* ICASetPropertyData(void); 92 + void* ICASetPropertyRefCon(void); 93 + void* ICASetSInt16ValueInDict(void); 94 + void* ICASetSInt32ValueInDict(void); 95 + void* ICASetSInt64ValueInDict(void); 96 + void* ICASetUTF8StringInDict(void); 97 + void* ICASharedMemoryCreate(void); 98 + void* ICASharedMemoryDestroy(void); 99 + void* ICASharedMemoryMap(void); 100 + void* ICASharedMemoryUnmap(void); 101 + void* ICAShowDeviceBrowser(void); 102 + void* ICAUnloadDeviceModule(void); 103 + void* ICAUpdateDeviceDictionary(void); 104 + void* ICAUploadFile(void); 105 + void* ICDBulkNewObject(void); 106 + void* ICDBulkNewProperty(void); 107 + void* ICDDeviceNotification(void); 108 + void* ICDDeviceRegister(void); 109 + void* ICDDeviceUnRegister(void); 110 + void* ICDDisposeObject(void); 111 + void* ICDDisposeProperty(void); 112 + void* ICDNewObject(void); 113 + void* ICDNewProperty(void); 114 + 115 + #endif
+552
src/frameworks/Carbon/ImageCapture/src/ImageCapture.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <ImageCapture/ImageCapture.h> 22 + #include <stdlib.h> 23 + #include <stdio.h> 24 + 25 + static int verbose = 0; 26 + 27 + __attribute__((constructor)) 28 + static void initme(void) { 29 + verbose = getenv("STUB_VERBOSE") != NULL; 30 + } 31 + 32 + void* ICACloseSession(void) 33 + { 34 + if (verbose) puts("STUB: ICACloseSession called"); 35 + return NULL; 36 + } 37 + 38 + void* ICAConvertJPEGDataToICADataInPlace(void) 39 + { 40 + if (verbose) puts("STUB: ICAConvertJPEGDataToICADataInPlace called"); 41 + return NULL; 42 + } 43 + 44 + void* ICAConvertTIFFDataToICADataInPlace(void) 45 + { 46 + if (verbose) puts("STUB: ICAConvertTIFFDataToICADataInPlace called"); 47 + return NULL; 48 + } 49 + 50 + void* ICACopyMatchingDeviceDictionaries(void) 51 + { 52 + if (verbose) puts("STUB: ICACopyMatchingDeviceDictionaries called"); 53 + return NULL; 54 + } 55 + 56 + void* ICACopyObjectData(void) 57 + { 58 + if (verbose) puts("STUB: ICACopyObjectData called"); 59 + return NULL; 60 + } 61 + 62 + void* ICACopyObjectPropertyDictionary(void) 63 + { 64 + if (verbose) puts("STUB: ICACopyObjectPropertyDictionary called"); 65 + return NULL; 66 + } 67 + 68 + void* ICACopyObjectThumbnail(void) 69 + { 70 + if (verbose) puts("STUB: ICACopyObjectThumbnail called"); 71 + return NULL; 72 + } 73 + 74 + void* ICACopyParameterBlockPtrForAsyncCall(void) 75 + { 76 + if (verbose) puts("STUB: ICACopyParameterBlockPtrForAsyncCall called"); 77 + return NULL; 78 + } 79 + 80 + void* ICACreateCutsomIconForImageAtPath(void) 81 + { 82 + if (verbose) puts("STUB: ICACreateCutsomIconForImageAtPath called"); 83 + return NULL; 84 + } 85 + 86 + void* ICACreateJPEGThumbnailDataFromURL(void) 87 + { 88 + if (verbose) puts("STUB: ICACreateJPEGThumbnailDataFromURL called"); 89 + return NULL; 90 + } 91 + 92 + void* ICADictionaryApplierFunction(void) 93 + { 94 + if (verbose) puts("STUB: ICADictionaryApplierFunction called"); 95 + return NULL; 96 + } 97 + 98 + void* ICADoMacho2CFMConversion(void) 99 + { 100 + if (verbose) puts("STUB: ICADoMacho2CFMConversion called"); 101 + return NULL; 102 + } 103 + 104 + void* ICADownloadFile(void) 105 + { 106 + if (verbose) puts("STUB: ICADownloadFile called"); 107 + return NULL; 108 + } 109 + 110 + void* ICADownloadFileWithOptions(void) 111 + { 112 + if (verbose) puts("STUB: ICADownloadFileWithOptions called"); 113 + return NULL; 114 + } 115 + 116 + void* ICAElapsedTime(void) 117 + { 118 + if (verbose) puts("STUB: ICAElapsedTime called"); 119 + return NULL; 120 + } 121 + 122 + void* ICAGetBehaviorFlags(void) 123 + { 124 + if (verbose) puts("STUB: ICAGetBehaviorFlags called"); 125 + return NULL; 126 + } 127 + 128 + void* ICAGetChildCount(void) 129 + { 130 + if (verbose) puts("STUB: ICAGetChildCount called"); 131 + return NULL; 132 + } 133 + 134 + void* ICAGetDateFromSeconds(void) 135 + { 136 + if (verbose) puts("STUB: ICAGetDateFromSeconds called"); 137 + return NULL; 138 + } 139 + 140 + void* ICAGetDateFromSecondsSince1904(void) 141 + { 142 + if (verbose) puts("STUB: ICAGetDateFromSecondsSince1904 called"); 143 + return NULL; 144 + } 145 + 146 + void* ICAGetDateFromSecondsSince1970(void) 147 + { 148 + if (verbose) puts("STUB: ICAGetDateFromSecondsSince1970 called"); 149 + return NULL; 150 + } 151 + 152 + void* ICAGetDeviceList(void) 153 + { 154 + if (verbose) puts("STUB: ICAGetDeviceList called"); 155 + return NULL; 156 + } 157 + 158 + void* ICAGetEXIFDateCStringFromSecondsSince1904(void) 159 + { 160 + if (verbose) puts("STUB: ICAGetEXIFDateCStringFromSecondsSince1904 called"); 161 + return NULL; 162 + } 163 + 164 + void* ICAGetEXIFDateCStringFromSecondsSince1970(void) 165 + { 166 + if (verbose) puts("STUB: ICAGetEXIFDateCStringFromSecondsSince1970 called"); 167 + return NULL; 168 + } 169 + 170 + void* ICAGetEXIFUTCDateCStringFromSecondsSince1904(void) 171 + { 172 + if (verbose) puts("STUB: ICAGetEXIFUTCDateCStringFromSecondsSince1904 called"); 173 + return NULL; 174 + } 175 + 176 + void* ICAGetEXIFUTCDateCStringFromSecondsSince1970(void) 177 + { 178 + if (verbose) puts("STUB: ICAGetEXIFUTCDateCStringFromSecondsSince1970 called"); 179 + return NULL; 180 + } 181 + 182 + void* ICAGetICAObjectForFile(void) 183 + { 184 + if (verbose) puts("STUB: ICAGetICAObjectForFile called"); 185 + return NULL; 186 + } 187 + 188 + void* ICAGetICAObjectFromDict(void) 189 + { 190 + if (verbose) puts("STUB: ICAGetICAObjectFromDict called"); 191 + return NULL; 192 + } 193 + 194 + void* ICAGetLongValueFromDict(void) 195 + { 196 + if (verbose) puts("STUB: ICAGetLongValueFromDict called"); 197 + return NULL; 198 + } 199 + 200 + void* ICAGetNthChild(void) 201 + { 202 + if (verbose) puts("STUB: ICAGetNthChild called"); 203 + return NULL; 204 + } 205 + 206 + void* ICAGetNthProperty(void) 207 + { 208 + if (verbose) puts("STUB: ICAGetNthProperty called"); 209 + return NULL; 210 + } 211 + 212 + void* ICAGetObjectInfo(void) 213 + { 214 + if (verbose) puts("STUB: ICAGetObjectInfo called"); 215 + return NULL; 216 + } 217 + 218 + void* ICAGetObjectRefCon(void) 219 + { 220 + if (verbose) puts("STUB: ICAGetObjectRefCon called"); 221 + return NULL; 222 + } 223 + 224 + void* ICAGetParentOfObject(void) 225 + { 226 + if (verbose) puts("STUB: ICAGetParentOfObject called"); 227 + return NULL; 228 + } 229 + 230 + void* ICAGetParentOfProperty(void) 231 + { 232 + if (verbose) puts("STUB: ICAGetParentOfProperty called"); 233 + return NULL; 234 + } 235 + 236 + void* ICAGetPropertyByType(void) 237 + { 238 + if (verbose) puts("STUB: ICAGetPropertyByType called"); 239 + return NULL; 240 + } 241 + 242 + void* ICAGetPropertyCount(void) 243 + { 244 + if (verbose) puts("STUB: ICAGetPropertyCount called"); 245 + return NULL; 246 + } 247 + 248 + void* ICAGetPropertyData(void) 249 + { 250 + if (verbose) puts("STUB: ICAGetPropertyData called"); 251 + return NULL; 252 + } 253 + 254 + void* ICAGetPropertyInfo(void) 255 + { 256 + if (verbose) puts("STUB: ICAGetPropertyInfo called"); 257 + return NULL; 258 + } 259 + 260 + void* ICAGetPropertyRefCon(void) 261 + { 262 + if (verbose) puts("STUB: ICAGetPropertyRefCon called"); 263 + return NULL; 264 + } 265 + 266 + void* ICAGetRootOfObject(void) 267 + { 268 + if (verbose) puts("STUB: ICAGetRootOfObject called"); 269 + return NULL; 270 + } 271 + 272 + void* ICAGetRootOfProperty(void) 273 + { 274 + if (verbose) puts("STUB: ICAGetRootOfProperty called"); 275 + return NULL; 276 + } 277 + 278 + void* ICAGetSInt16ValueFromDict(void) 279 + { 280 + if (verbose) puts("STUB: ICAGetSInt16ValueFromDict called"); 281 + return NULL; 282 + } 283 + 284 + void* ICAGetSInt32ValueFromDict(void) 285 + { 286 + if (verbose) puts("STUB: ICAGetSInt32ValueFromDict called"); 287 + return NULL; 288 + } 289 + 290 + void* ICAGetSInt64ValueFromDict(void) 291 + { 292 + if (verbose) puts("STUB: ICAGetSInt64ValueFromDict called"); 293 + return NULL; 294 + } 295 + 296 + void* ICAGetUTCDateFromDateCString(void) 297 + { 298 + if (verbose) puts("STUB: ICAGetUTCDateFromDateCString called"); 299 + return NULL; 300 + } 301 + 302 + void* ICAGetUTCDateFromSeconds(void) 303 + { 304 + if (verbose) puts("STUB: ICAGetUTCDateFromSeconds called"); 305 + return NULL; 306 + } 307 + 308 + void* ICAGetUTCDateFromSecondsSince1904(void) 309 + { 310 + if (verbose) puts("STUB: ICAGetUTCDateFromSecondsSince1904 called"); 311 + return NULL; 312 + } 313 + 314 + void* ICAImportImage(void) 315 + { 316 + if (verbose) puts("STUB: ICAImportImage called"); 317 + return NULL; 318 + } 319 + 320 + void* ICALoadDeviceModule(void) 321 + { 322 + if (verbose) puts("STUB: ICALoadDeviceModule called"); 323 + return NULL; 324 + } 325 + 326 + void* ICAObjectSendMessage(void) 327 + { 328 + if (verbose) puts("STUB: ICAObjectSendMessage called"); 329 + return NULL; 330 + } 331 + 332 + void* ICAOpenSession(void) 333 + { 334 + if (verbose) puts("STUB: ICAOpenSession called"); 335 + return NULL; 336 + } 337 + 338 + void* ICARegisterEventNotification(void) 339 + { 340 + if (verbose) puts("STUB: ICARegisterEventNotification called"); 341 + return NULL; 342 + } 343 + 344 + void* ICARegisterForEventNotification(void) 345 + { 346 + if (verbose) puts("STUB: ICARegisterForEventNotification called"); 347 + return NULL; 348 + } 349 + 350 + void* ICAScannerCloseSession(void) 351 + { 352 + if (verbose) puts("STUB: ICAScannerCloseSession called"); 353 + return NULL; 354 + } 355 + 356 + void* ICAScannerGetParameters(void) 357 + { 358 + if (verbose) puts("STUB: ICAScannerGetParameters called"); 359 + return NULL; 360 + } 361 + 362 + void* ICAScannerInitialize(void) 363 + { 364 + if (verbose) puts("STUB: ICAScannerInitialize called"); 365 + return NULL; 366 + } 367 + 368 + void* ICAScannerOpenSession(void) 369 + { 370 + if (verbose) puts("STUB: ICAScannerOpenSession called"); 371 + return NULL; 372 + } 373 + 374 + void* ICAScannerSetParameters(void) 375 + { 376 + if (verbose) puts("STUB: ICAScannerSetParameters called"); 377 + return NULL; 378 + } 379 + 380 + void* ICAScannerStart(void) 381 + { 382 + if (verbose) puts("STUB: ICAScannerStart called"); 383 + return NULL; 384 + } 385 + 386 + void* ICAScannerStatus(void) 387 + { 388 + if (verbose) puts("STUB: ICAScannerStatus called"); 389 + return NULL; 390 + } 391 + 392 + void* ICASetBehaviorFlags(void) 393 + { 394 + if (verbose) puts("STUB: ICASetBehaviorFlags called"); 395 + return NULL; 396 + } 397 + 398 + void* ICASetICAObjectInDict(void) 399 + { 400 + if (verbose) puts("STUB: ICASetICAObjectInDict called"); 401 + return NULL; 402 + } 403 + 404 + void* ICASetLongValueInDict(void) 405 + { 406 + if (verbose) puts("STUB: ICASetLongValueInDict called"); 407 + return NULL; 408 + } 409 + 410 + void* ICASetObjectRefCon(void) 411 + { 412 + if (verbose) puts("STUB: ICASetObjectRefCon called"); 413 + return NULL; 414 + } 415 + 416 + void* ICASetPropertyData(void) 417 + { 418 + if (verbose) puts("STUB: ICASetPropertyData called"); 419 + return NULL; 420 + } 421 + 422 + void* ICASetPropertyRefCon(void) 423 + { 424 + if (verbose) puts("STUB: ICASetPropertyRefCon called"); 425 + return NULL; 426 + } 427 + 428 + void* ICASetSInt16ValueInDict(void) 429 + { 430 + if (verbose) puts("STUB: ICASetSInt16ValueInDict called"); 431 + return NULL; 432 + } 433 + 434 + void* ICASetSInt32ValueInDict(void) 435 + { 436 + if (verbose) puts("STUB: ICASetSInt32ValueInDict called"); 437 + return NULL; 438 + } 439 + 440 + void* ICASetSInt64ValueInDict(void) 441 + { 442 + if (verbose) puts("STUB: ICASetSInt64ValueInDict called"); 443 + return NULL; 444 + } 445 + 446 + void* ICASetUTF8StringInDict(void) 447 + { 448 + if (verbose) puts("STUB: ICASetUTF8StringInDict called"); 449 + return NULL; 450 + } 451 + 452 + void* ICASharedMemoryCreate(void) 453 + { 454 + if (verbose) puts("STUB: ICASharedMemoryCreate called"); 455 + return NULL; 456 + } 457 + 458 + void* ICASharedMemoryDestroy(void) 459 + { 460 + if (verbose) puts("STUB: ICASharedMemoryDestroy called"); 461 + return NULL; 462 + } 463 + 464 + void* ICASharedMemoryMap(void) 465 + { 466 + if (verbose) puts("STUB: ICASharedMemoryMap called"); 467 + return NULL; 468 + } 469 + 470 + void* ICASharedMemoryUnmap(void) 471 + { 472 + if (verbose) puts("STUB: ICASharedMemoryUnmap called"); 473 + return NULL; 474 + } 475 + 476 + void* ICAShowDeviceBrowser(void) 477 + { 478 + if (verbose) puts("STUB: ICAShowDeviceBrowser called"); 479 + return NULL; 480 + } 481 + 482 + void* ICAUnloadDeviceModule(void) 483 + { 484 + if (verbose) puts("STUB: ICAUnloadDeviceModule called"); 485 + return NULL; 486 + } 487 + 488 + void* ICAUpdateDeviceDictionary(void) 489 + { 490 + if (verbose) puts("STUB: ICAUpdateDeviceDictionary called"); 491 + return NULL; 492 + } 493 + 494 + void* ICAUploadFile(void) 495 + { 496 + if (verbose) puts("STUB: ICAUploadFile called"); 497 + return NULL; 498 + } 499 + 500 + void* ICDBulkNewObject(void) 501 + { 502 + if (verbose) puts("STUB: ICDBulkNewObject called"); 503 + return NULL; 504 + } 505 + 506 + void* ICDBulkNewProperty(void) 507 + { 508 + if (verbose) puts("STUB: ICDBulkNewProperty called"); 509 + return NULL; 510 + } 511 + 512 + void* ICDDeviceNotification(void) 513 + { 514 + if (verbose) puts("STUB: ICDDeviceNotification called"); 515 + return NULL; 516 + } 517 + 518 + void* ICDDeviceRegister(void) 519 + { 520 + if (verbose) puts("STUB: ICDDeviceRegister called"); 521 + return NULL; 522 + } 523 + 524 + void* ICDDeviceUnRegister(void) 525 + { 526 + if (verbose) puts("STUB: ICDDeviceUnRegister called"); 527 + return NULL; 528 + } 529 + 530 + void* ICDDisposeObject(void) 531 + { 532 + if (verbose) puts("STUB: ICDDisposeObject called"); 533 + return NULL; 534 + } 535 + 536 + void* ICDDisposeProperty(void) 537 + { 538 + if (verbose) puts("STUB: ICDDisposeProperty called"); 539 + return NULL; 540 + } 541 + 542 + void* ICDNewObject(void) 543 + { 544 + if (verbose) puts("STUB: ICDNewObject called"); 545 + return NULL; 546 + } 547 + 548 + void* ICDNewProperty(void) 549 + { 550 + if (verbose) puts("STUB: ICDNewProperty called"); 551 + return NULL; 552 + }
+17
src/frameworks/Carbon/Ink/CMakeLists.txt
··· 1 + project(Ink) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "227.0.0") 5 + 6 + add_framework(Ink 7 + FAT 8 + CURRENT_VERSION 9 + VERSION "A" 10 + PARENT "Carbon" 11 + 12 + SOURCES 13 + src/Ink.c 14 + 15 + DEPENDENCIES 16 + system 17 + )
+47
src/frameworks/Carbon/Ink/include/Ink/Ink.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #ifndef _Ink_H_ 22 + #define _Ink_H_ 23 + 24 + void* InkAddStrokeToCurrentPhrase(void); 25 + void* InkIsPhraseInProgress(void); 26 + void* InkSetApplicationRecognitionMode(void); 27 + void* InkSetApplicationWritingMode(void); 28 + void* InkSetDrawingMode(void); 29 + void* InkSetPhraseTerminationMode(void); 30 + void* InkStrokeGetPointCount(void); 31 + void* InkStrokeGetPoints(void); 32 + void* InkStrokeGetTypeID(void); 33 + void* InkTerminateCurrentPhrase(void); 34 + void* InkTextAlternatesCount(void); 35 + void* InkTextBounds(void); 36 + void* InkTextCopy(void); 37 + void* InkTextCreateCFString(void); 38 + void* InkTextCreateFromCFData(void); 39 + void* InkTextDraw(void); 40 + void* InkTextFlatten(void); 41 + void* InkTextGetStroke(void); 42 + void* InkTextGetStrokeCount(void); 43 + void* InkTextGetTypeID(void); 44 + void* InkTextKeyModifiers(void); 45 + void* InkUserWritingMode(void); 46 + 47 + #endif
+162
src/frameworks/Carbon/Ink/src/Ink.c
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <Ink/Ink.h> 22 + #include <stdlib.h> 23 + #include <stdio.h> 24 + 25 + static int verbose = 0; 26 + 27 + __attribute__((constructor)) 28 + static void initme(void) { 29 + verbose = getenv("STUB_VERBOSE") != NULL; 30 + } 31 + 32 + void* InkAddStrokeToCurrentPhrase(void) 33 + { 34 + if (verbose) puts("STUB: InkAddStrokeToCurrentPhrase called"); 35 + return NULL; 36 + } 37 + 38 + void* InkIsPhraseInProgress(void) 39 + { 40 + if (verbose) puts("STUB: InkIsPhraseInProgress called"); 41 + return NULL; 42 + } 43 + 44 + void* InkSetApplicationRecognitionMode(void) 45 + { 46 + if (verbose) puts("STUB: InkSetApplicationRecognitionMode called"); 47 + return NULL; 48 + } 49 + 50 + void* InkSetApplicationWritingMode(void) 51 + { 52 + if (verbose) puts("STUB: InkSetApplicationWritingMode called"); 53 + return NULL; 54 + } 55 + 56 + void* InkSetDrawingMode(void) 57 + { 58 + if (verbose) puts("STUB: InkSetDrawingMode called"); 59 + return NULL; 60 + } 61 + 62 + void* InkSetPhraseTerminationMode(void) 63 + { 64 + if (verbose) puts("STUB: InkSetPhraseTerminationMode called"); 65 + return NULL; 66 + } 67 + 68 + void* InkStrokeGetPointCount(void) 69 + { 70 + if (verbose) puts("STUB: InkStrokeGetPointCount called"); 71 + return NULL; 72 + } 73 + 74 + void* InkStrokeGetPoints(void) 75 + { 76 + if (verbose) puts("STUB: InkStrokeGetPoints called"); 77 + return NULL; 78 + } 79 + 80 + void* InkStrokeGetTypeID(void) 81 + { 82 + if (verbose) puts("STUB: InkStrokeGetTypeID called"); 83 + return NULL; 84 + } 85 + 86 + void* InkTerminateCurrentPhrase(void) 87 + { 88 + if (verbose) puts("STUB: InkTerminateCurrentPhrase called"); 89 + return NULL; 90 + } 91 + 92 + void* InkTextAlternatesCount(void) 93 + { 94 + if (verbose) puts("STUB: InkTextAlternatesCount called"); 95 + return NULL; 96 + } 97 + 98 + void* InkTextBounds(void) 99 + { 100 + if (verbose) puts("STUB: InkTextBounds called"); 101 + return NULL; 102 + } 103 + 104 + void* InkTextCopy(void) 105 + { 106 + if (verbose) puts("STUB: InkTextCopy called"); 107 + return NULL; 108 + } 109 + 110 + void* InkTextCreateCFString(void) 111 + { 112 + if (verbose) puts("STUB: InkTextCreateCFString called"); 113 + return NULL; 114 + } 115 + 116 + void* InkTextCreateFromCFData(void) 117 + { 118 + if (verbose) puts("STUB: InkTextCreateFromCFData called"); 119 + return NULL; 120 + } 121 + 122 + void* InkTextDraw(void) 123 + { 124 + if (verbose) puts("STUB: InkTextDraw called"); 125 + return NULL; 126 + } 127 + 128 + void* InkTextFlatten(void) 129 + { 130 + if (verbose) puts("STUB: InkTextFlatten called"); 131 + return NULL; 132 + } 133 + 134 + void* InkTextGetStroke(void) 135 + { 136 + if (verbose) puts("STUB: InkTextGetStroke called"); 137 + return NULL; 138 + } 139 + 140 + void* InkTextGetStrokeCount(void) 141 + { 142 + if (verbose) puts("STUB: InkTextGetStrokeCount called"); 143 + return NULL; 144 + } 145 + 146 + void* InkTextGetTypeID(void) 147 + { 148 + if (verbose) puts("STUB: InkTextGetTypeID called"); 149 + return NULL; 150 + } 151 + 152 + void* InkTextKeyModifiers(void) 153 + { 154 + if (verbose) puts("STUB: InkTextKeyModifiers called"); 155 + return NULL; 156 + } 157 + 158 + void* InkUserWritingMode(void) 159 + { 160 + if (verbose) puts("STUB: InkUserWritingMode called"); 161 + return NULL; 162 + }
+19
src/frameworks/Carbon/OpenScripting/CMakeLists.txt
··· 1 + project(OpenScripting) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "1.0.0") 5 + 6 + add_framework(OpenScripting 7 + FAT 8 + CURRENT_VERSION 9 + VERSION "A" 10 + PARENT "Carbon" 11 + 12 + SOURCES 13 + src/OpenScripting.m 14 + 15 + DEPENDENCIES 16 + system 17 + objc 18 + Foundation 19 + )
+153
src/frameworks/Carbon/OpenScripting/include/OpenScripting/OpenScripting.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #ifndef _OpenScripting_H_ 22 + #define _OpenScripting_H_ 23 + 24 + #import <Foundation/Foundation.h> 25 + 26 + 27 + void* ASCopySourceAttributes(void); 28 + void* ASGetSourceStyleNames(void); 29 + void* ASGetSourceStyles(void); 30 + void* ASInit(void); 31 + void* ASSetSourceAttributes(void); 32 + void* ASSetSourceStyles(void); 33 + void* OSAAddStorageType(void); 34 + void* OSAAuthorizeEvent(void); 35 + void* OSAAvailableDialectCodeList(void); 36 + void* OSAAvailableDialects(void); 37 + void* OSACoerceFromDesc(void); 38 + void* OSACoerceToDesc(void); 39 + void* OSACompile(void); 40 + void* OSACompileExecute(void); 41 + void* OSACopyDisplayString(void); 42 + void* OSACopyID(void); 43 + void* OSACopyScript(void); 44 + void* OSACopyScriptingDefinition(void); 45 + void* OSACopyScriptingDefinitionFromFile(void); 46 + void* OSACopyScriptingDefinitionFromURL(void); 47 + void* OSACopySourceString(void); 48 + void* OSACopyURLForLibraryInDomainURL(void); 49 + void* OSACopyURLForLibraryInFolderURL(void); 50 + void* OSACopyURLForLibraryInScriptURL(void); 51 + void* OSACopyURLForLibraryName(void); 52 + void* OSACreateFile(void); 53 + void* OSADebuggerCreateSession(void); 54 + void* OSADebuggerDisposeCallFrame(void); 55 + void* OSADebuggerDisposeSession(void); 56 + void* OSADebuggerGetBreakpoint(void); 57 + void* OSADebuggerGetCallFrameState(void); 58 + void* OSADebuggerGetCurrentCallFrame(void); 59 + void* OSADebuggerGetDefaultBreakpoint(void); 60 + void* OSADebuggerGetPreviousCallFrame(void); 61 + void* OSADebuggerGetSessionState(void); 62 + void* OSADebuggerGetStatementRanges(void); 63 + void* OSADebuggerGetVariable(void); 64 + void* OSADebuggerSessionStep(void); 65 + void* OSADebuggerSetBreakpoint(void); 66 + void* OSADebuggerSetVariable(void); 67 + void* OSADisplay(void); 68 + void* OSADispose(void); 69 + void* OSADoEvent(void); 70 + void* OSADoScript(void); 71 + void* OSADoScriptFile(void); 72 + void* OSAExecute(void); 73 + void* OSAExecuteEvent(void); 74 + void* OSAFindEventHandler(void); 75 + void* OSAGenericToRealID(void); 76 + void* OSAGetActiveProc(void); 77 + void* OSAGetCreateProc(void); 78 + void* OSAGetCreateProgressProc(void); 79 + void* OSAGetCurrentDialect(void); 80 + void* OSAGetDefaultScriptingComponent(void); 81 + void* OSAGetDialectInfo(void); 82 + void* OSAGetEventHandler(void); 83 + void* OSAGetHandler(void); 84 + void* OSAGetHandlerNames(void); 85 + void* OSAGetProperty(void); 86 + void* OSAGetPropertyNames(void); 87 + void* OSAGetReleaseProgressProc(void); 88 + void* OSAGetResumeDispatchProc(void); 89 + void* OSAGetScriptDataFromURL(void); 90 + void* OSAGetScriptInfo(void); 91 + void* OSAGetScriptingComponent(void); 92 + void* OSAGetScriptingComponentFromStored(void); 93 + void* OSAGetSendProc(void); 94 + void* OSAGetSource(void); 95 + void* OSAGetStorageType(void); 96 + void* OSAGetSysTerminology(void); 97 + void* OSAInstallEventHandler(void); 98 + void* OSAInstallGestaltValues(void); 99 + void* OSAInstallScriptingDescCoercions(void); 100 + void* OSAInstallScriptingEventHandlers(void); 101 + void* OSAInstallStdDescCoercions(void); 102 + void* OSAInstallStdEventHandlers(void); 103 + void* OSAInstallStdPtrCoercions(void); 104 + void* OSAInstallUnitPtrCoercions(void); 105 + void* OSAIsEventAuthorizationRequested(void); 106 + void* OSAIsEventAuthorized(void); 107 + void* OSAIsScriptableBundle(void); 108 + void* OSAIsScriptableRef(void); 109 + void* OSAIsScriptableURL(void); 110 + void* OSALoad(void); 111 + void* OSALoadExecute(void); 112 + void* OSALoadExecuteFile(void); 113 + void* OSALoadFile(void); 114 + void* OSALoadScriptData(void); 115 + void* OSALoadScriptDataFromFile(void); 116 + void* OSAMakeContext(void); 117 + void* OSARealToGenericID(void); 118 + void* OSARecordEvent(void); 119 + void* OSARemoveEventHandler(void); 120 + void* OSARemoveStorageType(void); 121 + void* OSARequestEventAuthorization(void); 122 + void* OSAScriptError(void); 123 + void* OSAScriptingComponentName(void); 124 + void* OSASetActiveProc(void); 125 + void* OSASetCreateProc(void); 126 + void* OSASetCreateProgressProc(void); 127 + void* OSASetCurrentDialect(void); 128 + void* OSASetDefaultScriptingComponent(void); 129 + void* OSASetDefaultTarget(void); 130 + void* OSASetHandler(void); 131 + void* OSASetProperty(void); 132 + void* OSASetReleaseProgressProc(void); 133 + void* OSASetResumeDispatchProc(void); 134 + void* OSASetScriptInfo(void); 135 + void* OSASetSendProc(void); 136 + void* OSAStartRecording(void); 137 + void* OSAStopRecording(void); 138 + void* OSAStore(void); 139 + void* OSAStoreFile(void); 140 + void* OSAStoreScriptDataToFile(void); 141 + void* OSAStoreScriptDataToNewFile(void); 142 + void* _HandleGDUT(void); 143 + void* _OSACopyDisplayString(void); 144 + void* _OSACopyScriptingDefinitionFromFile(void); 145 + void* _OSACopySourceString(void); 146 + void* _OSACreateURL(void); 147 + void* _OSADoScriptURL(void); 148 + void* _OSALoadExecuteURL(void); 149 + void* _OSALoadURL(void); 150 + void* _OSAStoreScriptDataToURL(void); 151 + void* _OSAStoreURL(void); 152 + 153 + #endif
+780
src/frameworks/Carbon/OpenScripting/src/OpenScripting.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <OpenScripting/OpenScripting.h> 22 + #include <stdlib.h> 23 + #include <stdio.h> 24 + 25 + static int verbose = 0; 26 + 27 + __attribute__((constructor)) 28 + static void initme(void) { 29 + verbose = getenv("STUB_VERBOSE") != NULL; 30 + } 31 + 32 + void* ASCopySourceAttributes(void) 33 + { 34 + if (verbose) puts("STUB: ASCopySourceAttributes called"); 35 + return NULL; 36 + } 37 + 38 + void* ASGetSourceStyleNames(void) 39 + { 40 + if (verbose) puts("STUB: ASGetSourceStyleNames called"); 41 + return NULL; 42 + } 43 + 44 + void* ASGetSourceStyles(void) 45 + { 46 + if (verbose) puts("STUB: ASGetSourceStyles called"); 47 + return NULL; 48 + } 49 + 50 + void* ASInit(void) 51 + { 52 + if (verbose) puts("STUB: ASInit called"); 53 + return NULL; 54 + } 55 + 56 + void* ASSetSourceAttributes(void) 57 + { 58 + if (verbose) puts("STUB: ASSetSourceAttributes called"); 59 + return NULL; 60 + } 61 + 62 + void* ASSetSourceStyles(void) 63 + { 64 + if (verbose) puts("STUB: ASSetSourceStyles called"); 65 + return NULL; 66 + } 67 + 68 + void* OSAAddStorageType(void) 69 + { 70 + if (verbose) puts("STUB: OSAAddStorageType called"); 71 + return NULL; 72 + } 73 + 74 + void* OSAAuthorizeEvent(void) 75 + { 76 + if (verbose) puts("STUB: OSAAuthorizeEvent called"); 77 + return NULL; 78 + } 79 + 80 + void* OSAAvailableDialectCodeList(void) 81 + { 82 + if (verbose) puts("STUB: OSAAvailableDialectCodeList called"); 83 + return NULL; 84 + } 85 + 86 + void* OSAAvailableDialects(void) 87 + { 88 + if (verbose) puts("STUB: OSAAvailableDialects called"); 89 + return NULL; 90 + } 91 + 92 + void* OSACoerceFromDesc(void) 93 + { 94 + if (verbose) puts("STUB: OSACoerceFromDesc called"); 95 + return NULL; 96 + } 97 + 98 + void* OSACoerceToDesc(void) 99 + { 100 + if (verbose) puts("STUB: OSACoerceToDesc called"); 101 + return NULL; 102 + } 103 + 104 + void* OSACompile(void) 105 + { 106 + if (verbose) puts("STUB: OSACompile called"); 107 + return NULL; 108 + } 109 + 110 + void* OSACompileExecute(void) 111 + { 112 + if (verbose) puts("STUB: OSACompileExecute called"); 113 + return NULL; 114 + } 115 + 116 + void* OSACopyDisplayString(void) 117 + { 118 + if (verbose) puts("STUB: OSACopyDisplayString called"); 119 + return NULL; 120 + } 121 + 122 + void* OSACopyID(void) 123 + { 124 + if (verbose) puts("STUB: OSACopyID called"); 125 + return NULL; 126 + } 127 + 128 + void* OSACopyScript(void) 129 + { 130 + if (verbose) puts("STUB: OSACopyScript called"); 131 + return NULL; 132 + } 133 + 134 + void* OSACopyScriptingDefinition(void) 135 + { 136 + if (verbose) puts("STUB: OSACopyScriptingDefinition called"); 137 + return NULL; 138 + } 139 + 140 + void* OSACopyScriptingDefinitionFromFile(void) 141 + { 142 + if (verbose) puts("STUB: OSACopyScriptingDefinitionFromFile called"); 143 + return NULL; 144 + } 145 + 146 + void* OSACopyScriptingDefinitionFromURL(void) 147 + { 148 + if (verbose) puts("STUB: OSACopyScriptingDefinitionFromURL called"); 149 + return NULL; 150 + } 151 + 152 + void* OSACopySourceString(void) 153 + { 154 + if (verbose) puts("STUB: OSACopySourceString called"); 155 + return NULL; 156 + } 157 + 158 + void* OSACopyURLForLibraryInDomainURL(void) 159 + { 160 + if (verbose) puts("STUB: OSACopyURLForLibraryInDomainURL called"); 161 + return NULL; 162 + } 163 + 164 + void* OSACopyURLForLibraryInFolderURL(void) 165 + { 166 + if (verbose) puts("STUB: OSACopyURLForLibraryInFolderURL called"); 167 + return NULL; 168 + } 169 + 170 + void* OSACopyURLForLibraryInScriptURL(void) 171 + { 172 + if (verbose) puts("STUB: OSACopyURLForLibraryInScriptURL called"); 173 + return NULL; 174 + } 175 + 176 + void* OSACopyURLForLibraryName(void) 177 + { 178 + if (verbose) puts("STUB: OSACopyURLForLibraryName called"); 179 + return NULL; 180 + } 181 + 182 + void* OSACreateFile(void) 183 + { 184 + if (verbose) puts("STUB: OSACreateFile called"); 185 + return NULL; 186 + } 187 + 188 + void* OSADebuggerCreateSession(void) 189 + { 190 + if (verbose) puts("STUB: OSADebuggerCreateSession called"); 191 + return NULL; 192 + } 193 + 194 + void* OSADebuggerDisposeCallFrame(void) 195 + { 196 + if (verbose) puts("STUB: OSADebuggerDisposeCallFrame called"); 197 + return NULL; 198 + } 199 + 200 + void* OSADebuggerDisposeSession(void) 201 + { 202 + if (verbose) puts("STUB: OSADebuggerDisposeSession called"); 203 + return NULL; 204 + } 205 + 206 + void* OSADebuggerGetBreakpoint(void) 207 + { 208 + if (verbose) puts("STUB: OSADebuggerGetBreakpoint called"); 209 + return NULL; 210 + } 211 + 212 + void* OSADebuggerGetCallFrameState(void) 213 + { 214 + if (verbose) puts("STUB: OSADebuggerGetCallFrameState called"); 215 + return NULL; 216 + } 217 + 218 + void* OSADebuggerGetCurrentCallFrame(void) 219 + { 220 + if (verbose) puts("STUB: OSADebuggerGetCurrentCallFrame called"); 221 + return NULL; 222 + } 223 + 224 + void* OSADebuggerGetDefaultBreakpoint(void) 225 + { 226 + if (verbose) puts("STUB: OSADebuggerGetDefaultBreakpoint called"); 227 + return NULL; 228 + } 229 + 230 + void* OSADebuggerGetPreviousCallFrame(void) 231 + { 232 + if (verbose) puts("STUB: OSADebuggerGetPreviousCallFrame called"); 233 + return NULL; 234 + } 235 + 236 + void* OSADebuggerGetSessionState(void) 237 + { 238 + if (verbose) puts("STUB: OSADebuggerGetSessionState called"); 239 + return NULL; 240 + } 241 + 242 + void* OSADebuggerGetStatementRanges(void) 243 + { 244 + if (verbose) puts("STUB: OSADebuggerGetStatementRanges called"); 245 + return NULL; 246 + } 247 + 248 + void* OSADebuggerGetVariable(void) 249 + { 250 + if (verbose) puts("STUB: OSADebuggerGetVariable called"); 251 + return NULL; 252 + } 253 + 254 + void* OSADebuggerSessionStep(void) 255 + { 256 + if (verbose) puts("STUB: OSADebuggerSessionStep called"); 257 + return NULL; 258 + } 259 + 260 + void* OSADebuggerSetBreakpoint(void) 261 + { 262 + if (verbose) puts("STUB: OSADebuggerSetBreakpoint called"); 263 + return NULL; 264 + } 265 + 266 + void* OSADebuggerSetVariable(void) 267 + { 268 + if (verbose) puts("STUB: OSADebuggerSetVariable called"); 269 + return NULL; 270 + } 271 + 272 + void* OSADisplay(void) 273 + { 274 + if (verbose) puts("STUB: OSADisplay called"); 275 + return NULL; 276 + } 277 + 278 + void* OSADispose(void) 279 + { 280 + if (verbose) puts("STUB: OSADispose called"); 281 + return NULL; 282 + } 283 + 284 + void* OSADoEvent(void) 285 + { 286 + if (verbose) puts("STUB: OSADoEvent called"); 287 + return NULL; 288 + } 289 + 290 + void* OSADoScript(void) 291 + { 292 + if (verbose) puts("STUB: OSADoScript called"); 293 + return NULL; 294 + } 295 + 296 + void* OSADoScriptFile(void) 297 + { 298 + if (verbose) puts("STUB: OSADoScriptFile called"); 299 + return NULL; 300 + } 301 + 302 + void* OSAExecute(void) 303 + { 304 + if (verbose) puts("STUB: OSAExecute called"); 305 + return NULL; 306 + } 307 + 308 + void* OSAExecuteEvent(void) 309 + { 310 + if (verbose) puts("STUB: OSAExecuteEvent called"); 311 + return NULL; 312 + } 313 + 314 + void* OSAFindEventHandler(void) 315 + { 316 + if (verbose) puts("STUB: OSAFindEventHandler called"); 317 + return NULL; 318 + } 319 + 320 + void* OSAGenericToRealID(void) 321 + { 322 + if (verbose) puts("STUB: OSAGenericToRealID called"); 323 + return NULL; 324 + } 325 + 326 + void* OSAGetActiveProc(void) 327 + { 328 + if (verbose) puts("STUB: OSAGetActiveProc called"); 329 + return NULL; 330 + } 331 + 332 + void* OSAGetCreateProc(void) 333 + { 334 + if (verbose) puts("STUB: OSAGetCreateProc called"); 335 + return NULL; 336 + } 337 + 338 + void* OSAGetCreateProgressProc(void) 339 + { 340 + if (verbose) puts("STUB: OSAGetCreateProgressProc called"); 341 + return NULL; 342 + } 343 + 344 + void* OSAGetCurrentDialect(void) 345 + { 346 + if (verbose) puts("STUB: OSAGetCurrentDialect called"); 347 + return NULL; 348 + } 349 + 350 + void* OSAGetDefaultScriptingComponent(void) 351 + { 352 + if (verbose) puts("STUB: OSAGetDefaultScriptingComponent called"); 353 + return NULL; 354 + } 355 + 356 + void* OSAGetDialectInfo(void) 357 + { 358 + if (verbose) puts("STUB: OSAGetDialectInfo called"); 359 + return NULL; 360 + } 361 + 362 + void* OSAGetEventHandler(void) 363 + { 364 + if (verbose) puts("STUB: OSAGetEventHandler called"); 365 + return NULL; 366 + } 367 + 368 + void* OSAGetHandler(void) 369 + { 370 + if (verbose) puts("STUB: OSAGetHandler called"); 371 + return NULL; 372 + } 373 + 374 + void* OSAGetHandlerNames(void) 375 + { 376 + if (verbose) puts("STUB: OSAGetHandlerNames called"); 377 + return NULL; 378 + } 379 + 380 + void* OSAGetProperty(void) 381 + { 382 + if (verbose) puts("STUB: OSAGetProperty called"); 383 + return NULL; 384 + } 385 + 386 + void* OSAGetPropertyNames(void) 387 + { 388 + if (verbose) puts("STUB: OSAGetPropertyNames called"); 389 + return NULL; 390 + } 391 + 392 + void* OSAGetReleaseProgressProc(void) 393 + { 394 + if (verbose) puts("STUB: OSAGetReleaseProgressProc called"); 395 + return NULL; 396 + } 397 + 398 + void* OSAGetResumeDispatchProc(void) 399 + { 400 + if (verbose) puts("STUB: OSAGetResumeDispatchProc called"); 401 + return NULL; 402 + } 403 + 404 + void* OSAGetScriptDataFromURL(void) 405 + { 406 + if (verbose) puts("STUB: OSAGetScriptDataFromURL called"); 407 + return NULL; 408 + } 409 + 410 + void* OSAGetScriptInfo(void) 411 + { 412 + if (verbose) puts("STUB: OSAGetScriptInfo called"); 413 + return NULL; 414 + } 415 + 416 + void* OSAGetScriptingComponent(void) 417 + { 418 + if (verbose) puts("STUB: OSAGetScriptingComponent called"); 419 + return NULL; 420 + } 421 + 422 + void* OSAGetScriptingComponentFromStored(void) 423 + { 424 + if (verbose) puts("STUB: OSAGetScriptingComponentFromStored called"); 425 + return NULL; 426 + } 427 + 428 + void* OSAGetSendProc(void) 429 + { 430 + if (verbose) puts("STUB: OSAGetSendProc called"); 431 + return NULL; 432 + } 433 + 434 + void* OSAGetSource(void) 435 + { 436 + if (verbose) puts("STUB: OSAGetSource called"); 437 + return NULL; 438 + } 439 + 440 + void* OSAGetStorageType(void) 441 + { 442 + if (verbose) puts("STUB: OSAGetStorageType called"); 443 + return NULL; 444 + } 445 + 446 + void* OSAGetSysTerminology(void) 447 + { 448 + if (verbose) puts("STUB: OSAGetSysTerminology called"); 449 + return NULL; 450 + } 451 + 452 + void* OSAInstallEventHandler(void) 453 + { 454 + if (verbose) puts("STUB: OSAInstallEventHandler called"); 455 + return NULL; 456 + } 457 + 458 + void* OSAInstallGestaltValues(void) 459 + { 460 + if (verbose) puts("STUB: OSAInstallGestaltValues called"); 461 + return NULL; 462 + } 463 + 464 + void* OSAInstallScriptingDescCoercions(void) 465 + { 466 + if (verbose) puts("STUB: OSAInstallScriptingDescCoercions called"); 467 + return NULL; 468 + } 469 + 470 + void* OSAInstallScriptingEventHandlers(void) 471 + { 472 + if (verbose) puts("STUB: OSAInstallScriptingEventHandlers called"); 473 + return NULL; 474 + } 475 + 476 + void* OSAInstallStdDescCoercions(void) 477 + { 478 + if (verbose) puts("STUB: OSAInstallStdDescCoercions called"); 479 + return NULL; 480 + } 481 + 482 + void* OSAInstallStdEventHandlers(void) 483 + { 484 + if (verbose) puts("STUB: OSAInstallStdEventHandlers called"); 485 + return NULL; 486 + } 487 + 488 + void* OSAInstallStdPtrCoercions(void) 489 + { 490 + if (verbose) puts("STUB: OSAInstallStdPtrCoercions called"); 491 + return NULL; 492 + } 493 + 494 + void* OSAInstallUnitPtrCoercions(void) 495 + { 496 + if (verbose) puts("STUB: OSAInstallUnitPtrCoercions called"); 497 + return NULL; 498 + } 499 + 500 + void* OSAIsEventAuthorizationRequested(void) 501 + { 502 + if (verbose) puts("STUB: OSAIsEventAuthorizationRequested called"); 503 + return NULL; 504 + } 505 + 506 + void* OSAIsEventAuthorized(void) 507 + { 508 + if (verbose) puts("STUB: OSAIsEventAuthorized called"); 509 + return NULL; 510 + } 511 + 512 + void* OSAIsScriptableBundle(void) 513 + { 514 + if (verbose) puts("STUB: OSAIsScriptableBundle called"); 515 + return NULL; 516 + } 517 + 518 + void* OSAIsScriptableRef(void) 519 + { 520 + if (verbose) puts("STUB: OSAIsScriptableRef called"); 521 + return NULL; 522 + } 523 + 524 + void* OSAIsScriptableURL(void) 525 + { 526 + if (verbose) puts("STUB: OSAIsScriptableURL called"); 527 + return NULL; 528 + } 529 + 530 + void* OSALoad(void) 531 + { 532 + if (verbose) puts("STUB: OSALoad called"); 533 + return NULL; 534 + } 535 + 536 + void* OSALoadExecute(void) 537 + { 538 + if (verbose) puts("STUB: OSALoadExecute called"); 539 + return NULL; 540 + } 541 + 542 + void* OSALoadExecuteFile(void) 543 + { 544 + if (verbose) puts("STUB: OSALoadExecuteFile called"); 545 + return NULL; 546 + } 547 + 548 + void* OSALoadFile(void) 549 + { 550 + if (verbose) puts("STUB: OSALoadFile called"); 551 + return NULL; 552 + } 553 + 554 + void* OSALoadScriptData(void) 555 + { 556 + if (verbose) puts("STUB: OSALoadScriptData called"); 557 + return NULL; 558 + } 559 + 560 + void* OSALoadScriptDataFromFile(void) 561 + { 562 + if (verbose) puts("STUB: OSALoadScriptDataFromFile called"); 563 + return NULL; 564 + } 565 + 566 + void* OSAMakeContext(void) 567 + { 568 + if (verbose) puts("STUB: OSAMakeContext called"); 569 + return NULL; 570 + } 571 + 572 + void* OSARealToGenericID(void) 573 + { 574 + if (verbose) puts("STUB: OSARealToGenericID called"); 575 + return NULL; 576 + } 577 + 578 + void* OSARecordEvent(void) 579 + { 580 + if (verbose) puts("STUB: OSARecordEvent called"); 581 + return NULL; 582 + } 583 + 584 + void* OSARemoveEventHandler(void) 585 + { 586 + if (verbose) puts("STUB: OSARemoveEventHandler called"); 587 + return NULL; 588 + } 589 + 590 + void* OSARemoveStorageType(void) 591 + { 592 + if (verbose) puts("STUB: OSARemoveStorageType called"); 593 + return NULL; 594 + } 595 + 596 + void* OSARequestEventAuthorization(void) 597 + { 598 + if (verbose) puts("STUB: OSARequestEventAuthorization called"); 599 + return NULL; 600 + } 601 + 602 + void* OSAScriptError(void) 603 + { 604 + if (verbose) puts("STUB: OSAScriptError called"); 605 + return NULL; 606 + } 607 + 608 + void* OSAScriptingComponentName(void) 609 + { 610 + if (verbose) puts("STUB: OSAScriptingComponentName called"); 611 + return NULL; 612 + } 613 + 614 + void* OSASetActiveProc(void) 615 + { 616 + if (verbose) puts("STUB: OSASetActiveProc called"); 617 + return NULL; 618 + } 619 + 620 + void* OSASetCreateProc(void) 621 + { 622 + if (verbose) puts("STUB: OSASetCreateProc called"); 623 + return NULL; 624 + } 625 + 626 + void* OSASetCreateProgressProc(void) 627 + { 628 + if (verbose) puts("STUB: OSASetCreateProgressProc called"); 629 + return NULL; 630 + } 631 + 632 + void* OSASetCurrentDialect(void) 633 + { 634 + if (verbose) puts("STUB: OSASetCurrentDialect called"); 635 + return NULL; 636 + } 637 + 638 + void* OSASetDefaultScriptingComponent(void) 639 + { 640 + if (verbose) puts("STUB: OSASetDefaultScriptingComponent called"); 641 + return NULL; 642 + } 643 + 644 + void* OSASetDefaultTarget(void) 645 + { 646 + if (verbose) puts("STUB: OSASetDefaultTarget called"); 647 + return NULL; 648 + } 649 + 650 + void* OSASetHandler(void) 651 + { 652 + if (verbose) puts("STUB: OSASetHandler called"); 653 + return NULL; 654 + } 655 + 656 + void* OSASetProperty(void) 657 + { 658 + if (verbose) puts("STUB: OSASetProperty called"); 659 + return NULL; 660 + } 661 + 662 + void* OSASetReleaseProgressProc(void) 663 + { 664 + if (verbose) puts("STUB: OSASetReleaseProgressProc called"); 665 + return NULL; 666 + } 667 + 668 + void* OSASetResumeDispatchProc(void) 669 + { 670 + if (verbose) puts("STUB: OSASetResumeDispatchProc called"); 671 + return NULL; 672 + } 673 + 674 + void* OSASetScriptInfo(void) 675 + { 676 + if (verbose) puts("STUB: OSASetScriptInfo called"); 677 + return NULL; 678 + } 679 + 680 + void* OSASetSendProc(void) 681 + { 682 + if (verbose) puts("STUB: OSASetSendProc called"); 683 + return NULL; 684 + } 685 + 686 + void* OSAStartRecording(void) 687 + { 688 + if (verbose) puts("STUB: OSAStartRecording called"); 689 + return NULL; 690 + } 691 + 692 + void* OSAStopRecording(void) 693 + { 694 + if (verbose) puts("STUB: OSAStopRecording called"); 695 + return NULL; 696 + } 697 + 698 + void* OSAStore(void) 699 + { 700 + if (verbose) puts("STUB: OSAStore called"); 701 + return NULL; 702 + } 703 + 704 + void* OSAStoreFile(void) 705 + { 706 + if (verbose) puts("STUB: OSAStoreFile called"); 707 + return NULL; 708 + } 709 + 710 + void* OSAStoreScriptDataToFile(void) 711 + { 712 + if (verbose) puts("STUB: OSAStoreScriptDataToFile called"); 713 + return NULL; 714 + } 715 + 716 + void* OSAStoreScriptDataToNewFile(void) 717 + { 718 + if (verbose) puts("STUB: OSAStoreScriptDataToNewFile called"); 719 + return NULL; 720 + } 721 + 722 + void* _HandleGDUT(void) 723 + { 724 + if (verbose) puts("STUB: _HandleGDUT called"); 725 + return NULL; 726 + } 727 + 728 + void* _OSACopyDisplayString(void) 729 + { 730 + if (verbose) puts("STUB: _OSACopyDisplayString called"); 731 + return NULL; 732 + } 733 + 734 + void* _OSACopyScriptingDefinitionFromFile(void) 735 + { 736 + if (verbose) puts("STUB: _OSACopyScriptingDefinitionFromFile called"); 737 + return NULL; 738 + } 739 + 740 + void* _OSACopySourceString(void) 741 + { 742 + if (verbose) puts("STUB: _OSACopySourceString called"); 743 + return NULL; 744 + } 745 + 746 + void* _OSACreateURL(void) 747 + { 748 + if (verbose) puts("STUB: _OSACreateURL called"); 749 + return NULL; 750 + } 751 + 752 + void* _OSADoScriptURL(void) 753 + { 754 + if (verbose) puts("STUB: _OSADoScriptURL called"); 755 + return NULL; 756 + } 757 + 758 + void* _OSALoadExecuteURL(void) 759 + { 760 + if (verbose) puts("STUB: _OSALoadExecuteURL called"); 761 + return NULL; 762 + } 763 + 764 + void* _OSALoadURL(void) 765 + { 766 + if (verbose) puts("STUB: _OSALoadURL called"); 767 + return NULL; 768 + } 769 + 770 + void* _OSAStoreScriptDataToURL(void) 771 + { 772 + if (verbose) puts("STUB: _OSAStoreScriptDataToURL called"); 773 + return NULL; 774 + } 775 + 776 + void* _OSAStoreURL(void) 777 + { 778 + if (verbose) puts("STUB: _OSAStoreURL called"); 779 + return NULL; 780 + }
+17
src/frameworks/Carbon/Print/CMakeLists.txt
··· 1 + project(Print) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "271.0.0") 5 + 6 + add_framework(Print 7 + FAT 8 + CURRENT_VERSION 9 + VERSION "A" 10 + PARENT "Carbon" 11 + 12 + SOURCES 13 + src/Print.c 14 + 15 + DEPENDENCIES 16 + system 17 + )
+25
src/frameworks/Carbon/Print/include/Print/Print.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #ifndef _Print_H_ 22 + #define _Print_H_ 23 + 24 + 25 + #endif
+30
src/frameworks/Carbon/Print/src/Print.c
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <Print/Print.h> 22 + #include <stdlib.h> 23 + #include <stdio.h> 24 + 25 + static int verbose = 0; 26 + 27 + __attribute__((constructor)) 28 + static void initme(void) { 29 + verbose = getenv("STUB_VERBOSE") != NULL; 30 + }
+17
src/frameworks/Carbon/SecurityHI/CMakeLists.txt
··· 1 + project(SecurityHI) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "55008.0.0") 5 + 6 + add_framework(SecurityHI 7 + FAT 8 + CURRENT_VERSION 9 + VERSION "A" 10 + PARENT "Carbon" 11 + 12 + SOURCES 13 + src/SecurityHI.c 14 + 15 + DEPENDENCIES 16 + system 17 + )
+51
src/frameworks/Carbon/SecurityHI/include/SecurityHI/SecurityHI.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #ifndef _SecurityHI_H_ 22 + #define _SecurityHI_H_ 23 + 24 + void* DisposeURLNotifyUPP(void); 25 + void* DisposeURLSystemEventUPP(void); 26 + void* InvokeURLNotifyUPP(void); 27 + void* InvokeURLSystemEventUPP(void); 28 + void* KCAddAppleSharePassword(void); 29 + void* KCAddGenericPassword(void); 30 + void* KCAddInternetPassword(void); 31 + void* KCAddInternetPasswordWithPath(void); 32 + void* KCAddItem(void); 33 + void* KCChangeSettings(void); 34 + void* KCCreateKeychain(void); 35 + void* KCUnlock(void); 36 + void* NewURLNotifyUPP(void); 37 + void* NewURLSystemEventUPP(void); 38 + void* SecChooseIdentity(void); 39 + void* SecChooseIdentityAsSheet(void); 40 + void* SecDisplayCertificate(void); 41 + void* SecDisplayCertificateGroup(void); 42 + void* SecEditTrust(void); 43 + void* SecEditTrustAsSheet(void); 44 + void* kcaddapplesharepassword(void); 45 + void* kcaddgenericpassword(void); 46 + void* kcaddinternetpassword(void); 47 + void* kcaddinternetpasswordwithpath(void); 48 + void* kccreatekeychain(void); 49 + void* kcunlock(void); 50 + 51 + #endif
+186
src/frameworks/Carbon/SecurityHI/src/SecurityHI.c
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <SecurityHI/SecurityHI.h> 22 + #include <stdlib.h> 23 + #include <stdio.h> 24 + 25 + static int verbose = 0; 26 + 27 + __attribute__((constructor)) 28 + static void initme(void) { 29 + verbose = getenv("STUB_VERBOSE") != NULL; 30 + } 31 + 32 + void* DisposeURLNotifyUPP(void) 33 + { 34 + if (verbose) puts("STUB: DisposeURLNotifyUPP called"); 35 + return NULL; 36 + } 37 + 38 + void* DisposeURLSystemEventUPP(void) 39 + { 40 + if (verbose) puts("STUB: DisposeURLSystemEventUPP called"); 41 + return NULL; 42 + } 43 + 44 + void* InvokeURLNotifyUPP(void) 45 + { 46 + if (verbose) puts("STUB: InvokeURLNotifyUPP called"); 47 + return NULL; 48 + } 49 + 50 + void* InvokeURLSystemEventUPP(void) 51 + { 52 + if (verbose) puts("STUB: InvokeURLSystemEventUPP called"); 53 + return NULL; 54 + } 55 + 56 + void* KCAddAppleSharePassword(void) 57 + { 58 + if (verbose) puts("STUB: KCAddAppleSharePassword called"); 59 + return NULL; 60 + } 61 + 62 + void* KCAddGenericPassword(void) 63 + { 64 + if (verbose) puts("STUB: KCAddGenericPassword called"); 65 + return NULL; 66 + } 67 + 68 + void* KCAddInternetPassword(void) 69 + { 70 + if (verbose) puts("STUB: KCAddInternetPassword called"); 71 + return NULL; 72 + } 73 + 74 + void* KCAddInternetPasswordWithPath(void) 75 + { 76 + if (verbose) puts("STUB: KCAddInternetPasswordWithPath called"); 77 + return NULL; 78 + } 79 + 80 + void* KCAddItem(void) 81 + { 82 + if (verbose) puts("STUB: KCAddItem called"); 83 + return NULL; 84 + } 85 + 86 + void* KCChangeSettings(void) 87 + { 88 + if (verbose) puts("STUB: KCChangeSettings called"); 89 + return NULL; 90 + } 91 + 92 + void* KCCreateKeychain(void) 93 + { 94 + if (verbose) puts("STUB: KCCreateKeychain called"); 95 + return NULL; 96 + } 97 + 98 + void* KCUnlock(void) 99 + { 100 + if (verbose) puts("STUB: KCUnlock called"); 101 + return NULL; 102 + } 103 + 104 + void* NewURLNotifyUPP(void) 105 + { 106 + if (verbose) puts("STUB: NewURLNotifyUPP called"); 107 + return NULL; 108 + } 109 + 110 + void* NewURLSystemEventUPP(void) 111 + { 112 + if (verbose) puts("STUB: NewURLSystemEventUPP called"); 113 + return NULL; 114 + } 115 + 116 + void* SecChooseIdentity(void) 117 + { 118 + if (verbose) puts("STUB: SecChooseIdentity called"); 119 + return NULL; 120 + } 121 + 122 + void* SecChooseIdentityAsSheet(void) 123 + { 124 + if (verbose) puts("STUB: SecChooseIdentityAsSheet called"); 125 + return NULL; 126 + } 127 + 128 + void* SecDisplayCertificate(void) 129 + { 130 + if (verbose) puts("STUB: SecDisplayCertificate called"); 131 + return NULL; 132 + } 133 + 134 + void* SecDisplayCertificateGroup(void) 135 + { 136 + if (verbose) puts("STUB: SecDisplayCertificateGroup called"); 137 + return NULL; 138 + } 139 + 140 + void* SecEditTrust(void) 141 + { 142 + if (verbose) puts("STUB: SecEditTrust called"); 143 + return NULL; 144 + } 145 + 146 + void* SecEditTrustAsSheet(void) 147 + { 148 + if (verbose) puts("STUB: SecEditTrustAsSheet called"); 149 + return NULL; 150 + } 151 + 152 + void* kcaddapplesharepassword(void) 153 + { 154 + if (verbose) puts("STUB: kcaddapplesharepassword called"); 155 + return NULL; 156 + } 157 + 158 + void* kcaddgenericpassword(void) 159 + { 160 + if (verbose) puts("STUB: kcaddgenericpassword called"); 161 + return NULL; 162 + } 163 + 164 + void* kcaddinternetpassword(void) 165 + { 166 + if (verbose) puts("STUB: kcaddinternetpassword called"); 167 + return NULL; 168 + } 169 + 170 + void* kcaddinternetpasswordwithpath(void) 171 + { 172 + if (verbose) puts("STUB: kcaddinternetpasswordwithpath called"); 173 + return NULL; 174 + } 175 + 176 + void* kccreatekeychain(void) 177 + { 178 + if (verbose) puts("STUB: kccreatekeychain called"); 179 + return NULL; 180 + } 181 + 182 + void* kcunlock(void) 183 + { 184 + if (verbose) puts("STUB: kcunlock called"); 185 + return NULL; 186 + }
+17
src/frameworks/Carbon/SpeechRecognition/CMakeLists.txt
··· 1 + project(SpeechRecognition) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "1.0.0") 5 + 6 + add_framework(SpeechRecognition 7 + FAT 8 + CURRENT_VERSION 9 + VERSION "A" 10 + PARENT "Carbon" 11 + 12 + SOURCES 13 + src/SpeechRecognition.c 14 + 15 + DEPENDENCIES 16 + system 17 + )
+120
src/frameworks/Carbon/SpeechRecognition/include/SpeechRecognition/SpeechRecognition.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #ifndef _SpeechRecognition_H_ 22 + #define _SpeechRecognition_H_ 23 + 24 + void* DisposeSRCallBackUPP(void); 25 + void* InvokeSRCallBackUPP(void); 26 + void* NewSRCallBackUPP(void); 27 + void* SFSAvatarCaptionVisible(void); 28 + void* SFSCopyActiveRecognizer(void); 29 + void* SFSCopyCurrentAvatarIdentifier(void); 30 + void* SFSCopyIndAvatarInfo(void); 31 + void* SFSCopyIndRecognizerPluginBundleRef(void); 32 + void* SFSCopyNamedAvatarInfo(void); 33 + void* SFSCopyProperty(void); 34 + void* SFSCountAvatars(void); 35 + void* SFSCountRecognizerPlugins(void); 36 + void* SFSCreateSpeechFeedbackService(void); 37 + void* SFSCreateSpeechFeedbackServiceFromRecognizerIdentifier(void); 38 + void* SFSDeminimizeFeedbackWindow(void); 39 + void* SFSDeminimizeUtilityWindow(void); 40 + void* SFSFeedbackWindowVisible(void); 41 + void* SFSGetAvatarExpression(void); 42 + void* SFSGetTargetProcess(void); 43 + void* SFSHideAvatarCaption(void); 44 + void* SFSHideFeedbackWindow(void); 45 + void* SFSHideRecognizerArea(void); 46 + void* SFSHideTextArea(void); 47 + void* SFSHideUtilityWindow(void); 48 + void* SFSIsRecognizerAreaVisible(void); 49 + void* SFSIsTextAreaVisible(void); 50 + void* SFSMinimizeFeedbackWindow(void); 51 + void* SFSMinimizeUtilityWindow(void); 52 + void* SFSReleaseSpeechFeedbackService(void); 53 + void* SFSRequestMicrophone(void); 54 + void* SFSReturnMicrophone(void); 55 + void* SFSSendMessageToRecognizerArea(void); 56 + void* SFSSetActiveRecognizer(void); 57 + void* SFSSetAvatarCaption(void); 58 + void* SFSSetAvatarExpression(void); 59 + void* SFSSetAvatarSpeakingState(void); 60 + void* SFSSetIdentityBadge(void); 61 + void* SFSSetMicrophoneMeterStatus(void); 62 + void* SFSSetProperty(void); 63 + void* SFSSetRecognizerStartupAction(void); 64 + void* SFSSetSpeakableCommandsData(void); 65 + void* SFSShowAvatarCaption(void); 66 + void* SFSShowFeedbackWindow(void); 67 + void* SFSShowRecognizerArea(void); 68 + void* SFSShowTextArea(void); 69 + void* SFSShowUtilityWindow(void); 70 + void* SFSSpeakAndDrawString(void); 71 + void* SFSSpeakAndDrawStringUsingVoice(void); 72 + void* SFSSpecifyMicrophoneToMeter(void); 73 + void* SFSSpeechBusy(void); 74 + void* SFSStopSpeech(void); 75 + void* SFSSyncFeedbackWindowWithPrefs(void); 76 + void* SFSUseAvatar(void); 77 + void* SFSUseAvatarBundle(void); 78 + void* SFSUseRecognizerAreaBundle(void); 79 + void* SFSUtilityWindowVisible(void); 80 + void* SRAddLanguageObject(void); 81 + void* SRAddText(void); 82 + void* SRCancelRecognition(void); 83 + void* SRChangeLanguageObject(void); 84 + void* SRCloseRecognitionSystem(void); 85 + void* SRContinueRecognition(void); 86 + void* SRCountItems(void); 87 + void* SRDrawRecognizedText(void); 88 + void* SRDrawText(void); 89 + void* SREmptyLanguageObject(void); 90 + void* SRGetIndexedItem(void); 91 + void* SRGetLanguageModel(void); 92 + void* SRGetProperty(void); 93 + void* SRGetReference(void); 94 + void* SRIdle(void); 95 + void* SRNewLanguageModel(void); 96 + void* SRNewLanguageObjectFromDataFile(void); 97 + void* SRNewLanguageObjectFromHandle(void); 98 + void* SRNewPath(void); 99 + void* SRNewPhrase(void); 100 + void* SRNewRecognizer(void); 101 + void* SRNewWord(void); 102 + void* SROpenRecognitionSystem(void); 103 + void* SRProcessBegin(void); 104 + void* SRProcessEnd(void); 105 + void* SRPutLanguageObjectIntoDataFile(void); 106 + void* SRPutLanguageObjectIntoHandle(void); 107 + void* SRReleaseObject(void); 108 + void* SRRemoveIndexedItem(void); 109 + void* SRRemoveLanguageObject(void); 110 + void* SRSetIndexedItem(void); 111 + void* SRSetLanguageModel(void); 112 + void* SRSetProperty(void); 113 + void* SRSpeakAndDrawText(void); 114 + void* SRSpeakText(void); 115 + void* SRSpeechBusy(void); 116 + void* SRStartListening(void); 117 + void* SRStopListening(void); 118 + void* SRStopSpeech(void); 119 + 120 + #endif
+600
src/frameworks/Carbon/SpeechRecognition/src/SpeechRecognition.c
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <SpeechRecognition/SpeechRecognition.h> 22 + #include <stdlib.h> 23 + #include <stdio.h> 24 + 25 + static int verbose = 0; 26 + 27 + __attribute__((constructor)) 28 + static void initme(void) { 29 + verbose = getenv("STUB_VERBOSE") != NULL; 30 + } 31 + 32 + void* DisposeSRCallBackUPP(void) 33 + { 34 + if (verbose) puts("STUB: DisposeSRCallBackUPP called"); 35 + return NULL; 36 + } 37 + 38 + void* InvokeSRCallBackUPP(void) 39 + { 40 + if (verbose) puts("STUB: InvokeSRCallBackUPP called"); 41 + return NULL; 42 + } 43 + 44 + void* NewSRCallBackUPP(void) 45 + { 46 + if (verbose) puts("STUB: NewSRCallBackUPP called"); 47 + return NULL; 48 + } 49 + 50 + void* SFSAvatarCaptionVisible(void) 51 + { 52 + if (verbose) puts("STUB: SFSAvatarCaptionVisible called"); 53 + return NULL; 54 + } 55 + 56 + void* SFSCopyActiveRecognizer(void) 57 + { 58 + if (verbose) puts("STUB: SFSCopyActiveRecognizer called"); 59 + return NULL; 60 + } 61 + 62 + void* SFSCopyCurrentAvatarIdentifier(void) 63 + { 64 + if (verbose) puts("STUB: SFSCopyCurrentAvatarIdentifier called"); 65 + return NULL; 66 + } 67 + 68 + void* SFSCopyIndAvatarInfo(void) 69 + { 70 + if (verbose) puts("STUB: SFSCopyIndAvatarInfo called"); 71 + return NULL; 72 + } 73 + 74 + void* SFSCopyIndRecognizerPluginBundleRef(void) 75 + { 76 + if (verbose) puts("STUB: SFSCopyIndRecognizerPluginBundleRef called"); 77 + return NULL; 78 + } 79 + 80 + void* SFSCopyNamedAvatarInfo(void) 81 + { 82 + if (verbose) puts("STUB: SFSCopyNamedAvatarInfo called"); 83 + return NULL; 84 + } 85 + 86 + void* SFSCopyProperty(void) 87 + { 88 + if (verbose) puts("STUB: SFSCopyProperty called"); 89 + return NULL; 90 + } 91 + 92 + void* SFSCountAvatars(void) 93 + { 94 + if (verbose) puts("STUB: SFSCountAvatars called"); 95 + return NULL; 96 + } 97 + 98 + void* SFSCountRecognizerPlugins(void) 99 + { 100 + if (verbose) puts("STUB: SFSCountRecognizerPlugins called"); 101 + return NULL; 102 + } 103 + 104 + void* SFSCreateSpeechFeedbackService(void) 105 + { 106 + if (verbose) puts("STUB: SFSCreateSpeechFeedbackService called"); 107 + return NULL; 108 + } 109 + 110 + void* SFSCreateSpeechFeedbackServiceFromRecognizerIdentifier(void) 111 + { 112 + if (verbose) puts("STUB: SFSCreateSpeechFeedbackServiceFromRecognizerIdentifier called"); 113 + return NULL; 114 + } 115 + 116 + void* SFSDeminimizeFeedbackWindow(void) 117 + { 118 + if (verbose) puts("STUB: SFSDeminimizeFeedbackWindow called"); 119 + return NULL; 120 + } 121 + 122 + void* SFSDeminimizeUtilityWindow(void) 123 + { 124 + if (verbose) puts("STUB: SFSDeminimizeUtilityWindow called"); 125 + return NULL; 126 + } 127 + 128 + void* SFSFeedbackWindowVisible(void) 129 + { 130 + if (verbose) puts("STUB: SFSFeedbackWindowVisible called"); 131 + return NULL; 132 + } 133 + 134 + void* SFSGetAvatarExpression(void) 135 + { 136 + if (verbose) puts("STUB: SFSGetAvatarExpression called"); 137 + return NULL; 138 + } 139 + 140 + void* SFSGetTargetProcess(void) 141 + { 142 + if (verbose) puts("STUB: SFSGetTargetProcess called"); 143 + return NULL; 144 + } 145 + 146 + void* SFSHideAvatarCaption(void) 147 + { 148 + if (verbose) puts("STUB: SFSHideAvatarCaption called"); 149 + return NULL; 150 + } 151 + 152 + void* SFSHideFeedbackWindow(void) 153 + { 154 + if (verbose) puts("STUB: SFSHideFeedbackWindow called"); 155 + return NULL; 156 + } 157 + 158 + void* SFSHideRecognizerArea(void) 159 + { 160 + if (verbose) puts("STUB: SFSHideRecognizerArea called"); 161 + return NULL; 162 + } 163 + 164 + void* SFSHideTextArea(void) 165 + { 166 + if (verbose) puts("STUB: SFSHideTextArea called"); 167 + return NULL; 168 + } 169 + 170 + void* SFSHideUtilityWindow(void) 171 + { 172 + if (verbose) puts("STUB: SFSHideUtilityWindow called"); 173 + return NULL; 174 + } 175 + 176 + void* SFSIsRecognizerAreaVisible(void) 177 + { 178 + if (verbose) puts("STUB: SFSIsRecognizerAreaVisible called"); 179 + return NULL; 180 + } 181 + 182 + void* SFSIsTextAreaVisible(void) 183 + { 184 + if (verbose) puts("STUB: SFSIsTextAreaVisible called"); 185 + return NULL; 186 + } 187 + 188 + void* SFSMinimizeFeedbackWindow(void) 189 + { 190 + if (verbose) puts("STUB: SFSMinimizeFeedbackWindow called"); 191 + return NULL; 192 + } 193 + 194 + void* SFSMinimizeUtilityWindow(void) 195 + { 196 + if (verbose) puts("STUB: SFSMinimizeUtilityWindow called"); 197 + return NULL; 198 + } 199 + 200 + void* SFSReleaseSpeechFeedbackService(void) 201 + { 202 + if (verbose) puts("STUB: SFSReleaseSpeechFeedbackService called"); 203 + return NULL; 204 + } 205 + 206 + void* SFSRequestMicrophone(void) 207 + { 208 + if (verbose) puts("STUB: SFSRequestMicrophone called"); 209 + return NULL; 210 + } 211 + 212 + void* SFSReturnMicrophone(void) 213 + { 214 + if (verbose) puts("STUB: SFSReturnMicrophone called"); 215 + return NULL; 216 + } 217 + 218 + void* SFSSendMessageToRecognizerArea(void) 219 + { 220 + if (verbose) puts("STUB: SFSSendMessageToRecognizerArea called"); 221 + return NULL; 222 + } 223 + 224 + void* SFSSetActiveRecognizer(void) 225 + { 226 + if (verbose) puts("STUB: SFSSetActiveRecognizer called"); 227 + return NULL; 228 + } 229 + 230 + void* SFSSetAvatarCaption(void) 231 + { 232 + if (verbose) puts("STUB: SFSSetAvatarCaption called"); 233 + return NULL; 234 + } 235 + 236 + void* SFSSetAvatarExpression(void) 237 + { 238 + if (verbose) puts("STUB: SFSSetAvatarExpression called"); 239 + return NULL; 240 + } 241 + 242 + void* SFSSetAvatarSpeakingState(void) 243 + { 244 + if (verbose) puts("STUB: SFSSetAvatarSpeakingState called"); 245 + return NULL; 246 + } 247 + 248 + void* SFSSetIdentityBadge(void) 249 + { 250 + if (verbose) puts("STUB: SFSSetIdentityBadge called"); 251 + return NULL; 252 + } 253 + 254 + void* SFSSetMicrophoneMeterStatus(void) 255 + { 256 + if (verbose) puts("STUB: SFSSetMicrophoneMeterStatus called"); 257 + return NULL; 258 + } 259 + 260 + void* SFSSetProperty(void) 261 + { 262 + if (verbose) puts("STUB: SFSSetProperty called"); 263 + return NULL; 264 + } 265 + 266 + void* SFSSetRecognizerStartupAction(void) 267 + { 268 + if (verbose) puts("STUB: SFSSetRecognizerStartupAction called"); 269 + return NULL; 270 + } 271 + 272 + void* SFSSetSpeakableCommandsData(void) 273 + { 274 + if (verbose) puts("STUB: SFSSetSpeakableCommandsData called"); 275 + return NULL; 276 + } 277 + 278 + void* SFSShowAvatarCaption(void) 279 + { 280 + if (verbose) puts("STUB: SFSShowAvatarCaption called"); 281 + return NULL; 282 + } 283 + 284 + void* SFSShowFeedbackWindow(void) 285 + { 286 + if (verbose) puts("STUB: SFSShowFeedbackWindow called"); 287 + return NULL; 288 + } 289 + 290 + void* SFSShowRecognizerArea(void) 291 + { 292 + if (verbose) puts("STUB: SFSShowRecognizerArea called"); 293 + return NULL; 294 + } 295 + 296 + void* SFSShowTextArea(void) 297 + { 298 + if (verbose) puts("STUB: SFSShowTextArea called"); 299 + return NULL; 300 + } 301 + 302 + void* SFSShowUtilityWindow(void) 303 + { 304 + if (verbose) puts("STUB: SFSShowUtilityWindow called"); 305 + return NULL; 306 + } 307 + 308 + void* SFSSpeakAndDrawString(void) 309 + { 310 + if (verbose) puts("STUB: SFSSpeakAndDrawString called"); 311 + return NULL; 312 + } 313 + 314 + void* SFSSpeakAndDrawStringUsingVoice(void) 315 + { 316 + if (verbose) puts("STUB: SFSSpeakAndDrawStringUsingVoice called"); 317 + return NULL; 318 + } 319 + 320 + void* SFSSpecifyMicrophoneToMeter(void) 321 + { 322 + if (verbose) puts("STUB: SFSSpecifyMicrophoneToMeter called"); 323 + return NULL; 324 + } 325 + 326 + void* SFSSpeechBusy(void) 327 + { 328 + if (verbose) puts("STUB: SFSSpeechBusy called"); 329 + return NULL; 330 + } 331 + 332 + void* SFSStopSpeech(void) 333 + { 334 + if (verbose) puts("STUB: SFSStopSpeech called"); 335 + return NULL; 336 + } 337 + 338 + void* SFSSyncFeedbackWindowWithPrefs(void) 339 + { 340 + if (verbose) puts("STUB: SFSSyncFeedbackWindowWithPrefs called"); 341 + return NULL; 342 + } 343 + 344 + void* SFSUseAvatar(void) 345 + { 346 + if (verbose) puts("STUB: SFSUseAvatar called"); 347 + return NULL; 348 + } 349 + 350 + void* SFSUseAvatarBundle(void) 351 + { 352 + if (verbose) puts("STUB: SFSUseAvatarBundle called"); 353 + return NULL; 354 + } 355 + 356 + void* SFSUseRecognizerAreaBundle(void) 357 + { 358 + if (verbose) puts("STUB: SFSUseRecognizerAreaBundle called"); 359 + return NULL; 360 + } 361 + 362 + void* SFSUtilityWindowVisible(void) 363 + { 364 + if (verbose) puts("STUB: SFSUtilityWindowVisible called"); 365 + return NULL; 366 + } 367 + 368 + void* SRAddLanguageObject(void) 369 + { 370 + if (verbose) puts("STUB: SRAddLanguageObject called"); 371 + return NULL; 372 + } 373 + 374 + void* SRAddText(void) 375 + { 376 + if (verbose) puts("STUB: SRAddText called"); 377 + return NULL; 378 + } 379 + 380 + void* SRCancelRecognition(void) 381 + { 382 + if (verbose) puts("STUB: SRCancelRecognition called"); 383 + return NULL; 384 + } 385 + 386 + void* SRChangeLanguageObject(void) 387 + { 388 + if (verbose) puts("STUB: SRChangeLanguageObject called"); 389 + return NULL; 390 + } 391 + 392 + void* SRCloseRecognitionSystem(void) 393 + { 394 + if (verbose) puts("STUB: SRCloseRecognitionSystem called"); 395 + return NULL; 396 + } 397 + 398 + void* SRContinueRecognition(void) 399 + { 400 + if (verbose) puts("STUB: SRContinueRecognition called"); 401 + return NULL; 402 + } 403 + 404 + void* SRCountItems(void) 405 + { 406 + if (verbose) puts("STUB: SRCountItems called"); 407 + return NULL; 408 + } 409 + 410 + void* SRDrawRecognizedText(void) 411 + { 412 + if (verbose) puts("STUB: SRDrawRecognizedText called"); 413 + return NULL; 414 + } 415 + 416 + void* SRDrawText(void) 417 + { 418 + if (verbose) puts("STUB: SRDrawText called"); 419 + return NULL; 420 + } 421 + 422 + void* SREmptyLanguageObject(void) 423 + { 424 + if (verbose) puts("STUB: SREmptyLanguageObject called"); 425 + return NULL; 426 + } 427 + 428 + void* SRGetIndexedItem(void) 429 + { 430 + if (verbose) puts("STUB: SRGetIndexedItem called"); 431 + return NULL; 432 + } 433 + 434 + void* SRGetLanguageModel(void) 435 + { 436 + if (verbose) puts("STUB: SRGetLanguageModel called"); 437 + return NULL; 438 + } 439 + 440 + void* SRGetProperty(void) 441 + { 442 + if (verbose) puts("STUB: SRGetProperty called"); 443 + return NULL; 444 + } 445 + 446 + void* SRGetReference(void) 447 + { 448 + if (verbose) puts("STUB: SRGetReference called"); 449 + return NULL; 450 + } 451 + 452 + void* SRIdle(void) 453 + { 454 + if (verbose) puts("STUB: SRIdle called"); 455 + return NULL; 456 + } 457 + 458 + void* SRNewLanguageModel(void) 459 + { 460 + if (verbose) puts("STUB: SRNewLanguageModel called"); 461 + return NULL; 462 + } 463 + 464 + void* SRNewLanguageObjectFromDataFile(void) 465 + { 466 + if (verbose) puts("STUB: SRNewLanguageObjectFromDataFile called"); 467 + return NULL; 468 + } 469 + 470 + void* SRNewLanguageObjectFromHandle(void) 471 + { 472 + if (verbose) puts("STUB: SRNewLanguageObjectFromHandle called"); 473 + return NULL; 474 + } 475 + 476 + void* SRNewPath(void) 477 + { 478 + if (verbose) puts("STUB: SRNewPath called"); 479 + return NULL; 480 + } 481 + 482 + void* SRNewPhrase(void) 483 + { 484 + if (verbose) puts("STUB: SRNewPhrase called"); 485 + return NULL; 486 + } 487 + 488 + void* SRNewRecognizer(void) 489 + { 490 + if (verbose) puts("STUB: SRNewRecognizer called"); 491 + return NULL; 492 + } 493 + 494 + void* SRNewWord(void) 495 + { 496 + if (verbose) puts("STUB: SRNewWord called"); 497 + return NULL; 498 + } 499 + 500 + void* SROpenRecognitionSystem(void) 501 + { 502 + if (verbose) puts("STUB: SROpenRecognitionSystem called"); 503 + return NULL; 504 + } 505 + 506 + void* SRProcessBegin(void) 507 + { 508 + if (verbose) puts("STUB: SRProcessBegin called"); 509 + return NULL; 510 + } 511 + 512 + void* SRProcessEnd(void) 513 + { 514 + if (verbose) puts("STUB: SRProcessEnd called"); 515 + return NULL; 516 + } 517 + 518 + void* SRPutLanguageObjectIntoDataFile(void) 519 + { 520 + if (verbose) puts("STUB: SRPutLanguageObjectIntoDataFile called"); 521 + return NULL; 522 + } 523 + 524 + void* SRPutLanguageObjectIntoHandle(void) 525 + { 526 + if (verbose) puts("STUB: SRPutLanguageObjectIntoHandle called"); 527 + return NULL; 528 + } 529 + 530 + void* SRReleaseObject(void) 531 + { 532 + if (verbose) puts("STUB: SRReleaseObject called"); 533 + return NULL; 534 + } 535 + 536 + void* SRRemoveIndexedItem(void) 537 + { 538 + if (verbose) puts("STUB: SRRemoveIndexedItem called"); 539 + return NULL; 540 + } 541 + 542 + void* SRRemoveLanguageObject(void) 543 + { 544 + if (verbose) puts("STUB: SRRemoveLanguageObject called"); 545 + return NULL; 546 + } 547 + 548 + void* SRSetIndexedItem(void) 549 + { 550 + if (verbose) puts("STUB: SRSetIndexedItem called"); 551 + return NULL; 552 + } 553 + 554 + void* SRSetLanguageModel(void) 555 + { 556 + if (verbose) puts("STUB: SRSetLanguageModel called"); 557 + return NULL; 558 + } 559 + 560 + void* SRSetProperty(void) 561 + { 562 + if (verbose) puts("STUB: SRSetProperty called"); 563 + return NULL; 564 + } 565 + 566 + void* SRSpeakAndDrawText(void) 567 + { 568 + if (verbose) puts("STUB: SRSpeakAndDrawText called"); 569 + return NULL; 570 + } 571 + 572 + void* SRSpeakText(void) 573 + { 574 + if (verbose) puts("STUB: SRSpeakText called"); 575 + return NULL; 576 + } 577 + 578 + void* SRSpeechBusy(void) 579 + { 580 + if (verbose) puts("STUB: SRSpeechBusy called"); 581 + return NULL; 582 + } 583 + 584 + void* SRStartListening(void) 585 + { 586 + if (verbose) puts("STUB: SRStartListening called"); 587 + return NULL; 588 + } 589 + 590 + void* SRStopListening(void) 591 + { 592 + if (verbose) puts("STUB: SRStopListening called"); 593 + return NULL; 594 + } 595 + 596 + void* SRStopSpeech(void) 597 + { 598 + if (verbose) puts("STUB: SRStopSpeech called"); 599 + return NULL; 600 + }
+4
src/frameworks/Carbon/include/Carbon/Carbon.h
··· 28 28 #include <HIToolbox/CarbonEventsCore.h> 29 29 #include <HIToolbox/CarbonEvents.h> 30 30 #include <HIToolbox/Dialogs.h> 31 + #include <HIToolbox/Drag.h> 31 32 #include <HIToolbox/Events.h> 33 + #include <HIToolbox/HIObject.h> 34 + #include <HIToolbox/Lists.h> 32 35 #include <HIToolbox/Menus.h> 33 36 #include <HIToolbox/Notification.h> 34 37 #include <HIToolbox/Scrap.h> 38 + #include <HIToolbox/TextEdit.h> 35 39 #include <HIToolbox/TextInputSources.h> 36 40 #include <HIToolbox/TextServices.h> 37 41
-1
src/frameworks/Carbon/include/HIToolbox/Carbon
··· 1 - ../Carbon/include/Carbon
src/frameworks/Carbon/include/HIToolbox/CarbonEvents.h src/frameworks/Carbon/HIToolbox/include/HIToolbox/CarbonEvents.h
src/frameworks/Carbon/include/HIToolbox/CarbonEventsCore.h src/frameworks/Carbon/HIToolbox/include/HIToolbox/CarbonEventsCore.h
+1
src/frameworks/Carbon/include/HIToolbox/Dialogs.h src/frameworks/Carbon/HIToolbox/include/HIToolbox/Dialogs.h
··· 7 7 8 8 typedef int16_t AlertType; 9 9 typedef void* DialogRef; 10 + typedef DialogRef DialogPtr; 10 11 typedef uint32_t AlertStdCFStringAlertParamRec; 11 12 typedef void* AlertStdCFStringAlertParamPtr; 12 13
+9
src/frameworks/Carbon/include/HIToolbox/Events.h src/frameworks/Carbon/HIToolbox/include/HIToolbox/Events.h
··· 139 139 kVK_UpArrow = 0x7E 140 140 }; 141 141 142 + typedef UInt16 EventModifiers; 143 + 144 + typedef struct EventRecord { 145 + EventKind what; 146 + unsigned long message; 147 + uint32_t when; 148 + Point where; 149 + EventModifiers modifiers; 150 + } EventRecord; 142 151 143 152 #ifdef __cplusplus 144 153 }
src/frameworks/Carbon/include/HIToolbox/Keyboards.h src/frameworks/Carbon/HIToolbox/include/HIToolbox/Keyboards.h
+1
src/frameworks/Carbon/include/HIToolbox/Menus.h src/frameworks/Carbon/HIToolbox/include/HIToolbox/Menus.h
··· 8 8 #endif 9 9 10 10 typedef struct OpaqueMenuRef* MenuRef; 11 + typedef MenuRef MenuHandle; 11 12 typedef UInt16 MenuItemIndex; 12 13 13 14 void ShowMenuBar(void);
src/frameworks/Carbon/include/HIToolbox/Notification.h src/frameworks/Carbon/HIToolbox/include/HIToolbox/Notification.h
src/frameworks/Carbon/include/HIToolbox/Scrap.h src/frameworks/Carbon/HIToolbox/include/HIToolbox/Scrap.h
src/frameworks/Carbon/include/HIToolbox/TextInputSources.h src/frameworks/Carbon/HIToolbox/include/HIToolbox/TextInputSources.h
src/frameworks/Carbon/include/HIToolbox/TextServices.h src/frameworks/Carbon/HIToolbox/include/HIToolbox/TextServices.h
src/frameworks/Carbon/src/constants.c src/frameworks/Carbon/HIToolbox/src/constants.c
+3
src/frameworks/CoreLocation/include/CoreLocation/CoreLocation.h
··· 61 61 #import <CoreLocation/_CLRangingPeer.h> 62 62 #import <CoreLocation/_CLRangingPeerDistance.h> 63 63 64 + @protocol CLLocationManagerDelegate 65 + @end 66 + 64 67 void* CLClientCreateIso6709Notation(void); 65 68 void* CLClientCreateWithBundleIdentifierAndPath(void); 66 69 void* CLClientCreateWithBundleIdentifierAndPathOnRunLoop(void);
+2
src/frameworks/CoreServices/include/CarbonCore/CarbonCore.h
··· 17 17 #include <CarbonCore/BackupCore.h> 18 18 #endif 19 19 20 + #include <CarbonCore/MixedMode.h> 21 + 20 22 #endif
+6
src/frameworks/CoreServices/include/CarbonCore/MixedMode.h
··· 1 + #ifndef _CARBONCORE_MIXEDMODE_H_ 2 + #define _CARBONCORE_MIXEDMODE_H_ 3 + 4 + #define STACK_UPP_TYPE(name) name 5 + 6 + #endif // _CARBONCORE_MIXEDMODE_H_
+4
src/frameworks/CoreServices/include/CoreServices/FileManager.h
··· 46 46 uint16_t unicode[255]; 47 47 }; 48 48 typedef struct HFSUniStr255 HFSUniStr255; 49 + 50 + struct FSSpec { 51 + char hidden[70]; 52 + }; 49 53 typedef struct FSSpec FSSpec; 50 54 51 55 typedef struct FSSpec* FSSpecPtr;
+13
src/frameworks/CoreVideo/include/CoreVideo/CVBuffer.h
··· 1 + #ifndef _COREVIDEO_CVBUFFER_H_ 2 + #define _COREVIDEO_CVBUFFER_H_ 3 + 4 + #include <sys/cdefs.h> 5 + #include <CoreVideo/CVBase.h> 6 + 7 + __BEGIN_DECLS 8 + 9 + typedef struct CV_BRIDGED_TYPE(id) __CVBuffer* CVBufferRef; 10 + 11 + __END_DECLS 12 + 13 + #endif // _COREVIDEO_CVBUFFER_H_
+9
src/frameworks/CoreVideo/include/CoreVideo/CVImageBuffer.h
··· 1 + #ifndef _COREVIDEO_CVIMAGEBUFFER_H_ 2 + #define _COREVIDEO_CVIMAGEBUFFER_H_ 3 + 4 + #include <sys/cdefs.h> 5 + #include <CoreVideo/CVBuffer.h> 6 + 7 + typedef CVBufferRef CVImageBufferRef; 8 + 9 + #endif // _COREVIDEO_CVIMAGEBUFFER_H_
+10
src/frameworks/CoreVideo/include/CoreVideo/CVPixelBuffer.h
··· 1 1 #ifndef CVPIXELBUFFER_H 2 2 #define CVPIXELBUFFER_H 3 3 4 + #include <sys/cdefs.h> 5 + #include <CoreVideo/CVImageBuffer.h> 6 + 7 + __BEGIN_DECLS 8 + 4 9 enum 5 10 { 6 11 kCVPixelFormatType_1Monochrome = 0x00000001, ··· 71 76 }; 72 77 73 78 extern const CFStringRef kCVPixelBufferMetalCompatibilityKey; 79 + 80 + typedef CVImageBufferRef CVPixelBufferRef; 81 + 74 82 // TODO: This header file is incomplete 83 + 84 + __END_DECLS 75 85 76 86 #endif
+1
src/frameworks/CoreVideo/include/CoreVideo/CoreVideo.h
··· 28 28 #include <CoreVideo/CVBase.h> 29 29 30 30 #include <CoreVideo/CVDisplayLink.h> 31 + #include <CoreVideo/CVPixelBuffer.h> 31 32 32 33 #endif
-16
src/frameworks/DrawSprocket/src/DrawSprocket.c
··· 10 10 11 11 #define FW_EXPORT __attribute__ ((visibility ("default"))) 12 12 13 - 14 13 typedef UInt32 DisplayIDType; 15 - typedef UInt32 EventRecord; 16 14 17 15 typedef void* DSpContextReference; 18 16 typedef const void* DSpContextReferenceConst; ··· 22 20 typedef uint8_t DSpContextState; 23 21 24 22 typedef void* DSpCallbackUPP; 25 - 26 - // Older mac API defs 27 - typedef void* CGrafPtr; 28 - 29 - typedef struct RGBColor { 30 - unsigned short components[3]; 31 - } RGBColor; 32 - 33 - typedef struct ColorSpec { 34 - short value; 35 - RGBColor rgb; 36 - } ColorSpec; 37 - 38 - // 39 23 40 24 static int verbose = 0; 41 25
+33
src/frameworks/WebKit/include/WebKit/WebKit.h
··· 192 192 #import <WebKit/WKWebViewConfiguration.h> 193 193 #import <WebKit/WKWindowFeatures.h> 194 194 195 + @protocol DOMEventListener 196 + @end 197 + 198 + @protocol DOMEventTarget 199 + @end 200 + 201 + @protocol DOMNodeFilter 202 + @end 203 + 204 + @protocol DOMXPathNSResolver 205 + @end 206 + 207 + @protocol WebDocumentRepresentation 208 + @end 209 + 210 + @protocol WebDocumentSearching 211 + @end 212 + 213 + @protocol WebDocumentText 214 + @end 215 + 216 + @protocol WebDocumentView 217 + @end 218 + 219 + @protocol WebOpenPanelResultListener 220 + @end 221 + 222 + @protocol WebPlugInViewFactory 223 + @end 224 + 225 + @protocol WebPolicyDecisionListener 226 + @end 227 + 195 228 void* DatabaseServiceInitializer(void); 196 229 void* NetworkServiceInitializer(void); 197 230 void* PluginServiceInitializer(void);