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)
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#ifndef _CommonPanels_H_
2222+#define _CommonPanels_H_
2323+2424+#import <Foundation/Foundation.h>
2525+2626+2727+void* CCP_FontPanelClose(void);
2828+void* CCP_FontPanelGetSelection(void);
2929+void* CCP_FontPanelIsVisible(void);
3030+void* CCP_FontPanelOpen(void);
3131+void* CCP_FontPanelSelectFonts(void);
3232+void* CCP_NPickColor(void);
3333+void* CMCalibrateDisplay(void);
3434+void* Call_CommonCocoaPanels_NPickColor(void);
3535+void* DisposeCalibrateEventUPP(void);
3636+void* DisposeCalibrateUPP(void);
3737+void* DisposeCanCalibrateUPP(void);
3838+void* DisposeNColorChangedUPP(void);
3939+void* FCAddCollection(void);
4040+void* FCAddFontDescriptorToCollection(void);
4141+void* FCCopyCollectionNames(void);
4242+void* FCCopyFontDescriptorsInCollection(void);
4343+void* FCFontDescriptorCreateWithFontAttributes(void);
4444+void* FCFontDescriptorCreateWithName(void);
4545+void* FCRemoveCollection(void);
4646+void* FCRemoveFontDescriptorFromCollection(void);
4747+void* FPIsFontPanelVisible(void);
4848+void* FPShowHideFontPanel(void);
4949+void* GetColor(void);
5050+void* GetHandleApplicationEventsUPP(void);
5151+void* GetHandleWinEventsUPP(void);
5252+void* InvokeCalibrateEventUPP(void);
5353+void* InvokeCalibrateUPP(void);
5454+void* InvokeCanCalibrateUPP(void);
5555+void* InvokeNColorChangedUPP(void);
5656+void* LoadNSTypographyBundle(void);
5757+void* NPickColor(void);
5858+void* NewCalibrateEventUPP(void);
5959+void* NewCalibrateUPP(void);
6060+void* NewCanCalibrateUPP(void);
6161+void* NewNColorChangedUPP(void);
6262+void* SetFontInfoForSelection(void);
6363+void* SoftLinkingGetFunctionPointerFromBundleInDirectory(void);
6464+void* UserWantsColorPanelFromCommonCocoaPanels(void);
6565+void* _SoftLinkingLoadBundleFromLocation(void);
6666+6767+#endif
···11+#ifndef _HITOOLBOX_TEXTEDIT_H_
22+#define _HITOOLBOX_TEXTEDIT_H_
33+44+#include <CoreServices/CoreServices.h>
55+#include <QD/QD.h>
66+77+typedef struct TERec TERec;
88+typedef TERec* TEPtr;
99+typedef TEPtr* TEHandle;
1010+1111+typedef CALLBACK_API(void, HighHookProcPtr)(const Rect* r, TEPtr pTE);
1212+typedef CALLBACK_API(Boolean, EOLHookProcPtr)(char theChar, TEPtr pTE, TEHandle hTE);
1313+typedef CALLBACK_API(void, CaretHookProcPtr)(const Rect* r, TEPtr pTE);
1414+typedef CALLBACK_API(unsigned short, WidthHookProcPtr)(unsigned short textLen, unsigned short textOffset, void* textBufferPtr, TEPtr pTE, TEHandle hTE);
1515+typedef CALLBACK_API(unsigned short, TextWidthHookProcPtr)(unsigned short textLen, unsigned short textOffset, void* textBufferPtr, TEPtr pTE, TEHandle hTE);
1616+typedef CALLBACK_API(unsigned short, NWidthHookProcPtr)(unsigned short styleRunLen, unsigned short styleRunOffset, short slop, short direction, void *textBufferPtr, short* lineStart, TEPtr pTE, TEHandle hTE);
1717+typedef CALLBACK_API(void, DrawHookProcPtr)(unsigned short textOffset, unsigned short drawLen, void* textBufferPtr, TEPtr pTE, TEHandle hTE);
1818+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);
1919+typedef CALLBACK_API(void, TEFindWordProcPtr)(unsigned short currentPos, short caller, TEPtr pTE, TEHandle hTE, unsigned short* wordStart, unsigned short* wordEnd);
2020+typedef CALLBACK_API(void, TERecalcProcPtr)(TEPtr pTE, unsigned short changeLength, unsigned short* lineStart, unsigned short* firstChar, unsigned short* lastChar);
2121+typedef CALLBACK_API(void, TEDoTextProcPtr)(TEPtr pTE, unsigned short firstChar, unsigned short lastChar, short selector, GrafPtr* currentGrafPort, short* charPosition);
2222+typedef CALLBACK_API(Boolean, TEClickLoopProcPtr)(TEPtr pTE);
2323+typedef CALLBACK_API(Boolean, WordBreakProcPtr)(Ptr text, short charPos);
2424+2525+typedef STACK_UPP_TYPE(HighHookProcPtr) HighHookUPP;
2626+typedef STACK_UPP_TYPE(EOLHookProcPtr) EOLHookUPP;
2727+typedef STACK_UPP_TYPE(CaretHookProcPtr) CaretHookUPP;
2828+typedef STACK_UPP_TYPE(WidthHookProcPtr) WidthHookUPP;
2929+typedef STACK_UPP_TYPE(TextWidthHookProcPtr) TextWidthHookUPP;
3030+typedef STACK_UPP_TYPE(NWidthHookProcPtr) NWidthHookUPP;
3131+typedef STACK_UPP_TYPE(DrawHookProcPtr) DrawHookUPP;
3232+typedef STACK_UPP_TYPE(HitTestHookProcPtr) HitTestHookUPP;
3333+typedef STACK_UPP_TYPE(TEFindWordProcPtr) TEFindWordUPP;
3434+typedef STACK_UPP_TYPE(TERecalcProcPtr) TERecalcUPP;
3535+typedef STACK_UPP_TYPE(TEDoTextProcPtr) TEDoTextUPP;
3636+typedef STACK_UPP_TYPE(TEClickLoopProcPtr) TEClickLoopUPP;
3737+typedef STACK_UPP_TYPE(WordBreakProcPtr) WordBreakUPP;
3838+3939+struct TERec {
4040+ Rect destRect;
4141+ Rect viewRect;
4242+ Rect selRect;
4343+ short lineHeight;
4444+ short fontAscent;
4545+ Point selPoint;
4646+ short selStart;
4747+ short selEnd;
4848+ short active;
4949+ WordBreakUPP wordBreak;
5050+ TEClickLoopUPP clickLoop;
5151+ long clickTime;
5252+ short clickLoc;
5353+ long caretTime;
5454+ short caretState;
5555+ short just;
5656+ short teLength;
5757+ Handle hText;
5858+ long hDispatchRec;
5959+ short clikStuff;
6060+ short crOnly;
6161+ short txFont;
6262+ StyleField txFace;
6363+ short txMode;
6464+ short txSize;
6565+ GrafPtr inPort;
6666+ HighHookUPP highHook;
6767+ CaretHookUPP caretHook;
6868+ short nLines;
6969+ short lineStarts[16001];
7070+};
7171+7272+#endif // _HITOOLBOX_TEXTEDIT_H_
+17
src/frameworks/Carbon/Help/CMakeLists.txt
···11+project(Help)
22+33+set(DYLIB_COMPAT_VERSION "1.0.0")
44+set(DYLIB_CURRENT_VERSION "71.0.0")
55+66+add_framework(Help
77+ FAT
88+ CURRENT_VERSION
99+ VERSION "A"
1010+ PARENT "Carbon"
1111+1212+ SOURCES
1313+ src/Help.c
1414+1515+ DEPENDENCIES
1616+ system
1717+)
+40
src/frameworks/Carbon/Help/include/Help/Help.h
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#ifndef _Help_H_
2222+#define _Help_H_
2323+2424+void* AHGotoApplicationHelp(void);
2525+void* AHGotoMainTOC(void);
2626+void* AHGotoPage(void);
2727+void* AHLookupAnchor(void);
2828+void* AHRegisterHelpBook(void);
2929+void* AHRegisterHelpBookWithURL(void);
3030+void* AHSearch(void);
3131+void* AppendEncodingHint(void);
3232+void* CFStringToCString(void);
3333+void* CopyBookDetails(void);
3434+void* CreateBookDetailsFromAppBundle(void);
3535+void* CreateBookDetailsFromAppBundleAtIndex(void);
3636+void* CreateBookDetailsWithBookNameAndID(void);
3737+void* EscapeMacCharacters(void);
3838+void* MacPathToURLPath(void);
3939+4040+#endif
+120
src/frameworks/Carbon/Help/src/Help.c
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#include <Help/Help.h>
2222+#include <stdlib.h>
2323+#include <stdio.h>
2424+2525+static int verbose = 0;
2626+2727+__attribute__((constructor))
2828+static void initme(void) {
2929+ verbose = getenv("STUB_VERBOSE") != NULL;
3030+}
3131+3232+void* AHGotoApplicationHelp(void)
3333+{
3434+ if (verbose) puts("STUB: AHGotoApplicationHelp called");
3535+ return NULL;
3636+}
3737+3838+void* AHGotoMainTOC(void)
3939+{
4040+ if (verbose) puts("STUB: AHGotoMainTOC called");
4141+ return NULL;
4242+}
4343+4444+void* AHGotoPage(void)
4545+{
4646+ if (verbose) puts("STUB: AHGotoPage called");
4747+ return NULL;
4848+}
4949+5050+void* AHLookupAnchor(void)
5151+{
5252+ if (verbose) puts("STUB: AHLookupAnchor called");
5353+ return NULL;
5454+}
5555+5656+void* AHRegisterHelpBook(void)
5757+{
5858+ if (verbose) puts("STUB: AHRegisterHelpBook called");
5959+ return NULL;
6060+}
6161+6262+void* AHRegisterHelpBookWithURL(void)
6363+{
6464+ if (verbose) puts("STUB: AHRegisterHelpBookWithURL called");
6565+ return NULL;
6666+}
6767+6868+void* AHSearch(void)
6969+{
7070+ if (verbose) puts("STUB: AHSearch called");
7171+ return NULL;
7272+}
7373+7474+void* AppendEncodingHint(void)
7575+{
7676+ if (verbose) puts("STUB: AppendEncodingHint called");
7777+ return NULL;
7878+}
7979+8080+void* CFStringToCString(void)
8181+{
8282+ if (verbose) puts("STUB: CFStringToCString called");
8383+ return NULL;
8484+}
8585+8686+void* CopyBookDetails(void)
8787+{
8888+ if (verbose) puts("STUB: CopyBookDetails called");
8989+ return NULL;
9090+}
9191+9292+void* CreateBookDetailsFromAppBundle(void)
9393+{
9494+ if (verbose) puts("STUB: CreateBookDetailsFromAppBundle called");
9595+ return NULL;
9696+}
9797+9898+void* CreateBookDetailsFromAppBundleAtIndex(void)
9999+{
100100+ if (verbose) puts("STUB: CreateBookDetailsFromAppBundleAtIndex called");
101101+ return NULL;
102102+}
103103+104104+void* CreateBookDetailsWithBookNameAndID(void)
105105+{
106106+ if (verbose) puts("STUB: CreateBookDetailsWithBookNameAndID called");
107107+ return NULL;
108108+}
109109+110110+void* EscapeMacCharacters(void)
111111+{
112112+ if (verbose) puts("STUB: EscapeMacCharacters called");
113113+ return NULL;
114114+}
115115+116116+void* MacPathToURLPath(void)
117117+{
118118+ if (verbose) puts("STUB: MacPathToURLPath called");
119119+ return NULL;
120120+}
+19
src/frameworks/Carbon/ImageCapture/CMakeLists.txt
···11+project(ImageCapture)
22+33+set(DYLIB_COMPAT_VERSION "1.0.0")
44+set(DYLIB_CURRENT_VERSION "5.0.0")
55+66+add_framework(ImageCapture
77+ FAT
88+ CURRENT_VERSION
99+ VERSION "A"
1010+ PARENT "Carbon"
1111+1212+ SOURCES
1313+ src/ImageCapture.m
1414+1515+ DEPENDENCIES
1616+ system
1717+ objc
1818+ Foundation
1919+)
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#ifndef _ImageCapture_H_
2222+#define _ImageCapture_H_
2323+2424+#import <Foundation/Foundation.h>
2525+2626+2727+void* ICACloseSession(void);
2828+void* ICAConvertJPEGDataToICADataInPlace(void);
2929+void* ICAConvertTIFFDataToICADataInPlace(void);
3030+void* ICACopyMatchingDeviceDictionaries(void);
3131+void* ICACopyObjectData(void);
3232+void* ICACopyObjectPropertyDictionary(void);
3333+void* ICACopyObjectThumbnail(void);
3434+void* ICACopyParameterBlockPtrForAsyncCall(void);
3535+void* ICACreateCutsomIconForImageAtPath(void);
3636+void* ICACreateJPEGThumbnailDataFromURL(void);
3737+void* ICADictionaryApplierFunction(void);
3838+void* ICADoMacho2CFMConversion(void);
3939+void* ICADownloadFile(void);
4040+void* ICADownloadFileWithOptions(void);
4141+void* ICAElapsedTime(void);
4242+void* ICAGetBehaviorFlags(void);
4343+void* ICAGetChildCount(void);
4444+void* ICAGetDateFromSeconds(void);
4545+void* ICAGetDateFromSecondsSince1904(void);
4646+void* ICAGetDateFromSecondsSince1970(void);
4747+void* ICAGetDeviceList(void);
4848+void* ICAGetEXIFDateCStringFromSecondsSince1904(void);
4949+void* ICAGetEXIFDateCStringFromSecondsSince1970(void);
5050+void* ICAGetEXIFUTCDateCStringFromSecondsSince1904(void);
5151+void* ICAGetEXIFUTCDateCStringFromSecondsSince1970(void);
5252+void* ICAGetICAObjectForFile(void);
5353+void* ICAGetICAObjectFromDict(void);
5454+void* ICAGetLongValueFromDict(void);
5555+void* ICAGetNthChild(void);
5656+void* ICAGetNthProperty(void);
5757+void* ICAGetObjectInfo(void);
5858+void* ICAGetObjectRefCon(void);
5959+void* ICAGetParentOfObject(void);
6060+void* ICAGetParentOfProperty(void);
6161+void* ICAGetPropertyByType(void);
6262+void* ICAGetPropertyCount(void);
6363+void* ICAGetPropertyData(void);
6464+void* ICAGetPropertyInfo(void);
6565+void* ICAGetPropertyRefCon(void);
6666+void* ICAGetRootOfObject(void);
6767+void* ICAGetRootOfProperty(void);
6868+void* ICAGetSInt16ValueFromDict(void);
6969+void* ICAGetSInt32ValueFromDict(void);
7070+void* ICAGetSInt64ValueFromDict(void);
7171+void* ICAGetUTCDateFromDateCString(void);
7272+void* ICAGetUTCDateFromSeconds(void);
7373+void* ICAGetUTCDateFromSecondsSince1904(void);
7474+void* ICAImportImage(void);
7575+void* ICALoadDeviceModule(void);
7676+void* ICAObjectSendMessage(void);
7777+void* ICAOpenSession(void);
7878+void* ICARegisterEventNotification(void);
7979+void* ICARegisterForEventNotification(void);
8080+void* ICAScannerCloseSession(void);
8181+void* ICAScannerGetParameters(void);
8282+void* ICAScannerInitialize(void);
8383+void* ICAScannerOpenSession(void);
8484+void* ICAScannerSetParameters(void);
8585+void* ICAScannerStart(void);
8686+void* ICAScannerStatus(void);
8787+void* ICASetBehaviorFlags(void);
8888+void* ICASetICAObjectInDict(void);
8989+void* ICASetLongValueInDict(void);
9090+void* ICASetObjectRefCon(void);
9191+void* ICASetPropertyData(void);
9292+void* ICASetPropertyRefCon(void);
9393+void* ICASetSInt16ValueInDict(void);
9494+void* ICASetSInt32ValueInDict(void);
9595+void* ICASetSInt64ValueInDict(void);
9696+void* ICASetUTF8StringInDict(void);
9797+void* ICASharedMemoryCreate(void);
9898+void* ICASharedMemoryDestroy(void);
9999+void* ICASharedMemoryMap(void);
100100+void* ICASharedMemoryUnmap(void);
101101+void* ICAShowDeviceBrowser(void);
102102+void* ICAUnloadDeviceModule(void);
103103+void* ICAUpdateDeviceDictionary(void);
104104+void* ICAUploadFile(void);
105105+void* ICDBulkNewObject(void);
106106+void* ICDBulkNewProperty(void);
107107+void* ICDDeviceNotification(void);
108108+void* ICDDeviceRegister(void);
109109+void* ICDDeviceUnRegister(void);
110110+void* ICDDisposeObject(void);
111111+void* ICDDisposeProperty(void);
112112+void* ICDNewObject(void);
113113+void* ICDNewProperty(void);
114114+115115+#endif
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#include <ImageCapture/ImageCapture.h>
2222+#include <stdlib.h>
2323+#include <stdio.h>
2424+2525+static int verbose = 0;
2626+2727+__attribute__((constructor))
2828+static void initme(void) {
2929+ verbose = getenv("STUB_VERBOSE") != NULL;
3030+}
3131+3232+void* ICACloseSession(void)
3333+{
3434+ if (verbose) puts("STUB: ICACloseSession called");
3535+ return NULL;
3636+}
3737+3838+void* ICAConvertJPEGDataToICADataInPlace(void)
3939+{
4040+ if (verbose) puts("STUB: ICAConvertJPEGDataToICADataInPlace called");
4141+ return NULL;
4242+}
4343+4444+void* ICAConvertTIFFDataToICADataInPlace(void)
4545+{
4646+ if (verbose) puts("STUB: ICAConvertTIFFDataToICADataInPlace called");
4747+ return NULL;
4848+}
4949+5050+void* ICACopyMatchingDeviceDictionaries(void)
5151+{
5252+ if (verbose) puts("STUB: ICACopyMatchingDeviceDictionaries called");
5353+ return NULL;
5454+}
5555+5656+void* ICACopyObjectData(void)
5757+{
5858+ if (verbose) puts("STUB: ICACopyObjectData called");
5959+ return NULL;
6060+}
6161+6262+void* ICACopyObjectPropertyDictionary(void)
6363+{
6464+ if (verbose) puts("STUB: ICACopyObjectPropertyDictionary called");
6565+ return NULL;
6666+}
6767+6868+void* ICACopyObjectThumbnail(void)
6969+{
7070+ if (verbose) puts("STUB: ICACopyObjectThumbnail called");
7171+ return NULL;
7272+}
7373+7474+void* ICACopyParameterBlockPtrForAsyncCall(void)
7575+{
7676+ if (verbose) puts("STUB: ICACopyParameterBlockPtrForAsyncCall called");
7777+ return NULL;
7878+}
7979+8080+void* ICACreateCutsomIconForImageAtPath(void)
8181+{
8282+ if (verbose) puts("STUB: ICACreateCutsomIconForImageAtPath called");
8383+ return NULL;
8484+}
8585+8686+void* ICACreateJPEGThumbnailDataFromURL(void)
8787+{
8888+ if (verbose) puts("STUB: ICACreateJPEGThumbnailDataFromURL called");
8989+ return NULL;
9090+}
9191+9292+void* ICADictionaryApplierFunction(void)
9393+{
9494+ if (verbose) puts("STUB: ICADictionaryApplierFunction called");
9595+ return NULL;
9696+}
9797+9898+void* ICADoMacho2CFMConversion(void)
9999+{
100100+ if (verbose) puts("STUB: ICADoMacho2CFMConversion called");
101101+ return NULL;
102102+}
103103+104104+void* ICADownloadFile(void)
105105+{
106106+ if (verbose) puts("STUB: ICADownloadFile called");
107107+ return NULL;
108108+}
109109+110110+void* ICADownloadFileWithOptions(void)
111111+{
112112+ if (verbose) puts("STUB: ICADownloadFileWithOptions called");
113113+ return NULL;
114114+}
115115+116116+void* ICAElapsedTime(void)
117117+{
118118+ if (verbose) puts("STUB: ICAElapsedTime called");
119119+ return NULL;
120120+}
121121+122122+void* ICAGetBehaviorFlags(void)
123123+{
124124+ if (verbose) puts("STUB: ICAGetBehaviorFlags called");
125125+ return NULL;
126126+}
127127+128128+void* ICAGetChildCount(void)
129129+{
130130+ if (verbose) puts("STUB: ICAGetChildCount called");
131131+ return NULL;
132132+}
133133+134134+void* ICAGetDateFromSeconds(void)
135135+{
136136+ if (verbose) puts("STUB: ICAGetDateFromSeconds called");
137137+ return NULL;
138138+}
139139+140140+void* ICAGetDateFromSecondsSince1904(void)
141141+{
142142+ if (verbose) puts("STUB: ICAGetDateFromSecondsSince1904 called");
143143+ return NULL;
144144+}
145145+146146+void* ICAGetDateFromSecondsSince1970(void)
147147+{
148148+ if (verbose) puts("STUB: ICAGetDateFromSecondsSince1970 called");
149149+ return NULL;
150150+}
151151+152152+void* ICAGetDeviceList(void)
153153+{
154154+ if (verbose) puts("STUB: ICAGetDeviceList called");
155155+ return NULL;
156156+}
157157+158158+void* ICAGetEXIFDateCStringFromSecondsSince1904(void)
159159+{
160160+ if (verbose) puts("STUB: ICAGetEXIFDateCStringFromSecondsSince1904 called");
161161+ return NULL;
162162+}
163163+164164+void* ICAGetEXIFDateCStringFromSecondsSince1970(void)
165165+{
166166+ if (verbose) puts("STUB: ICAGetEXIFDateCStringFromSecondsSince1970 called");
167167+ return NULL;
168168+}
169169+170170+void* ICAGetEXIFUTCDateCStringFromSecondsSince1904(void)
171171+{
172172+ if (verbose) puts("STUB: ICAGetEXIFUTCDateCStringFromSecondsSince1904 called");
173173+ return NULL;
174174+}
175175+176176+void* ICAGetEXIFUTCDateCStringFromSecondsSince1970(void)
177177+{
178178+ if (verbose) puts("STUB: ICAGetEXIFUTCDateCStringFromSecondsSince1970 called");
179179+ return NULL;
180180+}
181181+182182+void* ICAGetICAObjectForFile(void)
183183+{
184184+ if (verbose) puts("STUB: ICAGetICAObjectForFile called");
185185+ return NULL;
186186+}
187187+188188+void* ICAGetICAObjectFromDict(void)
189189+{
190190+ if (verbose) puts("STUB: ICAGetICAObjectFromDict called");
191191+ return NULL;
192192+}
193193+194194+void* ICAGetLongValueFromDict(void)
195195+{
196196+ if (verbose) puts("STUB: ICAGetLongValueFromDict called");
197197+ return NULL;
198198+}
199199+200200+void* ICAGetNthChild(void)
201201+{
202202+ if (verbose) puts("STUB: ICAGetNthChild called");
203203+ return NULL;
204204+}
205205+206206+void* ICAGetNthProperty(void)
207207+{
208208+ if (verbose) puts("STUB: ICAGetNthProperty called");
209209+ return NULL;
210210+}
211211+212212+void* ICAGetObjectInfo(void)
213213+{
214214+ if (verbose) puts("STUB: ICAGetObjectInfo called");
215215+ return NULL;
216216+}
217217+218218+void* ICAGetObjectRefCon(void)
219219+{
220220+ if (verbose) puts("STUB: ICAGetObjectRefCon called");
221221+ return NULL;
222222+}
223223+224224+void* ICAGetParentOfObject(void)
225225+{
226226+ if (verbose) puts("STUB: ICAGetParentOfObject called");
227227+ return NULL;
228228+}
229229+230230+void* ICAGetParentOfProperty(void)
231231+{
232232+ if (verbose) puts("STUB: ICAGetParentOfProperty called");
233233+ return NULL;
234234+}
235235+236236+void* ICAGetPropertyByType(void)
237237+{
238238+ if (verbose) puts("STUB: ICAGetPropertyByType called");
239239+ return NULL;
240240+}
241241+242242+void* ICAGetPropertyCount(void)
243243+{
244244+ if (verbose) puts("STUB: ICAGetPropertyCount called");
245245+ return NULL;
246246+}
247247+248248+void* ICAGetPropertyData(void)
249249+{
250250+ if (verbose) puts("STUB: ICAGetPropertyData called");
251251+ return NULL;
252252+}
253253+254254+void* ICAGetPropertyInfo(void)
255255+{
256256+ if (verbose) puts("STUB: ICAGetPropertyInfo called");
257257+ return NULL;
258258+}
259259+260260+void* ICAGetPropertyRefCon(void)
261261+{
262262+ if (verbose) puts("STUB: ICAGetPropertyRefCon called");
263263+ return NULL;
264264+}
265265+266266+void* ICAGetRootOfObject(void)
267267+{
268268+ if (verbose) puts("STUB: ICAGetRootOfObject called");
269269+ return NULL;
270270+}
271271+272272+void* ICAGetRootOfProperty(void)
273273+{
274274+ if (verbose) puts("STUB: ICAGetRootOfProperty called");
275275+ return NULL;
276276+}
277277+278278+void* ICAGetSInt16ValueFromDict(void)
279279+{
280280+ if (verbose) puts("STUB: ICAGetSInt16ValueFromDict called");
281281+ return NULL;
282282+}
283283+284284+void* ICAGetSInt32ValueFromDict(void)
285285+{
286286+ if (verbose) puts("STUB: ICAGetSInt32ValueFromDict called");
287287+ return NULL;
288288+}
289289+290290+void* ICAGetSInt64ValueFromDict(void)
291291+{
292292+ if (verbose) puts("STUB: ICAGetSInt64ValueFromDict called");
293293+ return NULL;
294294+}
295295+296296+void* ICAGetUTCDateFromDateCString(void)
297297+{
298298+ if (verbose) puts("STUB: ICAGetUTCDateFromDateCString called");
299299+ return NULL;
300300+}
301301+302302+void* ICAGetUTCDateFromSeconds(void)
303303+{
304304+ if (verbose) puts("STUB: ICAGetUTCDateFromSeconds called");
305305+ return NULL;
306306+}
307307+308308+void* ICAGetUTCDateFromSecondsSince1904(void)
309309+{
310310+ if (verbose) puts("STUB: ICAGetUTCDateFromSecondsSince1904 called");
311311+ return NULL;
312312+}
313313+314314+void* ICAImportImage(void)
315315+{
316316+ if (verbose) puts("STUB: ICAImportImage called");
317317+ return NULL;
318318+}
319319+320320+void* ICALoadDeviceModule(void)
321321+{
322322+ if (verbose) puts("STUB: ICALoadDeviceModule called");
323323+ return NULL;
324324+}
325325+326326+void* ICAObjectSendMessage(void)
327327+{
328328+ if (verbose) puts("STUB: ICAObjectSendMessage called");
329329+ return NULL;
330330+}
331331+332332+void* ICAOpenSession(void)
333333+{
334334+ if (verbose) puts("STUB: ICAOpenSession called");
335335+ return NULL;
336336+}
337337+338338+void* ICARegisterEventNotification(void)
339339+{
340340+ if (verbose) puts("STUB: ICARegisterEventNotification called");
341341+ return NULL;
342342+}
343343+344344+void* ICARegisterForEventNotification(void)
345345+{
346346+ if (verbose) puts("STUB: ICARegisterForEventNotification called");
347347+ return NULL;
348348+}
349349+350350+void* ICAScannerCloseSession(void)
351351+{
352352+ if (verbose) puts("STUB: ICAScannerCloseSession called");
353353+ return NULL;
354354+}
355355+356356+void* ICAScannerGetParameters(void)
357357+{
358358+ if (verbose) puts("STUB: ICAScannerGetParameters called");
359359+ return NULL;
360360+}
361361+362362+void* ICAScannerInitialize(void)
363363+{
364364+ if (verbose) puts("STUB: ICAScannerInitialize called");
365365+ return NULL;
366366+}
367367+368368+void* ICAScannerOpenSession(void)
369369+{
370370+ if (verbose) puts("STUB: ICAScannerOpenSession called");
371371+ return NULL;
372372+}
373373+374374+void* ICAScannerSetParameters(void)
375375+{
376376+ if (verbose) puts("STUB: ICAScannerSetParameters called");
377377+ return NULL;
378378+}
379379+380380+void* ICAScannerStart(void)
381381+{
382382+ if (verbose) puts("STUB: ICAScannerStart called");
383383+ return NULL;
384384+}
385385+386386+void* ICAScannerStatus(void)
387387+{
388388+ if (verbose) puts("STUB: ICAScannerStatus called");
389389+ return NULL;
390390+}
391391+392392+void* ICASetBehaviorFlags(void)
393393+{
394394+ if (verbose) puts("STUB: ICASetBehaviorFlags called");
395395+ return NULL;
396396+}
397397+398398+void* ICASetICAObjectInDict(void)
399399+{
400400+ if (verbose) puts("STUB: ICASetICAObjectInDict called");
401401+ return NULL;
402402+}
403403+404404+void* ICASetLongValueInDict(void)
405405+{
406406+ if (verbose) puts("STUB: ICASetLongValueInDict called");
407407+ return NULL;
408408+}
409409+410410+void* ICASetObjectRefCon(void)
411411+{
412412+ if (verbose) puts("STUB: ICASetObjectRefCon called");
413413+ return NULL;
414414+}
415415+416416+void* ICASetPropertyData(void)
417417+{
418418+ if (verbose) puts("STUB: ICASetPropertyData called");
419419+ return NULL;
420420+}
421421+422422+void* ICASetPropertyRefCon(void)
423423+{
424424+ if (verbose) puts("STUB: ICASetPropertyRefCon called");
425425+ return NULL;
426426+}
427427+428428+void* ICASetSInt16ValueInDict(void)
429429+{
430430+ if (verbose) puts("STUB: ICASetSInt16ValueInDict called");
431431+ return NULL;
432432+}
433433+434434+void* ICASetSInt32ValueInDict(void)
435435+{
436436+ if (verbose) puts("STUB: ICASetSInt32ValueInDict called");
437437+ return NULL;
438438+}
439439+440440+void* ICASetSInt64ValueInDict(void)
441441+{
442442+ if (verbose) puts("STUB: ICASetSInt64ValueInDict called");
443443+ return NULL;
444444+}
445445+446446+void* ICASetUTF8StringInDict(void)
447447+{
448448+ if (verbose) puts("STUB: ICASetUTF8StringInDict called");
449449+ return NULL;
450450+}
451451+452452+void* ICASharedMemoryCreate(void)
453453+{
454454+ if (verbose) puts("STUB: ICASharedMemoryCreate called");
455455+ return NULL;
456456+}
457457+458458+void* ICASharedMemoryDestroy(void)
459459+{
460460+ if (verbose) puts("STUB: ICASharedMemoryDestroy called");
461461+ return NULL;
462462+}
463463+464464+void* ICASharedMemoryMap(void)
465465+{
466466+ if (verbose) puts("STUB: ICASharedMemoryMap called");
467467+ return NULL;
468468+}
469469+470470+void* ICASharedMemoryUnmap(void)
471471+{
472472+ if (verbose) puts("STUB: ICASharedMemoryUnmap called");
473473+ return NULL;
474474+}
475475+476476+void* ICAShowDeviceBrowser(void)
477477+{
478478+ if (verbose) puts("STUB: ICAShowDeviceBrowser called");
479479+ return NULL;
480480+}
481481+482482+void* ICAUnloadDeviceModule(void)
483483+{
484484+ if (verbose) puts("STUB: ICAUnloadDeviceModule called");
485485+ return NULL;
486486+}
487487+488488+void* ICAUpdateDeviceDictionary(void)
489489+{
490490+ if (verbose) puts("STUB: ICAUpdateDeviceDictionary called");
491491+ return NULL;
492492+}
493493+494494+void* ICAUploadFile(void)
495495+{
496496+ if (verbose) puts("STUB: ICAUploadFile called");
497497+ return NULL;
498498+}
499499+500500+void* ICDBulkNewObject(void)
501501+{
502502+ if (verbose) puts("STUB: ICDBulkNewObject called");
503503+ return NULL;
504504+}
505505+506506+void* ICDBulkNewProperty(void)
507507+{
508508+ if (verbose) puts("STUB: ICDBulkNewProperty called");
509509+ return NULL;
510510+}
511511+512512+void* ICDDeviceNotification(void)
513513+{
514514+ if (verbose) puts("STUB: ICDDeviceNotification called");
515515+ return NULL;
516516+}
517517+518518+void* ICDDeviceRegister(void)
519519+{
520520+ if (verbose) puts("STUB: ICDDeviceRegister called");
521521+ return NULL;
522522+}
523523+524524+void* ICDDeviceUnRegister(void)
525525+{
526526+ if (verbose) puts("STUB: ICDDeviceUnRegister called");
527527+ return NULL;
528528+}
529529+530530+void* ICDDisposeObject(void)
531531+{
532532+ if (verbose) puts("STUB: ICDDisposeObject called");
533533+ return NULL;
534534+}
535535+536536+void* ICDDisposeProperty(void)
537537+{
538538+ if (verbose) puts("STUB: ICDDisposeProperty called");
539539+ return NULL;
540540+}
541541+542542+void* ICDNewObject(void)
543543+{
544544+ if (verbose) puts("STUB: ICDNewObject called");
545545+ return NULL;
546546+}
547547+548548+void* ICDNewProperty(void)
549549+{
550550+ if (verbose) puts("STUB: ICDNewProperty called");
551551+ return NULL;
552552+}
+17
src/frameworks/Carbon/Ink/CMakeLists.txt
···11+project(Ink)
22+33+set(DYLIB_COMPAT_VERSION "1.0.0")
44+set(DYLIB_CURRENT_VERSION "227.0.0")
55+66+add_framework(Ink
77+ FAT
88+ CURRENT_VERSION
99+ VERSION "A"
1010+ PARENT "Carbon"
1111+1212+ SOURCES
1313+ src/Ink.c
1414+1515+ DEPENDENCIES
1616+ system
1717+)
+47
src/frameworks/Carbon/Ink/include/Ink/Ink.h
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#ifndef _Ink_H_
2222+#define _Ink_H_
2323+2424+void* InkAddStrokeToCurrentPhrase(void);
2525+void* InkIsPhraseInProgress(void);
2626+void* InkSetApplicationRecognitionMode(void);
2727+void* InkSetApplicationWritingMode(void);
2828+void* InkSetDrawingMode(void);
2929+void* InkSetPhraseTerminationMode(void);
3030+void* InkStrokeGetPointCount(void);
3131+void* InkStrokeGetPoints(void);
3232+void* InkStrokeGetTypeID(void);
3333+void* InkTerminateCurrentPhrase(void);
3434+void* InkTextAlternatesCount(void);
3535+void* InkTextBounds(void);
3636+void* InkTextCopy(void);
3737+void* InkTextCreateCFString(void);
3838+void* InkTextCreateFromCFData(void);
3939+void* InkTextDraw(void);
4040+void* InkTextFlatten(void);
4141+void* InkTextGetStroke(void);
4242+void* InkTextGetStrokeCount(void);
4343+void* InkTextGetTypeID(void);
4444+void* InkTextKeyModifiers(void);
4545+void* InkUserWritingMode(void);
4646+4747+#endif
+162
src/frameworks/Carbon/Ink/src/Ink.c
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#include <Ink/Ink.h>
2222+#include <stdlib.h>
2323+#include <stdio.h>
2424+2525+static int verbose = 0;
2626+2727+__attribute__((constructor))
2828+static void initme(void) {
2929+ verbose = getenv("STUB_VERBOSE") != NULL;
3030+}
3131+3232+void* InkAddStrokeToCurrentPhrase(void)
3333+{
3434+ if (verbose) puts("STUB: InkAddStrokeToCurrentPhrase called");
3535+ return NULL;
3636+}
3737+3838+void* InkIsPhraseInProgress(void)
3939+{
4040+ if (verbose) puts("STUB: InkIsPhraseInProgress called");
4141+ return NULL;
4242+}
4343+4444+void* InkSetApplicationRecognitionMode(void)
4545+{
4646+ if (verbose) puts("STUB: InkSetApplicationRecognitionMode called");
4747+ return NULL;
4848+}
4949+5050+void* InkSetApplicationWritingMode(void)
5151+{
5252+ if (verbose) puts("STUB: InkSetApplicationWritingMode called");
5353+ return NULL;
5454+}
5555+5656+void* InkSetDrawingMode(void)
5757+{
5858+ if (verbose) puts("STUB: InkSetDrawingMode called");
5959+ return NULL;
6060+}
6161+6262+void* InkSetPhraseTerminationMode(void)
6363+{
6464+ if (verbose) puts("STUB: InkSetPhraseTerminationMode called");
6565+ return NULL;
6666+}
6767+6868+void* InkStrokeGetPointCount(void)
6969+{
7070+ if (verbose) puts("STUB: InkStrokeGetPointCount called");
7171+ return NULL;
7272+}
7373+7474+void* InkStrokeGetPoints(void)
7575+{
7676+ if (verbose) puts("STUB: InkStrokeGetPoints called");
7777+ return NULL;
7878+}
7979+8080+void* InkStrokeGetTypeID(void)
8181+{
8282+ if (verbose) puts("STUB: InkStrokeGetTypeID called");
8383+ return NULL;
8484+}
8585+8686+void* InkTerminateCurrentPhrase(void)
8787+{
8888+ if (verbose) puts("STUB: InkTerminateCurrentPhrase called");
8989+ return NULL;
9090+}
9191+9292+void* InkTextAlternatesCount(void)
9393+{
9494+ if (verbose) puts("STUB: InkTextAlternatesCount called");
9595+ return NULL;
9696+}
9797+9898+void* InkTextBounds(void)
9999+{
100100+ if (verbose) puts("STUB: InkTextBounds called");
101101+ return NULL;
102102+}
103103+104104+void* InkTextCopy(void)
105105+{
106106+ if (verbose) puts("STUB: InkTextCopy called");
107107+ return NULL;
108108+}
109109+110110+void* InkTextCreateCFString(void)
111111+{
112112+ if (verbose) puts("STUB: InkTextCreateCFString called");
113113+ return NULL;
114114+}
115115+116116+void* InkTextCreateFromCFData(void)
117117+{
118118+ if (verbose) puts("STUB: InkTextCreateFromCFData called");
119119+ return NULL;
120120+}
121121+122122+void* InkTextDraw(void)
123123+{
124124+ if (verbose) puts("STUB: InkTextDraw called");
125125+ return NULL;
126126+}
127127+128128+void* InkTextFlatten(void)
129129+{
130130+ if (verbose) puts("STUB: InkTextFlatten called");
131131+ return NULL;
132132+}
133133+134134+void* InkTextGetStroke(void)
135135+{
136136+ if (verbose) puts("STUB: InkTextGetStroke called");
137137+ return NULL;
138138+}
139139+140140+void* InkTextGetStrokeCount(void)
141141+{
142142+ if (verbose) puts("STUB: InkTextGetStrokeCount called");
143143+ return NULL;
144144+}
145145+146146+void* InkTextGetTypeID(void)
147147+{
148148+ if (verbose) puts("STUB: InkTextGetTypeID called");
149149+ return NULL;
150150+}
151151+152152+void* InkTextKeyModifiers(void)
153153+{
154154+ if (verbose) puts("STUB: InkTextKeyModifiers called");
155155+ return NULL;
156156+}
157157+158158+void* InkUserWritingMode(void)
159159+{
160160+ if (verbose) puts("STUB: InkUserWritingMode called");
161161+ return NULL;
162162+}
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#include <OpenScripting/OpenScripting.h>
2222+#include <stdlib.h>
2323+#include <stdio.h>
2424+2525+static int verbose = 0;
2626+2727+__attribute__((constructor))
2828+static void initme(void) {
2929+ verbose = getenv("STUB_VERBOSE") != NULL;
3030+}
3131+3232+void* ASCopySourceAttributes(void)
3333+{
3434+ if (verbose) puts("STUB: ASCopySourceAttributes called");
3535+ return NULL;
3636+}
3737+3838+void* ASGetSourceStyleNames(void)
3939+{
4040+ if (verbose) puts("STUB: ASGetSourceStyleNames called");
4141+ return NULL;
4242+}
4343+4444+void* ASGetSourceStyles(void)
4545+{
4646+ if (verbose) puts("STUB: ASGetSourceStyles called");
4747+ return NULL;
4848+}
4949+5050+void* ASInit(void)
5151+{
5252+ if (verbose) puts("STUB: ASInit called");
5353+ return NULL;
5454+}
5555+5656+void* ASSetSourceAttributes(void)
5757+{
5858+ if (verbose) puts("STUB: ASSetSourceAttributes called");
5959+ return NULL;
6060+}
6161+6262+void* ASSetSourceStyles(void)
6363+{
6464+ if (verbose) puts("STUB: ASSetSourceStyles called");
6565+ return NULL;
6666+}
6767+6868+void* OSAAddStorageType(void)
6969+{
7070+ if (verbose) puts("STUB: OSAAddStorageType called");
7171+ return NULL;
7272+}
7373+7474+void* OSAAuthorizeEvent(void)
7575+{
7676+ if (verbose) puts("STUB: OSAAuthorizeEvent called");
7777+ return NULL;
7878+}
7979+8080+void* OSAAvailableDialectCodeList(void)
8181+{
8282+ if (verbose) puts("STUB: OSAAvailableDialectCodeList called");
8383+ return NULL;
8484+}
8585+8686+void* OSAAvailableDialects(void)
8787+{
8888+ if (verbose) puts("STUB: OSAAvailableDialects called");
8989+ return NULL;
9090+}
9191+9292+void* OSACoerceFromDesc(void)
9393+{
9494+ if (verbose) puts("STUB: OSACoerceFromDesc called");
9595+ return NULL;
9696+}
9797+9898+void* OSACoerceToDesc(void)
9999+{
100100+ if (verbose) puts("STUB: OSACoerceToDesc called");
101101+ return NULL;
102102+}
103103+104104+void* OSACompile(void)
105105+{
106106+ if (verbose) puts("STUB: OSACompile called");
107107+ return NULL;
108108+}
109109+110110+void* OSACompileExecute(void)
111111+{
112112+ if (verbose) puts("STUB: OSACompileExecute called");
113113+ return NULL;
114114+}
115115+116116+void* OSACopyDisplayString(void)
117117+{
118118+ if (verbose) puts("STUB: OSACopyDisplayString called");
119119+ return NULL;
120120+}
121121+122122+void* OSACopyID(void)
123123+{
124124+ if (verbose) puts("STUB: OSACopyID called");
125125+ return NULL;
126126+}
127127+128128+void* OSACopyScript(void)
129129+{
130130+ if (verbose) puts("STUB: OSACopyScript called");
131131+ return NULL;
132132+}
133133+134134+void* OSACopyScriptingDefinition(void)
135135+{
136136+ if (verbose) puts("STUB: OSACopyScriptingDefinition called");
137137+ return NULL;
138138+}
139139+140140+void* OSACopyScriptingDefinitionFromFile(void)
141141+{
142142+ if (verbose) puts("STUB: OSACopyScriptingDefinitionFromFile called");
143143+ return NULL;
144144+}
145145+146146+void* OSACopyScriptingDefinitionFromURL(void)
147147+{
148148+ if (verbose) puts("STUB: OSACopyScriptingDefinitionFromURL called");
149149+ return NULL;
150150+}
151151+152152+void* OSACopySourceString(void)
153153+{
154154+ if (verbose) puts("STUB: OSACopySourceString called");
155155+ return NULL;
156156+}
157157+158158+void* OSACopyURLForLibraryInDomainURL(void)
159159+{
160160+ if (verbose) puts("STUB: OSACopyURLForLibraryInDomainURL called");
161161+ return NULL;
162162+}
163163+164164+void* OSACopyURLForLibraryInFolderURL(void)
165165+{
166166+ if (verbose) puts("STUB: OSACopyURLForLibraryInFolderURL called");
167167+ return NULL;
168168+}
169169+170170+void* OSACopyURLForLibraryInScriptURL(void)
171171+{
172172+ if (verbose) puts("STUB: OSACopyURLForLibraryInScriptURL called");
173173+ return NULL;
174174+}
175175+176176+void* OSACopyURLForLibraryName(void)
177177+{
178178+ if (verbose) puts("STUB: OSACopyURLForLibraryName called");
179179+ return NULL;
180180+}
181181+182182+void* OSACreateFile(void)
183183+{
184184+ if (verbose) puts("STUB: OSACreateFile called");
185185+ return NULL;
186186+}
187187+188188+void* OSADebuggerCreateSession(void)
189189+{
190190+ if (verbose) puts("STUB: OSADebuggerCreateSession called");
191191+ return NULL;
192192+}
193193+194194+void* OSADebuggerDisposeCallFrame(void)
195195+{
196196+ if (verbose) puts("STUB: OSADebuggerDisposeCallFrame called");
197197+ return NULL;
198198+}
199199+200200+void* OSADebuggerDisposeSession(void)
201201+{
202202+ if (verbose) puts("STUB: OSADebuggerDisposeSession called");
203203+ return NULL;
204204+}
205205+206206+void* OSADebuggerGetBreakpoint(void)
207207+{
208208+ if (verbose) puts("STUB: OSADebuggerGetBreakpoint called");
209209+ return NULL;
210210+}
211211+212212+void* OSADebuggerGetCallFrameState(void)
213213+{
214214+ if (verbose) puts("STUB: OSADebuggerGetCallFrameState called");
215215+ return NULL;
216216+}
217217+218218+void* OSADebuggerGetCurrentCallFrame(void)
219219+{
220220+ if (verbose) puts("STUB: OSADebuggerGetCurrentCallFrame called");
221221+ return NULL;
222222+}
223223+224224+void* OSADebuggerGetDefaultBreakpoint(void)
225225+{
226226+ if (verbose) puts("STUB: OSADebuggerGetDefaultBreakpoint called");
227227+ return NULL;
228228+}
229229+230230+void* OSADebuggerGetPreviousCallFrame(void)
231231+{
232232+ if (verbose) puts("STUB: OSADebuggerGetPreviousCallFrame called");
233233+ return NULL;
234234+}
235235+236236+void* OSADebuggerGetSessionState(void)
237237+{
238238+ if (verbose) puts("STUB: OSADebuggerGetSessionState called");
239239+ return NULL;
240240+}
241241+242242+void* OSADebuggerGetStatementRanges(void)
243243+{
244244+ if (verbose) puts("STUB: OSADebuggerGetStatementRanges called");
245245+ return NULL;
246246+}
247247+248248+void* OSADebuggerGetVariable(void)
249249+{
250250+ if (verbose) puts("STUB: OSADebuggerGetVariable called");
251251+ return NULL;
252252+}
253253+254254+void* OSADebuggerSessionStep(void)
255255+{
256256+ if (verbose) puts("STUB: OSADebuggerSessionStep called");
257257+ return NULL;
258258+}
259259+260260+void* OSADebuggerSetBreakpoint(void)
261261+{
262262+ if (verbose) puts("STUB: OSADebuggerSetBreakpoint called");
263263+ return NULL;
264264+}
265265+266266+void* OSADebuggerSetVariable(void)
267267+{
268268+ if (verbose) puts("STUB: OSADebuggerSetVariable called");
269269+ return NULL;
270270+}
271271+272272+void* OSADisplay(void)
273273+{
274274+ if (verbose) puts("STUB: OSADisplay called");
275275+ return NULL;
276276+}
277277+278278+void* OSADispose(void)
279279+{
280280+ if (verbose) puts("STUB: OSADispose called");
281281+ return NULL;
282282+}
283283+284284+void* OSADoEvent(void)
285285+{
286286+ if (verbose) puts("STUB: OSADoEvent called");
287287+ return NULL;
288288+}
289289+290290+void* OSADoScript(void)
291291+{
292292+ if (verbose) puts("STUB: OSADoScript called");
293293+ return NULL;
294294+}
295295+296296+void* OSADoScriptFile(void)
297297+{
298298+ if (verbose) puts("STUB: OSADoScriptFile called");
299299+ return NULL;
300300+}
301301+302302+void* OSAExecute(void)
303303+{
304304+ if (verbose) puts("STUB: OSAExecute called");
305305+ return NULL;
306306+}
307307+308308+void* OSAExecuteEvent(void)
309309+{
310310+ if (verbose) puts("STUB: OSAExecuteEvent called");
311311+ return NULL;
312312+}
313313+314314+void* OSAFindEventHandler(void)
315315+{
316316+ if (verbose) puts("STUB: OSAFindEventHandler called");
317317+ return NULL;
318318+}
319319+320320+void* OSAGenericToRealID(void)
321321+{
322322+ if (verbose) puts("STUB: OSAGenericToRealID called");
323323+ return NULL;
324324+}
325325+326326+void* OSAGetActiveProc(void)
327327+{
328328+ if (verbose) puts("STUB: OSAGetActiveProc called");
329329+ return NULL;
330330+}
331331+332332+void* OSAGetCreateProc(void)
333333+{
334334+ if (verbose) puts("STUB: OSAGetCreateProc called");
335335+ return NULL;
336336+}
337337+338338+void* OSAGetCreateProgressProc(void)
339339+{
340340+ if (verbose) puts("STUB: OSAGetCreateProgressProc called");
341341+ return NULL;
342342+}
343343+344344+void* OSAGetCurrentDialect(void)
345345+{
346346+ if (verbose) puts("STUB: OSAGetCurrentDialect called");
347347+ return NULL;
348348+}
349349+350350+void* OSAGetDefaultScriptingComponent(void)
351351+{
352352+ if (verbose) puts("STUB: OSAGetDefaultScriptingComponent called");
353353+ return NULL;
354354+}
355355+356356+void* OSAGetDialectInfo(void)
357357+{
358358+ if (verbose) puts("STUB: OSAGetDialectInfo called");
359359+ return NULL;
360360+}
361361+362362+void* OSAGetEventHandler(void)
363363+{
364364+ if (verbose) puts("STUB: OSAGetEventHandler called");
365365+ return NULL;
366366+}
367367+368368+void* OSAGetHandler(void)
369369+{
370370+ if (verbose) puts("STUB: OSAGetHandler called");
371371+ return NULL;
372372+}
373373+374374+void* OSAGetHandlerNames(void)
375375+{
376376+ if (verbose) puts("STUB: OSAGetHandlerNames called");
377377+ return NULL;
378378+}
379379+380380+void* OSAGetProperty(void)
381381+{
382382+ if (verbose) puts("STUB: OSAGetProperty called");
383383+ return NULL;
384384+}
385385+386386+void* OSAGetPropertyNames(void)
387387+{
388388+ if (verbose) puts("STUB: OSAGetPropertyNames called");
389389+ return NULL;
390390+}
391391+392392+void* OSAGetReleaseProgressProc(void)
393393+{
394394+ if (verbose) puts("STUB: OSAGetReleaseProgressProc called");
395395+ return NULL;
396396+}
397397+398398+void* OSAGetResumeDispatchProc(void)
399399+{
400400+ if (verbose) puts("STUB: OSAGetResumeDispatchProc called");
401401+ return NULL;
402402+}
403403+404404+void* OSAGetScriptDataFromURL(void)
405405+{
406406+ if (verbose) puts("STUB: OSAGetScriptDataFromURL called");
407407+ return NULL;
408408+}
409409+410410+void* OSAGetScriptInfo(void)
411411+{
412412+ if (verbose) puts("STUB: OSAGetScriptInfo called");
413413+ return NULL;
414414+}
415415+416416+void* OSAGetScriptingComponent(void)
417417+{
418418+ if (verbose) puts("STUB: OSAGetScriptingComponent called");
419419+ return NULL;
420420+}
421421+422422+void* OSAGetScriptingComponentFromStored(void)
423423+{
424424+ if (verbose) puts("STUB: OSAGetScriptingComponentFromStored called");
425425+ return NULL;
426426+}
427427+428428+void* OSAGetSendProc(void)
429429+{
430430+ if (verbose) puts("STUB: OSAGetSendProc called");
431431+ return NULL;
432432+}
433433+434434+void* OSAGetSource(void)
435435+{
436436+ if (verbose) puts("STUB: OSAGetSource called");
437437+ return NULL;
438438+}
439439+440440+void* OSAGetStorageType(void)
441441+{
442442+ if (verbose) puts("STUB: OSAGetStorageType called");
443443+ return NULL;
444444+}
445445+446446+void* OSAGetSysTerminology(void)
447447+{
448448+ if (verbose) puts("STUB: OSAGetSysTerminology called");
449449+ return NULL;
450450+}
451451+452452+void* OSAInstallEventHandler(void)
453453+{
454454+ if (verbose) puts("STUB: OSAInstallEventHandler called");
455455+ return NULL;
456456+}
457457+458458+void* OSAInstallGestaltValues(void)
459459+{
460460+ if (verbose) puts("STUB: OSAInstallGestaltValues called");
461461+ return NULL;
462462+}
463463+464464+void* OSAInstallScriptingDescCoercions(void)
465465+{
466466+ if (verbose) puts("STUB: OSAInstallScriptingDescCoercions called");
467467+ return NULL;
468468+}
469469+470470+void* OSAInstallScriptingEventHandlers(void)
471471+{
472472+ if (verbose) puts("STUB: OSAInstallScriptingEventHandlers called");
473473+ return NULL;
474474+}
475475+476476+void* OSAInstallStdDescCoercions(void)
477477+{
478478+ if (verbose) puts("STUB: OSAInstallStdDescCoercions called");
479479+ return NULL;
480480+}
481481+482482+void* OSAInstallStdEventHandlers(void)
483483+{
484484+ if (verbose) puts("STUB: OSAInstallStdEventHandlers called");
485485+ return NULL;
486486+}
487487+488488+void* OSAInstallStdPtrCoercions(void)
489489+{
490490+ if (verbose) puts("STUB: OSAInstallStdPtrCoercions called");
491491+ return NULL;
492492+}
493493+494494+void* OSAInstallUnitPtrCoercions(void)
495495+{
496496+ if (verbose) puts("STUB: OSAInstallUnitPtrCoercions called");
497497+ return NULL;
498498+}
499499+500500+void* OSAIsEventAuthorizationRequested(void)
501501+{
502502+ if (verbose) puts("STUB: OSAIsEventAuthorizationRequested called");
503503+ return NULL;
504504+}
505505+506506+void* OSAIsEventAuthorized(void)
507507+{
508508+ if (verbose) puts("STUB: OSAIsEventAuthorized called");
509509+ return NULL;
510510+}
511511+512512+void* OSAIsScriptableBundle(void)
513513+{
514514+ if (verbose) puts("STUB: OSAIsScriptableBundle called");
515515+ return NULL;
516516+}
517517+518518+void* OSAIsScriptableRef(void)
519519+{
520520+ if (verbose) puts("STUB: OSAIsScriptableRef called");
521521+ return NULL;
522522+}
523523+524524+void* OSAIsScriptableURL(void)
525525+{
526526+ if (verbose) puts("STUB: OSAIsScriptableURL called");
527527+ return NULL;
528528+}
529529+530530+void* OSALoad(void)
531531+{
532532+ if (verbose) puts("STUB: OSALoad called");
533533+ return NULL;
534534+}
535535+536536+void* OSALoadExecute(void)
537537+{
538538+ if (verbose) puts("STUB: OSALoadExecute called");
539539+ return NULL;
540540+}
541541+542542+void* OSALoadExecuteFile(void)
543543+{
544544+ if (verbose) puts("STUB: OSALoadExecuteFile called");
545545+ return NULL;
546546+}
547547+548548+void* OSALoadFile(void)
549549+{
550550+ if (verbose) puts("STUB: OSALoadFile called");
551551+ return NULL;
552552+}
553553+554554+void* OSALoadScriptData(void)
555555+{
556556+ if (verbose) puts("STUB: OSALoadScriptData called");
557557+ return NULL;
558558+}
559559+560560+void* OSALoadScriptDataFromFile(void)
561561+{
562562+ if (verbose) puts("STUB: OSALoadScriptDataFromFile called");
563563+ return NULL;
564564+}
565565+566566+void* OSAMakeContext(void)
567567+{
568568+ if (verbose) puts("STUB: OSAMakeContext called");
569569+ return NULL;
570570+}
571571+572572+void* OSARealToGenericID(void)
573573+{
574574+ if (verbose) puts("STUB: OSARealToGenericID called");
575575+ return NULL;
576576+}
577577+578578+void* OSARecordEvent(void)
579579+{
580580+ if (verbose) puts("STUB: OSARecordEvent called");
581581+ return NULL;
582582+}
583583+584584+void* OSARemoveEventHandler(void)
585585+{
586586+ if (verbose) puts("STUB: OSARemoveEventHandler called");
587587+ return NULL;
588588+}
589589+590590+void* OSARemoveStorageType(void)
591591+{
592592+ if (verbose) puts("STUB: OSARemoveStorageType called");
593593+ return NULL;
594594+}
595595+596596+void* OSARequestEventAuthorization(void)
597597+{
598598+ if (verbose) puts("STUB: OSARequestEventAuthorization called");
599599+ return NULL;
600600+}
601601+602602+void* OSAScriptError(void)
603603+{
604604+ if (verbose) puts("STUB: OSAScriptError called");
605605+ return NULL;
606606+}
607607+608608+void* OSAScriptingComponentName(void)
609609+{
610610+ if (verbose) puts("STUB: OSAScriptingComponentName called");
611611+ return NULL;
612612+}
613613+614614+void* OSASetActiveProc(void)
615615+{
616616+ if (verbose) puts("STUB: OSASetActiveProc called");
617617+ return NULL;
618618+}
619619+620620+void* OSASetCreateProc(void)
621621+{
622622+ if (verbose) puts("STUB: OSASetCreateProc called");
623623+ return NULL;
624624+}
625625+626626+void* OSASetCreateProgressProc(void)
627627+{
628628+ if (verbose) puts("STUB: OSASetCreateProgressProc called");
629629+ return NULL;
630630+}
631631+632632+void* OSASetCurrentDialect(void)
633633+{
634634+ if (verbose) puts("STUB: OSASetCurrentDialect called");
635635+ return NULL;
636636+}
637637+638638+void* OSASetDefaultScriptingComponent(void)
639639+{
640640+ if (verbose) puts("STUB: OSASetDefaultScriptingComponent called");
641641+ return NULL;
642642+}
643643+644644+void* OSASetDefaultTarget(void)
645645+{
646646+ if (verbose) puts("STUB: OSASetDefaultTarget called");
647647+ return NULL;
648648+}
649649+650650+void* OSASetHandler(void)
651651+{
652652+ if (verbose) puts("STUB: OSASetHandler called");
653653+ return NULL;
654654+}
655655+656656+void* OSASetProperty(void)
657657+{
658658+ if (verbose) puts("STUB: OSASetProperty called");
659659+ return NULL;
660660+}
661661+662662+void* OSASetReleaseProgressProc(void)
663663+{
664664+ if (verbose) puts("STUB: OSASetReleaseProgressProc called");
665665+ return NULL;
666666+}
667667+668668+void* OSASetResumeDispatchProc(void)
669669+{
670670+ if (verbose) puts("STUB: OSASetResumeDispatchProc called");
671671+ return NULL;
672672+}
673673+674674+void* OSASetScriptInfo(void)
675675+{
676676+ if (verbose) puts("STUB: OSASetScriptInfo called");
677677+ return NULL;
678678+}
679679+680680+void* OSASetSendProc(void)
681681+{
682682+ if (verbose) puts("STUB: OSASetSendProc called");
683683+ return NULL;
684684+}
685685+686686+void* OSAStartRecording(void)
687687+{
688688+ if (verbose) puts("STUB: OSAStartRecording called");
689689+ return NULL;
690690+}
691691+692692+void* OSAStopRecording(void)
693693+{
694694+ if (verbose) puts("STUB: OSAStopRecording called");
695695+ return NULL;
696696+}
697697+698698+void* OSAStore(void)
699699+{
700700+ if (verbose) puts("STUB: OSAStore called");
701701+ return NULL;
702702+}
703703+704704+void* OSAStoreFile(void)
705705+{
706706+ if (verbose) puts("STUB: OSAStoreFile called");
707707+ return NULL;
708708+}
709709+710710+void* OSAStoreScriptDataToFile(void)
711711+{
712712+ if (verbose) puts("STUB: OSAStoreScriptDataToFile called");
713713+ return NULL;
714714+}
715715+716716+void* OSAStoreScriptDataToNewFile(void)
717717+{
718718+ if (verbose) puts("STUB: OSAStoreScriptDataToNewFile called");
719719+ return NULL;
720720+}
721721+722722+void* _HandleGDUT(void)
723723+{
724724+ if (verbose) puts("STUB: _HandleGDUT called");
725725+ return NULL;
726726+}
727727+728728+void* _OSACopyDisplayString(void)
729729+{
730730+ if (verbose) puts("STUB: _OSACopyDisplayString called");
731731+ return NULL;
732732+}
733733+734734+void* _OSACopyScriptingDefinitionFromFile(void)
735735+{
736736+ if (verbose) puts("STUB: _OSACopyScriptingDefinitionFromFile called");
737737+ return NULL;
738738+}
739739+740740+void* _OSACopySourceString(void)
741741+{
742742+ if (verbose) puts("STUB: _OSACopySourceString called");
743743+ return NULL;
744744+}
745745+746746+void* _OSACreateURL(void)
747747+{
748748+ if (verbose) puts("STUB: _OSACreateURL called");
749749+ return NULL;
750750+}
751751+752752+void* _OSADoScriptURL(void)
753753+{
754754+ if (verbose) puts("STUB: _OSADoScriptURL called");
755755+ return NULL;
756756+}
757757+758758+void* _OSALoadExecuteURL(void)
759759+{
760760+ if (verbose) puts("STUB: _OSALoadExecuteURL called");
761761+ return NULL;
762762+}
763763+764764+void* _OSALoadURL(void)
765765+{
766766+ if (verbose) puts("STUB: _OSALoadURL called");
767767+ return NULL;
768768+}
769769+770770+void* _OSAStoreScriptDataToURL(void)
771771+{
772772+ if (verbose) puts("STUB: _OSAStoreScriptDataToURL called");
773773+ return NULL;
774774+}
775775+776776+void* _OSAStoreURL(void)
777777+{
778778+ if (verbose) puts("STUB: _OSAStoreURL called");
779779+ return NULL;
780780+}
+17
src/frameworks/Carbon/Print/CMakeLists.txt
···11+project(Print)
22+33+set(DYLIB_COMPAT_VERSION "1.0.0")
44+set(DYLIB_CURRENT_VERSION "271.0.0")
55+66+add_framework(Print
77+ FAT
88+ CURRENT_VERSION
99+ VERSION "A"
1010+ PARENT "Carbon"
1111+1212+ SOURCES
1313+ src/Print.c
1414+1515+ DEPENDENCIES
1616+ system
1717+)
+25
src/frameworks/Carbon/Print/include/Print/Print.h
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#ifndef _Print_H_
2222+#define _Print_H_
2323+2424+2525+#endif
+30
src/frameworks/Carbon/Print/src/Print.c
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#include <Print/Print.h>
2222+#include <stdlib.h>
2323+#include <stdio.h>
2424+2525+static int verbose = 0;
2626+2727+__attribute__((constructor))
2828+static void initme(void) {
2929+ verbose = getenv("STUB_VERBOSE") != NULL;
3030+}
+17
src/frameworks/Carbon/SecurityHI/CMakeLists.txt
···11+project(SecurityHI)
22+33+set(DYLIB_COMPAT_VERSION "1.0.0")
44+set(DYLIB_CURRENT_VERSION "55008.0.0")
55+66+add_framework(SecurityHI
77+ FAT
88+ CURRENT_VERSION
99+ VERSION "A"
1010+ PARENT "Carbon"
1111+1212+ SOURCES
1313+ src/SecurityHI.c
1414+1515+ DEPENDENCIES
1616+ system
1717+)
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#ifndef _SecurityHI_H_
2222+#define _SecurityHI_H_
2323+2424+void* DisposeURLNotifyUPP(void);
2525+void* DisposeURLSystemEventUPP(void);
2626+void* InvokeURLNotifyUPP(void);
2727+void* InvokeURLSystemEventUPP(void);
2828+void* KCAddAppleSharePassword(void);
2929+void* KCAddGenericPassword(void);
3030+void* KCAddInternetPassword(void);
3131+void* KCAddInternetPasswordWithPath(void);
3232+void* KCAddItem(void);
3333+void* KCChangeSettings(void);
3434+void* KCCreateKeychain(void);
3535+void* KCUnlock(void);
3636+void* NewURLNotifyUPP(void);
3737+void* NewURLSystemEventUPP(void);
3838+void* SecChooseIdentity(void);
3939+void* SecChooseIdentityAsSheet(void);
4040+void* SecDisplayCertificate(void);
4141+void* SecDisplayCertificateGroup(void);
4242+void* SecEditTrust(void);
4343+void* SecEditTrustAsSheet(void);
4444+void* kcaddapplesharepassword(void);
4545+void* kcaddgenericpassword(void);
4646+void* kcaddinternetpassword(void);
4747+void* kcaddinternetpasswordwithpath(void);
4848+void* kccreatekeychain(void);
4949+void* kcunlock(void);
5050+5151+#endif
+186
src/frameworks/Carbon/SecurityHI/src/SecurityHI.c
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#include <SecurityHI/SecurityHI.h>
2222+#include <stdlib.h>
2323+#include <stdio.h>
2424+2525+static int verbose = 0;
2626+2727+__attribute__((constructor))
2828+static void initme(void) {
2929+ verbose = getenv("STUB_VERBOSE") != NULL;
3030+}
3131+3232+void* DisposeURLNotifyUPP(void)
3333+{
3434+ if (verbose) puts("STUB: DisposeURLNotifyUPP called");
3535+ return NULL;
3636+}
3737+3838+void* DisposeURLSystemEventUPP(void)
3939+{
4040+ if (verbose) puts("STUB: DisposeURLSystemEventUPP called");
4141+ return NULL;
4242+}
4343+4444+void* InvokeURLNotifyUPP(void)
4545+{
4646+ if (verbose) puts("STUB: InvokeURLNotifyUPP called");
4747+ return NULL;
4848+}
4949+5050+void* InvokeURLSystemEventUPP(void)
5151+{
5252+ if (verbose) puts("STUB: InvokeURLSystemEventUPP called");
5353+ return NULL;
5454+}
5555+5656+void* KCAddAppleSharePassword(void)
5757+{
5858+ if (verbose) puts("STUB: KCAddAppleSharePassword called");
5959+ return NULL;
6060+}
6161+6262+void* KCAddGenericPassword(void)
6363+{
6464+ if (verbose) puts("STUB: KCAddGenericPassword called");
6565+ return NULL;
6666+}
6767+6868+void* KCAddInternetPassword(void)
6969+{
7070+ if (verbose) puts("STUB: KCAddInternetPassword called");
7171+ return NULL;
7272+}
7373+7474+void* KCAddInternetPasswordWithPath(void)
7575+{
7676+ if (verbose) puts("STUB: KCAddInternetPasswordWithPath called");
7777+ return NULL;
7878+}
7979+8080+void* KCAddItem(void)
8181+{
8282+ if (verbose) puts("STUB: KCAddItem called");
8383+ return NULL;
8484+}
8585+8686+void* KCChangeSettings(void)
8787+{
8888+ if (verbose) puts("STUB: KCChangeSettings called");
8989+ return NULL;
9090+}
9191+9292+void* KCCreateKeychain(void)
9393+{
9494+ if (verbose) puts("STUB: KCCreateKeychain called");
9595+ return NULL;
9696+}
9797+9898+void* KCUnlock(void)
9999+{
100100+ if (verbose) puts("STUB: KCUnlock called");
101101+ return NULL;
102102+}
103103+104104+void* NewURLNotifyUPP(void)
105105+{
106106+ if (verbose) puts("STUB: NewURLNotifyUPP called");
107107+ return NULL;
108108+}
109109+110110+void* NewURLSystemEventUPP(void)
111111+{
112112+ if (verbose) puts("STUB: NewURLSystemEventUPP called");
113113+ return NULL;
114114+}
115115+116116+void* SecChooseIdentity(void)
117117+{
118118+ if (verbose) puts("STUB: SecChooseIdentity called");
119119+ return NULL;
120120+}
121121+122122+void* SecChooseIdentityAsSheet(void)
123123+{
124124+ if (verbose) puts("STUB: SecChooseIdentityAsSheet called");
125125+ return NULL;
126126+}
127127+128128+void* SecDisplayCertificate(void)
129129+{
130130+ if (verbose) puts("STUB: SecDisplayCertificate called");
131131+ return NULL;
132132+}
133133+134134+void* SecDisplayCertificateGroup(void)
135135+{
136136+ if (verbose) puts("STUB: SecDisplayCertificateGroup called");
137137+ return NULL;
138138+}
139139+140140+void* SecEditTrust(void)
141141+{
142142+ if (verbose) puts("STUB: SecEditTrust called");
143143+ return NULL;
144144+}
145145+146146+void* SecEditTrustAsSheet(void)
147147+{
148148+ if (verbose) puts("STUB: SecEditTrustAsSheet called");
149149+ return NULL;
150150+}
151151+152152+void* kcaddapplesharepassword(void)
153153+{
154154+ if (verbose) puts("STUB: kcaddapplesharepassword called");
155155+ return NULL;
156156+}
157157+158158+void* kcaddgenericpassword(void)
159159+{
160160+ if (verbose) puts("STUB: kcaddgenericpassword called");
161161+ return NULL;
162162+}
163163+164164+void* kcaddinternetpassword(void)
165165+{
166166+ if (verbose) puts("STUB: kcaddinternetpassword called");
167167+ return NULL;
168168+}
169169+170170+void* kcaddinternetpasswordwithpath(void)
171171+{
172172+ if (verbose) puts("STUB: kcaddinternetpasswordwithpath called");
173173+ return NULL;
174174+}
175175+176176+void* kccreatekeychain(void)
177177+{
178178+ if (verbose) puts("STUB: kccreatekeychain called");
179179+ return NULL;
180180+}
181181+182182+void* kcunlock(void)
183183+{
184184+ if (verbose) puts("STUB: kcunlock called");
185185+ return NULL;
186186+}
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#ifndef _SpeechRecognition_H_
2222+#define _SpeechRecognition_H_
2323+2424+void* DisposeSRCallBackUPP(void);
2525+void* InvokeSRCallBackUPP(void);
2626+void* NewSRCallBackUPP(void);
2727+void* SFSAvatarCaptionVisible(void);
2828+void* SFSCopyActiveRecognizer(void);
2929+void* SFSCopyCurrentAvatarIdentifier(void);
3030+void* SFSCopyIndAvatarInfo(void);
3131+void* SFSCopyIndRecognizerPluginBundleRef(void);
3232+void* SFSCopyNamedAvatarInfo(void);
3333+void* SFSCopyProperty(void);
3434+void* SFSCountAvatars(void);
3535+void* SFSCountRecognizerPlugins(void);
3636+void* SFSCreateSpeechFeedbackService(void);
3737+void* SFSCreateSpeechFeedbackServiceFromRecognizerIdentifier(void);
3838+void* SFSDeminimizeFeedbackWindow(void);
3939+void* SFSDeminimizeUtilityWindow(void);
4040+void* SFSFeedbackWindowVisible(void);
4141+void* SFSGetAvatarExpression(void);
4242+void* SFSGetTargetProcess(void);
4343+void* SFSHideAvatarCaption(void);
4444+void* SFSHideFeedbackWindow(void);
4545+void* SFSHideRecognizerArea(void);
4646+void* SFSHideTextArea(void);
4747+void* SFSHideUtilityWindow(void);
4848+void* SFSIsRecognizerAreaVisible(void);
4949+void* SFSIsTextAreaVisible(void);
5050+void* SFSMinimizeFeedbackWindow(void);
5151+void* SFSMinimizeUtilityWindow(void);
5252+void* SFSReleaseSpeechFeedbackService(void);
5353+void* SFSRequestMicrophone(void);
5454+void* SFSReturnMicrophone(void);
5555+void* SFSSendMessageToRecognizerArea(void);
5656+void* SFSSetActiveRecognizer(void);
5757+void* SFSSetAvatarCaption(void);
5858+void* SFSSetAvatarExpression(void);
5959+void* SFSSetAvatarSpeakingState(void);
6060+void* SFSSetIdentityBadge(void);
6161+void* SFSSetMicrophoneMeterStatus(void);
6262+void* SFSSetProperty(void);
6363+void* SFSSetRecognizerStartupAction(void);
6464+void* SFSSetSpeakableCommandsData(void);
6565+void* SFSShowAvatarCaption(void);
6666+void* SFSShowFeedbackWindow(void);
6767+void* SFSShowRecognizerArea(void);
6868+void* SFSShowTextArea(void);
6969+void* SFSShowUtilityWindow(void);
7070+void* SFSSpeakAndDrawString(void);
7171+void* SFSSpeakAndDrawStringUsingVoice(void);
7272+void* SFSSpecifyMicrophoneToMeter(void);
7373+void* SFSSpeechBusy(void);
7474+void* SFSStopSpeech(void);
7575+void* SFSSyncFeedbackWindowWithPrefs(void);
7676+void* SFSUseAvatar(void);
7777+void* SFSUseAvatarBundle(void);
7878+void* SFSUseRecognizerAreaBundle(void);
7979+void* SFSUtilityWindowVisible(void);
8080+void* SRAddLanguageObject(void);
8181+void* SRAddText(void);
8282+void* SRCancelRecognition(void);
8383+void* SRChangeLanguageObject(void);
8484+void* SRCloseRecognitionSystem(void);
8585+void* SRContinueRecognition(void);
8686+void* SRCountItems(void);
8787+void* SRDrawRecognizedText(void);
8888+void* SRDrawText(void);
8989+void* SREmptyLanguageObject(void);
9090+void* SRGetIndexedItem(void);
9191+void* SRGetLanguageModel(void);
9292+void* SRGetProperty(void);
9393+void* SRGetReference(void);
9494+void* SRIdle(void);
9595+void* SRNewLanguageModel(void);
9696+void* SRNewLanguageObjectFromDataFile(void);
9797+void* SRNewLanguageObjectFromHandle(void);
9898+void* SRNewPath(void);
9999+void* SRNewPhrase(void);
100100+void* SRNewRecognizer(void);
101101+void* SRNewWord(void);
102102+void* SROpenRecognitionSystem(void);
103103+void* SRProcessBegin(void);
104104+void* SRProcessEnd(void);
105105+void* SRPutLanguageObjectIntoDataFile(void);
106106+void* SRPutLanguageObjectIntoHandle(void);
107107+void* SRReleaseObject(void);
108108+void* SRRemoveIndexedItem(void);
109109+void* SRRemoveLanguageObject(void);
110110+void* SRSetIndexedItem(void);
111111+void* SRSetLanguageModel(void);
112112+void* SRSetProperty(void);
113113+void* SRSpeakAndDrawText(void);
114114+void* SRSpeakText(void);
115115+void* SRSpeechBusy(void);
116116+void* SRStartListening(void);
117117+void* SRStopListening(void);
118118+void* SRStopSpeech(void);
119119+120120+#endif