this repo has no description
1
fork

Configure Feed

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

Stub JavaNativeFoundation and JavaRuntimeSupport

+2799
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Frameworks
··· 1 + Versions/A/Frameworks
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Headers
··· 1 + Versions/A/Headers
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers
··· 1 + ../../../../../../../../../../../../../../../../src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/Current
··· 1 + A
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Headers
··· 1 + Versions/A/Headers
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/A/Headers
··· 1 + ../../../../../../../../../../../../../../../../src/frameworks/JavaRuntimeSupport/include/JavaRuntimeSupport
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework/Versions/Current
··· 1 + A
+1
framework-include/JavaNativeFoundation
··· 1 + ../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaNativeFoundation.framework/Headers
+1
framework-include/JavaRuntimeSupport
··· 1 + ../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers
+2
src/frameworks/CMakeLists.txt
··· 29 29 add_subdirectory(ImageIO) 30 30 add_subdirectory(IOBluetooth) 31 31 add_subdirectory(IOSurface) 32 + add_subdirectory(JavaNativeFoundation) 33 + add_subdirectory(JavaRuntimeSupport) 32 34 add_subdirectory(JavaVM) 33 35 add_subdirectory(LocalAuthentication) 34 36 add_subdirectory(MapKit)
+34
src/frameworks/JavaNativeFoundation/CMakeLists.txt
··· 1 + project(JavaNativeFoundation) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "1.0.0") 5 + 6 + add_framework(JavaNativeFoundation 7 + FAT 8 + CURRENT_VERSION 9 + PARENT "JavaVM" 10 + VERSION "A" 11 + 12 + SOURCES 13 + src/JavaNativeFoundation.m 14 + src/JNFException.m 15 + src/JNFTypeCoercer.m 16 + src/JNFInternalJavaClassToCoersionHolder.m 17 + src/JNFStringCoercion.m 18 + src/JNFNumberCoercion.m 19 + src/JNFDateCoercion.m 20 + src/JNFMapCoercion.m 21 + src/JNFListCoercion.m 22 + src/JNFSetCoercion.m 23 + src/JNFDefaultCoercions.m 24 + src/JNFJObjectWrapper.m 25 + src/JNFWeakJObjectWrapper.m 26 + src/JNFRunLoop.m 27 + src/JNFRunnableWrapper.m 28 + src/JNFRunnable.m 29 + 30 + DEPENDENCIES 31 + system 32 + objc 33 + Foundation 34 + )
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFDateCoercion.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JNFDateCoercion : NSObject 23 + 24 + @end
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFDefaultCoercions.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JNFDefaultCoercions : NSObject 23 + 24 + @end
+33
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFException.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 + #include <Foundation/Foundation.h> 21 + 22 + extern const char* kOutOfMemoryError; 23 + extern const char* kClassNotFoundException; 24 + extern const char* kNullPointerException; 25 + extern const char* kIllegalAccessException; 26 + extern const char* kIllegalArgumentException; 27 + extern const char* kNoSuchFieldException; 28 + extern const char* kNoSuchMethodException; 29 + extern const char* kRuntimeException; 30 + 31 + @interface JNFException : NSObject 32 + 33 + @end
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFInternalJavaClassToCoersionHolder.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JNFInternalJavaClassToCoersionHolder : NSObject 23 + 24 + @end
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFJObjectWrapper.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JNFJObjectWrapper : NSObject 23 + 24 + @end
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFListCoercion.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JNFListCoercion : NSObject 23 + 24 + @end
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFMapCoercion.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JNFMapCoercion : NSObject 23 + 24 + @end
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFNumberCoercion.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JNFNumberCoercion : NSObject 23 + 24 + @end
+26
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFRunLoop.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 + #include <Foundation/Foundation.h> 21 + 22 + extern NSString* JNFRunLoopDidStartNotification; 23 + 24 + @interface JNFRunLoop : NSObject 25 + 26 + @end
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFRunnable.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JNFRunnable : NSObject 23 + 24 + @end
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFRunnableWrapper.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JNFRunnableWrapper : NSObject 23 + 24 + @end
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFSetCoercion.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JNFSetCoercion : NSObject 23 + 24 + @end
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFStringCoercion.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JNFStringCoercion : NSObject 23 + 24 + @end
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFTypeCoercer.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JNFTypeCoercer : NSObject 23 + 24 + @end
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFTypeCoercion.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 + #include <Foundation/Foundation.h> 21 + 22 + @protocol JNFTypeCoercion 23 + 24 + @end
+24
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JNFWeakJObjectWrapper.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JNFWeakJObjectWrapper : NSObject 23 + 24 + @end
+148
src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation/JavaNativeFoundation.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 _JavaNativeFoundation_H_ 22 + #define _JavaNativeFoundation_H_ 23 + 24 + #import <Foundation/Foundation.h> 25 + 26 + #import <JavaNativeFoundation/JNFTypeCoercion.h> 27 + #import <JavaNativeFoundation/JNFException.h> 28 + #import <JavaNativeFoundation/JNFTypeCoercer.h> 29 + #import <JavaNativeFoundation/JNFInternalJavaClassToCoersionHolder.h> 30 + #import <JavaNativeFoundation/JNFStringCoercion.h> 31 + #import <JavaNativeFoundation/JNFNumberCoercion.h> 32 + #import <JavaNativeFoundation/JNFDateCoercion.h> 33 + #import <JavaNativeFoundation/JNFMapCoercion.h> 34 + #import <JavaNativeFoundation/JNFListCoercion.h> 35 + #import <JavaNativeFoundation/JNFSetCoercion.h> 36 + #import <JavaNativeFoundation/JNFDefaultCoercions.h> 37 + #import <JavaNativeFoundation/JNFJObjectWrapper.h> 38 + #import <JavaNativeFoundation/JNFWeakJObjectWrapper.h> 39 + #import <JavaNativeFoundation/JNFRunLoop.h> 40 + #import <JavaNativeFoundation/JNFRunnableWrapper.h> 41 + #import <JavaNativeFoundation/JNFRunnable.h> 42 + 43 + void* JNFAssertionFailure(void); 44 + void* JNFAssertionFailureBreak(void); 45 + void* JNFCFToJavaBoolean(void); 46 + void* JNFCallBooleanMethod(void); 47 + void* JNFCallByteMethod(void); 48 + void* JNFCallCharMethod(void); 49 + void* JNFCallDoubleMethod(void); 50 + void* JNFCallFloatMethod(void); 51 + void* JNFCallIntMethod(void); 52 + void* JNFCallLongMethod(void); 53 + void* JNFCallObjectMethod(void); 54 + void* JNFCallShortMethod(void); 55 + void* JNFCallStaticBooleanMethod(void); 56 + void* JNFCallStaticByteMethod(void); 57 + void* JNFCallStaticCharMethod(void); 58 + void* JNFCallStaticDoubleMethod(void); 59 + void* JNFCallStaticFloatMethod(void); 60 + void* JNFCallStaticIntMethod(void); 61 + void* JNFCallStaticLongMethod(void); 62 + void* JNFCallStaticObjectMethod(void); 63 + void* JNFCallStaticShortMethod(void); 64 + void* JNFCallStaticVoidMethod(void); 65 + void* JNFCallVoidMethod(void); 66 + void* JNFDebugWarning(void); 67 + void* JNFDebugWarningBreak(void); 68 + void* JNFDeleteGlobalRef(void); 69 + void* JNFDeleteWeakGlobalRef(void); 70 + void* JNFDumpJavaObject(void); 71 + void* JNFDumpJavaStack(void); 72 + void* JNFGetBooleanField(void); 73 + void* JNFGetByteField(void); 74 + void* JNFGetCharField(void); 75 + void* JNFGetDoubleField(void); 76 + void* JNFGetFloatField(void); 77 + void* JNFGetIntField(void); 78 + void* JNFGetLongField(void); 79 + void* JNFGetObjectField(void); 80 + void* JNFGetShortField(void); 81 + void* JNFGetStackTraceAsNSString(void); 82 + void* JNFGetStaticBooleanField(void); 83 + void* JNFGetStaticByteField(void); 84 + void* JNFGetStaticCharField(void); 85 + void* JNFGetStaticDoubleField(void); 86 + void* JNFGetStaticFloatField(void); 87 + void* JNFGetStaticIntField(void); 88 + void* JNFGetStaticLongField(void); 89 + void* JNFGetStaticObjectField(void); 90 + void* JNFGetStaticShortField(void); 91 + void* JNFGetStringUTF16UniChars(void); 92 + void* JNFGetStringUTF8Chars(void); 93 + void* JNFIsInstanceOf(void); 94 + void* JNFJavaMillisToNSTimeInterval(void); 95 + void* JNFJavaStackTrace(void); 96 + void* JNFJavaToCFBoolean(void); 97 + void* JNFJavaToNSDate(void); 98 + void* JNFJavaToNSNumber(void); 99 + void* JNFJavaToNSString(void); 100 + void* JNFNSTimeIntervalToJavaMillis(void); 101 + void* JNFNSToJavaCalendar(void); 102 + void* JNFNSToJavaNumber(void); 103 + void* JNFNSToJavaString(void); 104 + void* JNFNativeMethodEnter(void); 105 + void* JNFNativeMethodExit(void); 106 + void* JNFNewBooleanArray(void); 107 + void* JNFNewByteArray(void); 108 + void* JNFNewCharArray(void); 109 + void* JNFNewDoubleArray(void); 110 + void* JNFNewFloatArray(void); 111 + void* JNFNewGlobalRef(void); 112 + void* JNFNewIntArray(void); 113 + void* JNFNewLongArray(void); 114 + void* JNFNewObject(void); 115 + void* JNFNewObjectArray(void); 116 + void* JNFNewShortArray(void); 117 + void* JNFNewWeakGlobalRef(void); 118 + void* JNFNormalizedJavaStringForPath(void); 119 + void* JNFNormalizedNSStringForPath(void); 120 + void* JNFObjectClassName(void); 121 + void* JNFObjectEquals(void); 122 + void* JNFObjectToString(void); 123 + void* JNFObtainEnv(void); 124 + void* JNFPerformEnvBlock(void); 125 + void* JNFReleaseEnv(void); 126 + void* JNFReleaseStringUTF16UniChars(void); 127 + void* JNFReleaseStringUTF8Chars(void); 128 + void* JNFSetBooleanField(void); 129 + void* JNFSetByteField(void); 130 + void* JNFSetCharField(void); 131 + void* JNFSetDoubleField(void); 132 + void* JNFSetFloatField(void); 133 + void* JNFSetIntField(void); 134 + void* JNFSetLongField(void); 135 + void* JNFSetObjectField(void); 136 + void* JNFSetShortField(void); 137 + void* JNFSetStaticBooleanField(void); 138 + void* JNFSetStaticByteField(void); 139 + void* JNFSetStaticCharField(void); 140 + void* JNFSetStaticDoubleField(void); 141 + void* JNFSetStaticFloatField(void); 142 + void* JNFSetStaticIntField(void); 143 + void* JNFSetStaticLongField(void); 144 + void* JNFSetStaticObjectField(void); 145 + void* JNFSetStaticShortField(void); 146 + void* JNFSetTracePS(void); 147 + 148 + #endif
+34
src/frameworks/JavaNativeFoundation/src/JNFDateCoercion.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 + #import <JavaNativeFoundation/JNFDateCoercion.h> 21 + 22 + @implementation JNFDateCoercion 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaNativeFoundation/src/JNFDefaultCoercions.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 + #import <JavaNativeFoundation/JNFDefaultCoercions.h> 21 + 22 + @implementation JNFDefaultCoercions 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+44
src/frameworks/JavaNativeFoundation/src/JNFException.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 + #import <JavaNativeFoundation/JNFException.h> 21 + 22 + // guessed values 23 + const char* kOutOfMemoryError = "kOutOfMemoryError"; 24 + const char* kClassNotFoundException = "kClassNotFoundException"; 25 + const char* kNullPointerException = "kNullPointerException"; 26 + const char* kIllegalAccessException = "kIllegalAccessException"; 27 + const char* kIllegalArgumentException = "kIllegalArgumentException"; 28 + const char* kNoSuchFieldException = "kNoSuchFieldException"; 29 + const char* kNoSuchMethodException = "kNoSuchMethodException"; 30 + const char* kRuntimeException = "kRuntimeException"; 31 + 32 + @implementation JNFException 33 + 34 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 35 + { 36 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 37 + } 38 + 39 + - (void)forwardInvocation:(NSInvocation *)anInvocation 40 + { 41 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 42 + } 43 + 44 + @end
+34
src/frameworks/JavaNativeFoundation/src/JNFInternalJavaClassToCoersionHolder.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 + #import <JavaNativeFoundation/JNFInternalJavaClassToCoersionHolder.h> 21 + 22 + @implementation JNFInternalJavaClassToCoersionHolder 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaNativeFoundation/src/JNFJObjectWrapper.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 + #import <JavaNativeFoundation/JNFJObjectWrapper.h> 21 + 22 + @implementation JNFJObjectWrapper 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaNativeFoundation/src/JNFListCoercion.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 + #import <JavaNativeFoundation/JNFListCoercion.h> 21 + 22 + @implementation JNFListCoercion 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaNativeFoundation/src/JNFMapCoercion.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 + #import <JavaNativeFoundation/JNFMapCoercion.h> 21 + 22 + @implementation JNFMapCoercion 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaNativeFoundation/src/JNFNumberCoercion.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 + #import <JavaNativeFoundation/JNFNumberCoercion.h> 21 + 22 + @implementation JNFNumberCoercion 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+37
src/frameworks/JavaNativeFoundation/src/JNFRunLoop.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 + #import <JavaNativeFoundation/JNFRunLoop.h> 21 + 22 + // guessed value 23 + NSString* JNFRunLoopDidStartNotification = @"JNFRunLoopDidStartNotification"; 24 + 25 + @implementation JNFRunLoop 26 + 27 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 28 + { 29 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 30 + } 31 + 32 + - (void)forwardInvocation:(NSInvocation *)anInvocation 33 + { 34 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 35 + } 36 + 37 + @end
+34
src/frameworks/JavaNativeFoundation/src/JNFRunnable.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 + #import <JavaNativeFoundation/JNFRunnable.h> 21 + 22 + @implementation JNFRunnable 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaNativeFoundation/src/JNFRunnableWrapper.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 + #import <JavaNativeFoundation/JNFRunnableWrapper.h> 21 + 22 + @implementation JNFRunnableWrapper 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaNativeFoundation/src/JNFSetCoercion.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 + #import <JavaNativeFoundation/JNFSetCoercion.h> 21 + 22 + @implementation JNFSetCoercion 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaNativeFoundation/src/JNFStringCoercion.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 + #import <JavaNativeFoundation/JNFStringCoercion.h> 21 + 22 + @implementation JNFStringCoercion 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaNativeFoundation/src/JNFTypeCoercer.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 + #import <JavaNativeFoundation/JNFTypeCoercer.h> 21 + 22 + @implementation JNFTypeCoercer 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaNativeFoundation/src/JNFWeakJObjectWrapper.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 + #import <JavaNativeFoundation/JNFWeakJObjectWrapper.h> 21 + 22 + @implementation JNFWeakJObjectWrapper 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+654
src/frameworks/JavaNativeFoundation/src/JavaNativeFoundation.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 <JavaNativeFoundation/JavaNativeFoundation.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* JNFAssertionFailure(void) 33 + { 34 + if (verbose) puts("STUB: JNFAssertionFailure called"); 35 + return NULL; 36 + } 37 + 38 + void* JNFAssertionFailureBreak(void) 39 + { 40 + if (verbose) puts("STUB: JNFAssertionFailureBreak called"); 41 + return NULL; 42 + } 43 + 44 + void* JNFCFToJavaBoolean(void) 45 + { 46 + if (verbose) puts("STUB: JNFCFToJavaBoolean called"); 47 + return NULL; 48 + } 49 + 50 + void* JNFCallBooleanMethod(void) 51 + { 52 + if (verbose) puts("STUB: JNFCallBooleanMethod called"); 53 + return NULL; 54 + } 55 + 56 + void* JNFCallByteMethod(void) 57 + { 58 + if (verbose) puts("STUB: JNFCallByteMethod called"); 59 + return NULL; 60 + } 61 + 62 + void* JNFCallCharMethod(void) 63 + { 64 + if (verbose) puts("STUB: JNFCallCharMethod called"); 65 + return NULL; 66 + } 67 + 68 + void* JNFCallDoubleMethod(void) 69 + { 70 + if (verbose) puts("STUB: JNFCallDoubleMethod called"); 71 + return NULL; 72 + } 73 + 74 + void* JNFCallFloatMethod(void) 75 + { 76 + if (verbose) puts("STUB: JNFCallFloatMethod called"); 77 + return NULL; 78 + } 79 + 80 + void* JNFCallIntMethod(void) 81 + { 82 + if (verbose) puts("STUB: JNFCallIntMethod called"); 83 + return NULL; 84 + } 85 + 86 + void* JNFCallLongMethod(void) 87 + { 88 + if (verbose) puts("STUB: JNFCallLongMethod called"); 89 + return NULL; 90 + } 91 + 92 + void* JNFCallObjectMethod(void) 93 + { 94 + if (verbose) puts("STUB: JNFCallObjectMethod called"); 95 + return NULL; 96 + } 97 + 98 + void* JNFCallShortMethod(void) 99 + { 100 + if (verbose) puts("STUB: JNFCallShortMethod called"); 101 + return NULL; 102 + } 103 + 104 + void* JNFCallStaticBooleanMethod(void) 105 + { 106 + if (verbose) puts("STUB: JNFCallStaticBooleanMethod called"); 107 + return NULL; 108 + } 109 + 110 + void* JNFCallStaticByteMethod(void) 111 + { 112 + if (verbose) puts("STUB: JNFCallStaticByteMethod called"); 113 + return NULL; 114 + } 115 + 116 + void* JNFCallStaticCharMethod(void) 117 + { 118 + if (verbose) puts("STUB: JNFCallStaticCharMethod called"); 119 + return NULL; 120 + } 121 + 122 + void* JNFCallStaticDoubleMethod(void) 123 + { 124 + if (verbose) puts("STUB: JNFCallStaticDoubleMethod called"); 125 + return NULL; 126 + } 127 + 128 + void* JNFCallStaticFloatMethod(void) 129 + { 130 + if (verbose) puts("STUB: JNFCallStaticFloatMethod called"); 131 + return NULL; 132 + } 133 + 134 + void* JNFCallStaticIntMethod(void) 135 + { 136 + if (verbose) puts("STUB: JNFCallStaticIntMethod called"); 137 + return NULL; 138 + } 139 + 140 + void* JNFCallStaticLongMethod(void) 141 + { 142 + if (verbose) puts("STUB: JNFCallStaticLongMethod called"); 143 + return NULL; 144 + } 145 + 146 + void* JNFCallStaticObjectMethod(void) 147 + { 148 + if (verbose) puts("STUB: JNFCallStaticObjectMethod called"); 149 + return NULL; 150 + } 151 + 152 + void* JNFCallStaticShortMethod(void) 153 + { 154 + if (verbose) puts("STUB: JNFCallStaticShortMethod called"); 155 + return NULL; 156 + } 157 + 158 + void* JNFCallStaticVoidMethod(void) 159 + { 160 + if (verbose) puts("STUB: JNFCallStaticVoidMethod called"); 161 + return NULL; 162 + } 163 + 164 + void* JNFCallVoidMethod(void) 165 + { 166 + if (verbose) puts("STUB: JNFCallVoidMethod called"); 167 + return NULL; 168 + } 169 + 170 + void* JNFDebugWarning(void) 171 + { 172 + if (verbose) puts("STUB: JNFDebugWarning called"); 173 + return NULL; 174 + } 175 + 176 + void* JNFDebugWarningBreak(void) 177 + { 178 + if (verbose) puts("STUB: JNFDebugWarningBreak called"); 179 + return NULL; 180 + } 181 + 182 + void* JNFDeleteGlobalRef(void) 183 + { 184 + if (verbose) puts("STUB: JNFDeleteGlobalRef called"); 185 + return NULL; 186 + } 187 + 188 + void* JNFDeleteWeakGlobalRef(void) 189 + { 190 + if (verbose) puts("STUB: JNFDeleteWeakGlobalRef called"); 191 + return NULL; 192 + } 193 + 194 + void* JNFDumpJavaObject(void) 195 + { 196 + if (verbose) puts("STUB: JNFDumpJavaObject called"); 197 + return NULL; 198 + } 199 + 200 + void* JNFDumpJavaStack(void) 201 + { 202 + if (verbose) puts("STUB: JNFDumpJavaStack called"); 203 + return NULL; 204 + } 205 + 206 + void* JNFGetBooleanField(void) 207 + { 208 + if (verbose) puts("STUB: JNFGetBooleanField called"); 209 + return NULL; 210 + } 211 + 212 + void* JNFGetByteField(void) 213 + { 214 + if (verbose) puts("STUB: JNFGetByteField called"); 215 + return NULL; 216 + } 217 + 218 + void* JNFGetCharField(void) 219 + { 220 + if (verbose) puts("STUB: JNFGetCharField called"); 221 + return NULL; 222 + } 223 + 224 + void* JNFGetDoubleField(void) 225 + { 226 + if (verbose) puts("STUB: JNFGetDoubleField called"); 227 + return NULL; 228 + } 229 + 230 + void* JNFGetFloatField(void) 231 + { 232 + if (verbose) puts("STUB: JNFGetFloatField called"); 233 + return NULL; 234 + } 235 + 236 + void* JNFGetIntField(void) 237 + { 238 + if (verbose) puts("STUB: JNFGetIntField called"); 239 + return NULL; 240 + } 241 + 242 + void* JNFGetLongField(void) 243 + { 244 + if (verbose) puts("STUB: JNFGetLongField called"); 245 + return NULL; 246 + } 247 + 248 + void* JNFGetObjectField(void) 249 + { 250 + if (verbose) puts("STUB: JNFGetObjectField called"); 251 + return NULL; 252 + } 253 + 254 + void* JNFGetShortField(void) 255 + { 256 + if (verbose) puts("STUB: JNFGetShortField called"); 257 + return NULL; 258 + } 259 + 260 + void* JNFGetStackTraceAsNSString(void) 261 + { 262 + if (verbose) puts("STUB: JNFGetStackTraceAsNSString called"); 263 + return NULL; 264 + } 265 + 266 + void* JNFGetStaticBooleanField(void) 267 + { 268 + if (verbose) puts("STUB: JNFGetStaticBooleanField called"); 269 + return NULL; 270 + } 271 + 272 + void* JNFGetStaticByteField(void) 273 + { 274 + if (verbose) puts("STUB: JNFGetStaticByteField called"); 275 + return NULL; 276 + } 277 + 278 + void* JNFGetStaticCharField(void) 279 + { 280 + if (verbose) puts("STUB: JNFGetStaticCharField called"); 281 + return NULL; 282 + } 283 + 284 + void* JNFGetStaticDoubleField(void) 285 + { 286 + if (verbose) puts("STUB: JNFGetStaticDoubleField called"); 287 + return NULL; 288 + } 289 + 290 + void* JNFGetStaticFloatField(void) 291 + { 292 + if (verbose) puts("STUB: JNFGetStaticFloatField called"); 293 + return NULL; 294 + } 295 + 296 + void* JNFGetStaticIntField(void) 297 + { 298 + if (verbose) puts("STUB: JNFGetStaticIntField called"); 299 + return NULL; 300 + } 301 + 302 + void* JNFGetStaticLongField(void) 303 + { 304 + if (verbose) puts("STUB: JNFGetStaticLongField called"); 305 + return NULL; 306 + } 307 + 308 + void* JNFGetStaticObjectField(void) 309 + { 310 + if (verbose) puts("STUB: JNFGetStaticObjectField called"); 311 + return NULL; 312 + } 313 + 314 + void* JNFGetStaticShortField(void) 315 + { 316 + if (verbose) puts("STUB: JNFGetStaticShortField called"); 317 + return NULL; 318 + } 319 + 320 + void* JNFGetStringUTF16UniChars(void) 321 + { 322 + if (verbose) puts("STUB: JNFGetStringUTF16UniChars called"); 323 + return NULL; 324 + } 325 + 326 + void* JNFGetStringUTF8Chars(void) 327 + { 328 + if (verbose) puts("STUB: JNFGetStringUTF8Chars called"); 329 + return NULL; 330 + } 331 + 332 + void* JNFIsInstanceOf(void) 333 + { 334 + if (verbose) puts("STUB: JNFIsInstanceOf called"); 335 + return NULL; 336 + } 337 + 338 + void* JNFJavaMillisToNSTimeInterval(void) 339 + { 340 + if (verbose) puts("STUB: JNFJavaMillisToNSTimeInterval called"); 341 + return NULL; 342 + } 343 + 344 + void* JNFJavaStackTrace(void) 345 + { 346 + if (verbose) puts("STUB: JNFJavaStackTrace called"); 347 + return NULL; 348 + } 349 + 350 + void* JNFJavaToCFBoolean(void) 351 + { 352 + if (verbose) puts("STUB: JNFJavaToCFBoolean called"); 353 + return NULL; 354 + } 355 + 356 + void* JNFJavaToNSDate(void) 357 + { 358 + if (verbose) puts("STUB: JNFJavaToNSDate called"); 359 + return NULL; 360 + } 361 + 362 + void* JNFJavaToNSNumber(void) 363 + { 364 + if (verbose) puts("STUB: JNFJavaToNSNumber called"); 365 + return NULL; 366 + } 367 + 368 + void* JNFJavaToNSString(void) 369 + { 370 + if (verbose) puts("STUB: JNFJavaToNSString called"); 371 + return NULL; 372 + } 373 + 374 + void* JNFNSTimeIntervalToJavaMillis(void) 375 + { 376 + if (verbose) puts("STUB: JNFNSTimeIntervalToJavaMillis called"); 377 + return NULL; 378 + } 379 + 380 + void* JNFNSToJavaCalendar(void) 381 + { 382 + if (verbose) puts("STUB: JNFNSToJavaCalendar called"); 383 + return NULL; 384 + } 385 + 386 + void* JNFNSToJavaNumber(void) 387 + { 388 + if (verbose) puts("STUB: JNFNSToJavaNumber called"); 389 + return NULL; 390 + } 391 + 392 + void* JNFNSToJavaString(void) 393 + { 394 + if (verbose) puts("STUB: JNFNSToJavaString called"); 395 + return NULL; 396 + } 397 + 398 + void* JNFNativeMethodEnter(void) 399 + { 400 + if (verbose) puts("STUB: JNFNativeMethodEnter called"); 401 + return NULL; 402 + } 403 + 404 + void* JNFNativeMethodExit(void) 405 + { 406 + if (verbose) puts("STUB: JNFNativeMethodExit called"); 407 + return NULL; 408 + } 409 + 410 + void* JNFNewBooleanArray(void) 411 + { 412 + if (verbose) puts("STUB: JNFNewBooleanArray called"); 413 + return NULL; 414 + } 415 + 416 + void* JNFNewByteArray(void) 417 + { 418 + if (verbose) puts("STUB: JNFNewByteArray called"); 419 + return NULL; 420 + } 421 + 422 + void* JNFNewCharArray(void) 423 + { 424 + if (verbose) puts("STUB: JNFNewCharArray called"); 425 + return NULL; 426 + } 427 + 428 + void* JNFNewDoubleArray(void) 429 + { 430 + if (verbose) puts("STUB: JNFNewDoubleArray called"); 431 + return NULL; 432 + } 433 + 434 + void* JNFNewFloatArray(void) 435 + { 436 + if (verbose) puts("STUB: JNFNewFloatArray called"); 437 + return NULL; 438 + } 439 + 440 + void* JNFNewGlobalRef(void) 441 + { 442 + if (verbose) puts("STUB: JNFNewGlobalRef called"); 443 + return NULL; 444 + } 445 + 446 + void* JNFNewIntArray(void) 447 + { 448 + if (verbose) puts("STUB: JNFNewIntArray called"); 449 + return NULL; 450 + } 451 + 452 + void* JNFNewLongArray(void) 453 + { 454 + if (verbose) puts("STUB: JNFNewLongArray called"); 455 + return NULL; 456 + } 457 + 458 + void* JNFNewObject(void) 459 + { 460 + if (verbose) puts("STUB: JNFNewObject called"); 461 + return NULL; 462 + } 463 + 464 + void* JNFNewObjectArray(void) 465 + { 466 + if (verbose) puts("STUB: JNFNewObjectArray called"); 467 + return NULL; 468 + } 469 + 470 + void* JNFNewShortArray(void) 471 + { 472 + if (verbose) puts("STUB: JNFNewShortArray called"); 473 + return NULL; 474 + } 475 + 476 + void* JNFNewWeakGlobalRef(void) 477 + { 478 + if (verbose) puts("STUB: JNFNewWeakGlobalRef called"); 479 + return NULL; 480 + } 481 + 482 + void* JNFNormalizedJavaStringForPath(void) 483 + { 484 + if (verbose) puts("STUB: JNFNormalizedJavaStringForPath called"); 485 + return NULL; 486 + } 487 + 488 + void* JNFNormalizedNSStringForPath(void) 489 + { 490 + if (verbose) puts("STUB: JNFNormalizedNSStringForPath called"); 491 + return NULL; 492 + } 493 + 494 + void* JNFObjectClassName(void) 495 + { 496 + if (verbose) puts("STUB: JNFObjectClassName called"); 497 + return NULL; 498 + } 499 + 500 + void* JNFObjectEquals(void) 501 + { 502 + if (verbose) puts("STUB: JNFObjectEquals called"); 503 + return NULL; 504 + } 505 + 506 + void* JNFObjectToString(void) 507 + { 508 + if (verbose) puts("STUB: JNFObjectToString called"); 509 + return NULL; 510 + } 511 + 512 + void* JNFObtainEnv(void) 513 + { 514 + if (verbose) puts("STUB: JNFObtainEnv called"); 515 + return NULL; 516 + } 517 + 518 + void* JNFPerformEnvBlock(void) 519 + { 520 + if (verbose) puts("STUB: JNFPerformEnvBlock called"); 521 + return NULL; 522 + } 523 + 524 + void* JNFReleaseEnv(void) 525 + { 526 + if (verbose) puts("STUB: JNFReleaseEnv called"); 527 + return NULL; 528 + } 529 + 530 + void* JNFReleaseStringUTF16UniChars(void) 531 + { 532 + if (verbose) puts("STUB: JNFReleaseStringUTF16UniChars called"); 533 + return NULL; 534 + } 535 + 536 + void* JNFReleaseStringUTF8Chars(void) 537 + { 538 + if (verbose) puts("STUB: JNFReleaseStringUTF8Chars called"); 539 + return NULL; 540 + } 541 + 542 + void* JNFSetBooleanField(void) 543 + { 544 + if (verbose) puts("STUB: JNFSetBooleanField called"); 545 + return NULL; 546 + } 547 + 548 + void* JNFSetByteField(void) 549 + { 550 + if (verbose) puts("STUB: JNFSetByteField called"); 551 + return NULL; 552 + } 553 + 554 + void* JNFSetCharField(void) 555 + { 556 + if (verbose) puts("STUB: JNFSetCharField called"); 557 + return NULL; 558 + } 559 + 560 + void* JNFSetDoubleField(void) 561 + { 562 + if (verbose) puts("STUB: JNFSetDoubleField called"); 563 + return NULL; 564 + } 565 + 566 + void* JNFSetFloatField(void) 567 + { 568 + if (verbose) puts("STUB: JNFSetFloatField called"); 569 + return NULL; 570 + } 571 + 572 + void* JNFSetIntField(void) 573 + { 574 + if (verbose) puts("STUB: JNFSetIntField called"); 575 + return NULL; 576 + } 577 + 578 + void* JNFSetLongField(void) 579 + { 580 + if (verbose) puts("STUB: JNFSetLongField called"); 581 + return NULL; 582 + } 583 + 584 + void* JNFSetObjectField(void) 585 + { 586 + if (verbose) puts("STUB: JNFSetObjectField called"); 587 + return NULL; 588 + } 589 + 590 + void* JNFSetShortField(void) 591 + { 592 + if (verbose) puts("STUB: JNFSetShortField called"); 593 + return NULL; 594 + } 595 + 596 + void* JNFSetStaticBooleanField(void) 597 + { 598 + if (verbose) puts("STUB: JNFSetStaticBooleanField called"); 599 + return NULL; 600 + } 601 + 602 + void* JNFSetStaticByteField(void) 603 + { 604 + if (verbose) puts("STUB: JNFSetStaticByteField called"); 605 + return NULL; 606 + } 607 + 608 + void* JNFSetStaticCharField(void) 609 + { 610 + if (verbose) puts("STUB: JNFSetStaticCharField called"); 611 + return NULL; 612 + } 613 + 614 + void* JNFSetStaticDoubleField(void) 615 + { 616 + if (verbose) puts("STUB: JNFSetStaticDoubleField called"); 617 + return NULL; 618 + } 619 + 620 + void* JNFSetStaticFloatField(void) 621 + { 622 + if (verbose) puts("STUB: JNFSetStaticFloatField called"); 623 + return NULL; 624 + } 625 + 626 + void* JNFSetStaticIntField(void) 627 + { 628 + if (verbose) puts("STUB: JNFSetStaticIntField called"); 629 + return NULL; 630 + } 631 + 632 + void* JNFSetStaticLongField(void) 633 + { 634 + if (verbose) puts("STUB: JNFSetStaticLongField called"); 635 + return NULL; 636 + } 637 + 638 + void* JNFSetStaticObjectField(void) 639 + { 640 + if (verbose) puts("STUB: JNFSetStaticObjectField called"); 641 + return NULL; 642 + } 643 + 644 + void* JNFSetStaticShortField(void) 645 + { 646 + if (verbose) puts("STUB: JNFSetStaticShortField called"); 647 + return NULL; 648 + } 649 + 650 + void* JNFSetTracePS(void) 651 + { 652 + if (verbose) puts("STUB: JNFSetTracePS called"); 653 + return NULL; 654 + }
+29
src/frameworks/JavaRuntimeSupport/CMakeLists.txt
··· 1 + project(JavaRuntimeSupport) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "1.0.0") 5 + 6 + add_framework(JavaRuntimeSupport 7 + FAT 8 + CURRENT_VERSION 9 + PARENT "JavaVM" 10 + VERSION "A" 11 + 12 + SOURCES 13 + src/JavaRuntimeSupport.m 14 + src/JRSDrag.m 15 + src/JRSAppKitAWT.m 16 + src/JRSMenu.m 17 + src/_JRSUIRenderer.m 18 + src/JRSInputMethodController.m 19 + src/MIGThread.m 20 + src/JRSRenderServer.m 21 + src/JRSSymbolicator.m 22 + src/JRSSymbolicatorImpl.m 23 + src/JRSSecurity.m 24 + 25 + DEPENDENCIES 26 + system 27 + objc 28 + Foundation 29 + )
+24
src/frameworks/JavaRuntimeSupport/include/JavaRuntimeSupport/JRSAppKitAWT.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JRSAppKitAWT : NSObject 23 + 24 + @end
+24
src/frameworks/JavaRuntimeSupport/include/JavaRuntimeSupport/JRSDrag.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JRSDrag : NSObject 23 + 24 + @end
+24
src/frameworks/JavaRuntimeSupport/include/JavaRuntimeSupport/JRSInputMethodController.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JRSInputMethodController : NSObject 23 + 24 + @end
+24
src/frameworks/JavaRuntimeSupport/include/JavaRuntimeSupport/JRSMenu.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JRSMenu : NSObject 23 + 24 + @end
+24
src/frameworks/JavaRuntimeSupport/include/JavaRuntimeSupport/JRSRenderServer.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JRSRenderServer : NSObject 23 + 24 + @end
+24
src/frameworks/JavaRuntimeSupport/include/JavaRuntimeSupport/JRSSecurity.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JRSSecurity : NSObject 23 + 24 + @end
+24
src/frameworks/JavaRuntimeSupport/include/JavaRuntimeSupport/JRSSymbolicator.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JRSSymbolicator : NSObject 23 + 24 + @end
+24
src/frameworks/JavaRuntimeSupport/include/JavaRuntimeSupport/JRSSymbolicatorImpl.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface JRSSymbolicatorImpl : NSObject 23 + 24 + @end
+89
src/frameworks/JavaRuntimeSupport/include/JavaRuntimeSupport/JavaRuntimeSupport.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 _JavaRuntimeSupport_H_ 22 + #define _JavaRuntimeSupport_H_ 23 + 24 + #import <Foundation/Foundation.h> 25 + 26 + #import <JavaRuntimeSupport/JRSDrag.h> 27 + #import <JavaRuntimeSupport/JRSAppKitAWT.h> 28 + #import <JavaRuntimeSupport/JRSMenu.h> 29 + #import <JavaRuntimeSupport/_JRSUIRenderer.h> 30 + #import <JavaRuntimeSupport/JRSInputMethodController.h> 31 + #import <JavaRuntimeSupport/MIGThread.h> 32 + #import <JavaRuntimeSupport/JRSRenderServer.h> 33 + #import <JavaRuntimeSupport/JRSSymbolicator.h> 34 + #import <JavaRuntimeSupport/JRSSymbolicatorImpl.h> 35 + #import <JavaRuntimeSupport/JRSSecurity.h> 36 + 37 + void* CopyCFStringToFilesystemRepresentation(void); 38 + void* CopyCFStringToUTF8(void); 39 + void* GetHitPart(void); 40 + void* GetScrollBarHitPart(void); 41 + void* JRSAccessibilityUnregisterUniqueIdForUIElement(void); 42 + void* JRSCopyCanonicalLanguageForPrimaryLanguage(void); 43 + void* JRSCopyOSJavaSupportVersion(void); 44 + void* JRSCopyOSName(void); 45 + void* JRSCopyOSVersion(void); 46 + void* JRSCopyPrimaryLanguage(void); 47 + void* JRSFontAlignStyleForFractionalMeasurement(void); 48 + void* JRSFontAlignStyleForIntegerMeasurement(void); 49 + void* JRSFontCreateFallbackFontForCharacters(void); 50 + void* JRSFontGetAdvancesForGlyphsAndStyle(void); 51 + void* JRSFontGetBoundingBoxesForGlyphsAndStyle(void); 52 + void* JRSFontGetRenderingStyleForContext(void); 53 + void* JRSFontGetRenderingStyleForHints(void); 54 + void* JRSFontSetRenderingStyleOnContext(void); 55 + void* JRSFontStyleIsAntialiased(void); 56 + void* JRSFontStyleUsesFractionalMetrics(void); 57 + void* JRSSetDefaultLocalization(void); 58 + void* JRSUIControlCreate(void); 59 + void* JRSUIControlDraw(void); 60 + void* JRSUIControlGetHitPart(void); 61 + void* JRSUIControlGetScrollBarOffsetFor(void); 62 + void* JRSUIControlGetScrollBarPartBounds(void); 63 + void* JRSUIControlRelease(void); 64 + void* JRSUIControlSetAlignmentHorizontal(void); 65 + void* JRSUIControlSetAlignmentVertical(void); 66 + void* JRSUIControlSetAnimating(void); 67 + void* JRSUIControlSetDirection(void); 68 + void* JRSUIControlSetOrientation(void); 69 + void* JRSUIControlSetPresentationState(void); 70 + void* JRSUIControlSetScrollBarPart(void); 71 + void* JRSUIControlSetSegmentPosition(void); 72 + void* JRSUIControlSetShowArrows(void); 73 + void* JRSUIControlSetSize(void); 74 + void* JRSUIControlSetState(void); 75 + void* JRSUIControlSetUserInterfaceLayoutDirection(void); 76 + void* JRSUIControlSetValueByKey(void); 77 + void* JRSUIControlSetVariant(void); 78 + void* JRSUIControlSetWidget(void); 79 + void* JRSUIControlSetWindowType(void); 80 + void* JRSUIControlShouldScrollToClick(void); 81 + void* JRSUIGetKey(void); 82 + void* JRSUIRendererCreate(void); 83 + void* JRSUIRendererRelease(void); 84 + void* do_transfer_port_send_right(void); 85 + void* port_send_right_transfer_server(void); 86 + void* port_send_right_transfer_server_routine(void); 87 + void* transfer_port_send_right(void); 88 + 89 + #endif
+24
src/frameworks/JavaRuntimeSupport/include/JavaRuntimeSupport/MIGThread.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface MIGThread : NSObject 23 + 24 + @end
+24
src/frameworks/JavaRuntimeSupport/include/JavaRuntimeSupport/_JRSUIRenderer.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 + #include <Foundation/Foundation.h> 21 + 22 + @interface _JRSUIRenderer : NSObject 23 + 24 + @end
+34
src/frameworks/JavaRuntimeSupport/src/JRSAppKitAWT.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 + #import <JavaRuntimeSupport/JRSAppKitAWT.h> 21 + 22 + @implementation JRSAppKitAWT 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaRuntimeSupport/src/JRSDrag.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 + #import <JavaRuntimeSupport/JRSDrag.h> 21 + 22 + @implementation JRSDrag 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaRuntimeSupport/src/JRSInputMethodController.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 + #import <JavaRuntimeSupport/JRSInputMethodController.h> 21 + 22 + @implementation JRSInputMethodController 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaRuntimeSupport/src/JRSMenu.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 + #import <JavaRuntimeSupport/JRSMenu.h> 21 + 22 + @implementation JRSMenu 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaRuntimeSupport/src/JRSRenderServer.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 + #import <JavaRuntimeSupport/JRSRenderServer.h> 21 + 22 + @implementation JRSRenderServer 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaRuntimeSupport/src/JRSSecurity.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 + #import <JavaRuntimeSupport/JRSSecurity.h> 21 + 22 + @implementation JRSSecurity 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaRuntimeSupport/src/JRSSymbolicator.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 + #import <JavaRuntimeSupport/JRSSymbolicator.h> 21 + 22 + @implementation JRSSymbolicator 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaRuntimeSupport/src/JRSSymbolicatorImpl.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 + #import <JavaRuntimeSupport/JRSSymbolicatorImpl.h> 21 + 22 + @implementation JRSSymbolicatorImpl 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+336
src/frameworks/JavaRuntimeSupport/src/JavaRuntimeSupport.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 <JavaRuntimeSupport/JavaRuntimeSupport.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* CopyCFStringToFilesystemRepresentation(void) 33 + { 34 + if (verbose) puts("STUB: CopyCFStringToFilesystemRepresentation called"); 35 + return NULL; 36 + } 37 + 38 + void* CopyCFStringToUTF8(void) 39 + { 40 + if (verbose) puts("STUB: CopyCFStringToUTF8 called"); 41 + return NULL; 42 + } 43 + 44 + void* GetHitPart(void) 45 + { 46 + if (verbose) puts("STUB: GetHitPart called"); 47 + return NULL; 48 + } 49 + 50 + void* GetScrollBarHitPart(void) 51 + { 52 + if (verbose) puts("STUB: GetScrollBarHitPart called"); 53 + return NULL; 54 + } 55 + 56 + void* JRSAccessibilityUnregisterUniqueIdForUIElement(void) 57 + { 58 + if (verbose) puts("STUB: JRSAccessibilityUnregisterUniqueIdForUIElement called"); 59 + return NULL; 60 + } 61 + 62 + void* JRSCopyCanonicalLanguageForPrimaryLanguage(void) 63 + { 64 + if (verbose) puts("STUB: JRSCopyCanonicalLanguageForPrimaryLanguage called"); 65 + return NULL; 66 + } 67 + 68 + void* JRSCopyOSJavaSupportVersion(void) 69 + { 70 + if (verbose) puts("STUB: JRSCopyOSJavaSupportVersion called"); 71 + return NULL; 72 + } 73 + 74 + void* JRSCopyOSName(void) 75 + { 76 + if (verbose) puts("STUB: JRSCopyOSName called"); 77 + return NULL; 78 + } 79 + 80 + void* JRSCopyOSVersion(void) 81 + { 82 + if (verbose) puts("STUB: JRSCopyOSVersion called"); 83 + return NULL; 84 + } 85 + 86 + void* JRSCopyPrimaryLanguage(void) 87 + { 88 + if (verbose) puts("STUB: JRSCopyPrimaryLanguage called"); 89 + return NULL; 90 + } 91 + 92 + void* JRSFontAlignStyleForFractionalMeasurement(void) 93 + { 94 + if (verbose) puts("STUB: JRSFontAlignStyleForFractionalMeasurement called"); 95 + return NULL; 96 + } 97 + 98 + void* JRSFontAlignStyleForIntegerMeasurement(void) 99 + { 100 + if (verbose) puts("STUB: JRSFontAlignStyleForIntegerMeasurement called"); 101 + return NULL; 102 + } 103 + 104 + void* JRSFontCreateFallbackFontForCharacters(void) 105 + { 106 + if (verbose) puts("STUB: JRSFontCreateFallbackFontForCharacters called"); 107 + return NULL; 108 + } 109 + 110 + void* JRSFontGetAdvancesForGlyphsAndStyle(void) 111 + { 112 + if (verbose) puts("STUB: JRSFontGetAdvancesForGlyphsAndStyle called"); 113 + return NULL; 114 + } 115 + 116 + void* JRSFontGetBoundingBoxesForGlyphsAndStyle(void) 117 + { 118 + if (verbose) puts("STUB: JRSFontGetBoundingBoxesForGlyphsAndStyle called"); 119 + return NULL; 120 + } 121 + 122 + void* JRSFontGetRenderingStyleForContext(void) 123 + { 124 + if (verbose) puts("STUB: JRSFontGetRenderingStyleForContext called"); 125 + return NULL; 126 + } 127 + 128 + void* JRSFontGetRenderingStyleForHints(void) 129 + { 130 + if (verbose) puts("STUB: JRSFontGetRenderingStyleForHints called"); 131 + return NULL; 132 + } 133 + 134 + void* JRSFontSetRenderingStyleOnContext(void) 135 + { 136 + if (verbose) puts("STUB: JRSFontSetRenderingStyleOnContext called"); 137 + return NULL; 138 + } 139 + 140 + void* JRSFontStyleIsAntialiased(void) 141 + { 142 + if (verbose) puts("STUB: JRSFontStyleIsAntialiased called"); 143 + return NULL; 144 + } 145 + 146 + void* JRSFontStyleUsesFractionalMetrics(void) 147 + { 148 + if (verbose) puts("STUB: JRSFontStyleUsesFractionalMetrics called"); 149 + return NULL; 150 + } 151 + 152 + void* JRSSetDefaultLocalization(void) 153 + { 154 + if (verbose) puts("STUB: JRSSetDefaultLocalization called"); 155 + return NULL; 156 + } 157 + 158 + void* JRSUIControlCreate(void) 159 + { 160 + if (verbose) puts("STUB: JRSUIControlCreate called"); 161 + return NULL; 162 + } 163 + 164 + void* JRSUIControlDraw(void) 165 + { 166 + if (verbose) puts("STUB: JRSUIControlDraw called"); 167 + return NULL; 168 + } 169 + 170 + void* JRSUIControlGetHitPart(void) 171 + { 172 + if (verbose) puts("STUB: JRSUIControlGetHitPart called"); 173 + return NULL; 174 + } 175 + 176 + void* JRSUIControlGetScrollBarOffsetFor(void) 177 + { 178 + if (verbose) puts("STUB: JRSUIControlGetScrollBarOffsetFor called"); 179 + return NULL; 180 + } 181 + 182 + void* JRSUIControlGetScrollBarPartBounds(void) 183 + { 184 + if (verbose) puts("STUB: JRSUIControlGetScrollBarPartBounds called"); 185 + return NULL; 186 + } 187 + 188 + void* JRSUIControlRelease(void) 189 + { 190 + if (verbose) puts("STUB: JRSUIControlRelease called"); 191 + return NULL; 192 + } 193 + 194 + void* JRSUIControlSetAlignmentHorizontal(void) 195 + { 196 + if (verbose) puts("STUB: JRSUIControlSetAlignmentHorizontal called"); 197 + return NULL; 198 + } 199 + 200 + void* JRSUIControlSetAlignmentVertical(void) 201 + { 202 + if (verbose) puts("STUB: JRSUIControlSetAlignmentVertical called"); 203 + return NULL; 204 + } 205 + 206 + void* JRSUIControlSetAnimating(void) 207 + { 208 + if (verbose) puts("STUB: JRSUIControlSetAnimating called"); 209 + return NULL; 210 + } 211 + 212 + void* JRSUIControlSetDirection(void) 213 + { 214 + if (verbose) puts("STUB: JRSUIControlSetDirection called"); 215 + return NULL; 216 + } 217 + 218 + void* JRSUIControlSetOrientation(void) 219 + { 220 + if (verbose) puts("STUB: JRSUIControlSetOrientation called"); 221 + return NULL; 222 + } 223 + 224 + void* JRSUIControlSetPresentationState(void) 225 + { 226 + if (verbose) puts("STUB: JRSUIControlSetPresentationState called"); 227 + return NULL; 228 + } 229 + 230 + void* JRSUIControlSetScrollBarPart(void) 231 + { 232 + if (verbose) puts("STUB: JRSUIControlSetScrollBarPart called"); 233 + return NULL; 234 + } 235 + 236 + void* JRSUIControlSetSegmentPosition(void) 237 + { 238 + if (verbose) puts("STUB: JRSUIControlSetSegmentPosition called"); 239 + return NULL; 240 + } 241 + 242 + void* JRSUIControlSetShowArrows(void) 243 + { 244 + if (verbose) puts("STUB: JRSUIControlSetShowArrows called"); 245 + return NULL; 246 + } 247 + 248 + void* JRSUIControlSetSize(void) 249 + { 250 + if (verbose) puts("STUB: JRSUIControlSetSize called"); 251 + return NULL; 252 + } 253 + 254 + void* JRSUIControlSetState(void) 255 + { 256 + if (verbose) puts("STUB: JRSUIControlSetState called"); 257 + return NULL; 258 + } 259 + 260 + void* JRSUIControlSetUserInterfaceLayoutDirection(void) 261 + { 262 + if (verbose) puts("STUB: JRSUIControlSetUserInterfaceLayoutDirection called"); 263 + return NULL; 264 + } 265 + 266 + void* JRSUIControlSetValueByKey(void) 267 + { 268 + if (verbose) puts("STUB: JRSUIControlSetValueByKey called"); 269 + return NULL; 270 + } 271 + 272 + void* JRSUIControlSetVariant(void) 273 + { 274 + if (verbose) puts("STUB: JRSUIControlSetVariant called"); 275 + return NULL; 276 + } 277 + 278 + void* JRSUIControlSetWidget(void) 279 + { 280 + if (verbose) puts("STUB: JRSUIControlSetWidget called"); 281 + return NULL; 282 + } 283 + 284 + void* JRSUIControlSetWindowType(void) 285 + { 286 + if (verbose) puts("STUB: JRSUIControlSetWindowType called"); 287 + return NULL; 288 + } 289 + 290 + void* JRSUIControlShouldScrollToClick(void) 291 + { 292 + if (verbose) puts("STUB: JRSUIControlShouldScrollToClick called"); 293 + return NULL; 294 + } 295 + 296 + void* JRSUIGetKey(void) 297 + { 298 + if (verbose) puts("STUB: JRSUIGetKey called"); 299 + return NULL; 300 + } 301 + 302 + void* JRSUIRendererCreate(void) 303 + { 304 + if (verbose) puts("STUB: JRSUIRendererCreate called"); 305 + return NULL; 306 + } 307 + 308 + void* JRSUIRendererRelease(void) 309 + { 310 + if (verbose) puts("STUB: JRSUIRendererRelease called"); 311 + return NULL; 312 + } 313 + 314 + void* do_transfer_port_send_right(void) 315 + { 316 + if (verbose) puts("STUB: do_transfer_port_send_right called"); 317 + return NULL; 318 + } 319 + 320 + void* port_send_right_transfer_server(void) 321 + { 322 + if (verbose) puts("STUB: port_send_right_transfer_server called"); 323 + return NULL; 324 + } 325 + 326 + void* port_send_right_transfer_server_routine(void) 327 + { 328 + if (verbose) puts("STUB: port_send_right_transfer_server_routine called"); 329 + return NULL; 330 + } 331 + 332 + void* transfer_port_send_right(void) 333 + { 334 + if (verbose) puts("STUB: transfer_port_send_right called"); 335 + return NULL; 336 + }
+34
src/frameworks/JavaRuntimeSupport/src/MIGThread.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 + #import <JavaRuntimeSupport/MIGThread.h> 21 + 22 + @implementation MIGThread 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/frameworks/JavaRuntimeSupport/src/_JRSUIRenderer.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 + #import <JavaRuntimeSupport/_JRSUIRenderer.h> 21 + 22 + @implementation _JRSUIRenderer 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end