mirror of
https://github.com/darlinghq/darling.git
synced 2025-03-03 07:18:35 +00:00
Stub JavaNativeFoundation and JavaRuntimeSupport
This commit is contained in:
parent
cedd1c63f4
commit
05a3f730a1
@ -0,0 +1 @@
|
||||
Versions/A/Frameworks
|
@ -0,0 +1 @@
|
||||
Versions/A/Headers
|
@ -0,0 +1 @@
|
||||
../../../../../../../../../../../../../../../../src/frameworks/JavaNativeFoundation/include/JavaNativeFoundation
|
@ -0,0 +1 @@
|
||||
A
|
@ -0,0 +1 @@
|
||||
Versions/A/Headers
|
@ -0,0 +1 @@
|
||||
../../../../../../../../../../../../../../../../src/frameworks/JavaRuntimeSupport/include/JavaRuntimeSupport
|
@ -0,0 +1 @@
|
||||
A
|
1
framework-include/JavaNativeFoundation
Symbolic link
1
framework-include/JavaNativeFoundation
Symbolic link
@ -0,0 +1 @@
|
||||
../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaNativeFoundation.framework/Headers
|
1
framework-include/JavaRuntimeSupport
Symbolic link
1
framework-include/JavaRuntimeSupport
Symbolic link
@ -0,0 +1 @@
|
||||
../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers
|
@ -29,6 +29,8 @@ add_subdirectory(GameController)
|
||||
add_subdirectory(ImageIO)
|
||||
add_subdirectory(IOBluetooth)
|
||||
add_subdirectory(IOSurface)
|
||||
add_subdirectory(JavaNativeFoundation)
|
||||
add_subdirectory(JavaRuntimeSupport)
|
||||
add_subdirectory(JavaVM)
|
||||
add_subdirectory(LocalAuthentication)
|
||||
add_subdirectory(MapKit)
|
||||
|
34
src/frameworks/JavaNativeFoundation/CMakeLists.txt
Normal file
34
src/frameworks/JavaNativeFoundation/CMakeLists.txt
Normal file
@ -0,0 +1,34 @@
|
||||
project(JavaNativeFoundation)
|
||||
|
||||
set(DYLIB_COMPAT_VERSION "1.0.0")
|
||||
set(DYLIB_CURRENT_VERSION "1.0.0")
|
||||
|
||||
add_framework(JavaNativeFoundation
|
||||
FAT
|
||||
CURRENT_VERSION
|
||||
PARENT "JavaVM"
|
||||
VERSION "A"
|
||||
|
||||
SOURCES
|
||||
src/JavaNativeFoundation.m
|
||||
src/JNFException.m
|
||||
src/JNFTypeCoercer.m
|
||||
src/JNFInternalJavaClassToCoersionHolder.m
|
||||
src/JNFStringCoercion.m
|
||||
src/JNFNumberCoercion.m
|
||||
src/JNFDateCoercion.m
|
||||
src/JNFMapCoercion.m
|
||||
src/JNFListCoercion.m
|
||||
src/JNFSetCoercion.m
|
||||
src/JNFDefaultCoercions.m
|
||||
src/JNFJObjectWrapper.m
|
||||
src/JNFWeakJObjectWrapper.m
|
||||
src/JNFRunLoop.m
|
||||
src/JNFRunnableWrapper.m
|
||||
src/JNFRunnable.m
|
||||
|
||||
DEPENDENCIES
|
||||
system
|
||||
objc
|
||||
Foundation
|
||||
)
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JNFDateCoercion : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JNFDefaultCoercions : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,33 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
extern const char* kOutOfMemoryError;
|
||||
extern const char* kClassNotFoundException;
|
||||
extern const char* kNullPointerException;
|
||||
extern const char* kIllegalAccessException;
|
||||
extern const char* kIllegalArgumentException;
|
||||
extern const char* kNoSuchFieldException;
|
||||
extern const char* kNoSuchMethodException;
|
||||
extern const char* kRuntimeException;
|
||||
|
||||
@interface JNFException : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JNFInternalJavaClassToCoersionHolder : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JNFJObjectWrapper : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JNFListCoercion : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JNFMapCoercion : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JNFNumberCoercion : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,26 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
extern NSString* JNFRunLoopDidStartNotification;
|
||||
|
||||
@interface JNFRunLoop : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JNFRunnable : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JNFRunnableWrapper : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JNFSetCoercion : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JNFStringCoercion : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JNFTypeCoercer : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@protocol JNFTypeCoercion
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JNFWeakJObjectWrapper : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,148 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _JavaNativeFoundation_H_
|
||||
#define _JavaNativeFoundation_H_
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import <JavaNativeFoundation/JNFTypeCoercion.h>
|
||||
#import <JavaNativeFoundation/JNFException.h>
|
||||
#import <JavaNativeFoundation/JNFTypeCoercer.h>
|
||||
#import <JavaNativeFoundation/JNFInternalJavaClassToCoersionHolder.h>
|
||||
#import <JavaNativeFoundation/JNFStringCoercion.h>
|
||||
#import <JavaNativeFoundation/JNFNumberCoercion.h>
|
||||
#import <JavaNativeFoundation/JNFDateCoercion.h>
|
||||
#import <JavaNativeFoundation/JNFMapCoercion.h>
|
||||
#import <JavaNativeFoundation/JNFListCoercion.h>
|
||||
#import <JavaNativeFoundation/JNFSetCoercion.h>
|
||||
#import <JavaNativeFoundation/JNFDefaultCoercions.h>
|
||||
#import <JavaNativeFoundation/JNFJObjectWrapper.h>
|
||||
#import <JavaNativeFoundation/JNFWeakJObjectWrapper.h>
|
||||
#import <JavaNativeFoundation/JNFRunLoop.h>
|
||||
#import <JavaNativeFoundation/JNFRunnableWrapper.h>
|
||||
#import <JavaNativeFoundation/JNFRunnable.h>
|
||||
|
||||
void* JNFAssertionFailure(void);
|
||||
void* JNFAssertionFailureBreak(void);
|
||||
void* JNFCFToJavaBoolean(void);
|
||||
void* JNFCallBooleanMethod(void);
|
||||
void* JNFCallByteMethod(void);
|
||||
void* JNFCallCharMethod(void);
|
||||
void* JNFCallDoubleMethod(void);
|
||||
void* JNFCallFloatMethod(void);
|
||||
void* JNFCallIntMethod(void);
|
||||
void* JNFCallLongMethod(void);
|
||||
void* JNFCallObjectMethod(void);
|
||||
void* JNFCallShortMethod(void);
|
||||
void* JNFCallStaticBooleanMethod(void);
|
||||
void* JNFCallStaticByteMethod(void);
|
||||
void* JNFCallStaticCharMethod(void);
|
||||
void* JNFCallStaticDoubleMethod(void);
|
||||
void* JNFCallStaticFloatMethod(void);
|
||||
void* JNFCallStaticIntMethod(void);
|
||||
void* JNFCallStaticLongMethod(void);
|
||||
void* JNFCallStaticObjectMethod(void);
|
||||
void* JNFCallStaticShortMethod(void);
|
||||
void* JNFCallStaticVoidMethod(void);
|
||||
void* JNFCallVoidMethod(void);
|
||||
void* JNFDebugWarning(void);
|
||||
void* JNFDebugWarningBreak(void);
|
||||
void* JNFDeleteGlobalRef(void);
|
||||
void* JNFDeleteWeakGlobalRef(void);
|
||||
void* JNFDumpJavaObject(void);
|
||||
void* JNFDumpJavaStack(void);
|
||||
void* JNFGetBooleanField(void);
|
||||
void* JNFGetByteField(void);
|
||||
void* JNFGetCharField(void);
|
||||
void* JNFGetDoubleField(void);
|
||||
void* JNFGetFloatField(void);
|
||||
void* JNFGetIntField(void);
|
||||
void* JNFGetLongField(void);
|
||||
void* JNFGetObjectField(void);
|
||||
void* JNFGetShortField(void);
|
||||
void* JNFGetStackTraceAsNSString(void);
|
||||
void* JNFGetStaticBooleanField(void);
|
||||
void* JNFGetStaticByteField(void);
|
||||
void* JNFGetStaticCharField(void);
|
||||
void* JNFGetStaticDoubleField(void);
|
||||
void* JNFGetStaticFloatField(void);
|
||||
void* JNFGetStaticIntField(void);
|
||||
void* JNFGetStaticLongField(void);
|
||||
void* JNFGetStaticObjectField(void);
|
||||
void* JNFGetStaticShortField(void);
|
||||
void* JNFGetStringUTF16UniChars(void);
|
||||
void* JNFGetStringUTF8Chars(void);
|
||||
void* JNFIsInstanceOf(void);
|
||||
void* JNFJavaMillisToNSTimeInterval(void);
|
||||
void* JNFJavaStackTrace(void);
|
||||
void* JNFJavaToCFBoolean(void);
|
||||
void* JNFJavaToNSDate(void);
|
||||
void* JNFJavaToNSNumber(void);
|
||||
void* JNFJavaToNSString(void);
|
||||
void* JNFNSTimeIntervalToJavaMillis(void);
|
||||
void* JNFNSToJavaCalendar(void);
|
||||
void* JNFNSToJavaNumber(void);
|
||||
void* JNFNSToJavaString(void);
|
||||
void* JNFNativeMethodEnter(void);
|
||||
void* JNFNativeMethodExit(void);
|
||||
void* JNFNewBooleanArray(void);
|
||||
void* JNFNewByteArray(void);
|
||||
void* JNFNewCharArray(void);
|
||||
void* JNFNewDoubleArray(void);
|
||||
void* JNFNewFloatArray(void);
|
||||
void* JNFNewGlobalRef(void);
|
||||
void* JNFNewIntArray(void);
|
||||
void* JNFNewLongArray(void);
|
||||
void* JNFNewObject(void);
|
||||
void* JNFNewObjectArray(void);
|
||||
void* JNFNewShortArray(void);
|
||||
void* JNFNewWeakGlobalRef(void);
|
||||
void* JNFNormalizedJavaStringForPath(void);
|
||||
void* JNFNormalizedNSStringForPath(void);
|
||||
void* JNFObjectClassName(void);
|
||||
void* JNFObjectEquals(void);
|
||||
void* JNFObjectToString(void);
|
||||
void* JNFObtainEnv(void);
|
||||
void* JNFPerformEnvBlock(void);
|
||||
void* JNFReleaseEnv(void);
|
||||
void* JNFReleaseStringUTF16UniChars(void);
|
||||
void* JNFReleaseStringUTF8Chars(void);
|
||||
void* JNFSetBooleanField(void);
|
||||
void* JNFSetByteField(void);
|
||||
void* JNFSetCharField(void);
|
||||
void* JNFSetDoubleField(void);
|
||||
void* JNFSetFloatField(void);
|
||||
void* JNFSetIntField(void);
|
||||
void* JNFSetLongField(void);
|
||||
void* JNFSetObjectField(void);
|
||||
void* JNFSetShortField(void);
|
||||
void* JNFSetStaticBooleanField(void);
|
||||
void* JNFSetStaticByteField(void);
|
||||
void* JNFSetStaticCharField(void);
|
||||
void* JNFSetStaticDoubleField(void);
|
||||
void* JNFSetStaticFloatField(void);
|
||||
void* JNFSetStaticIntField(void);
|
||||
void* JNFSetStaticLongField(void);
|
||||
void* JNFSetStaticObjectField(void);
|
||||
void* JNFSetStaticShortField(void);
|
||||
void* JNFSetTracePS(void);
|
||||
|
||||
#endif
|
34
src/frameworks/JavaNativeFoundation/src/JNFDateCoercion.m
Normal file
34
src/frameworks/JavaNativeFoundation/src/JNFDateCoercion.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFDateCoercion.h>
|
||||
|
||||
@implementation JNFDateCoercion
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFDefaultCoercions.h>
|
||||
|
||||
@implementation JNFDefaultCoercions
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
44
src/frameworks/JavaNativeFoundation/src/JNFException.m
Normal file
44
src/frameworks/JavaNativeFoundation/src/JNFException.m
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFException.h>
|
||||
|
||||
// guessed values
|
||||
const char* kOutOfMemoryError = "kOutOfMemoryError";
|
||||
const char* kClassNotFoundException = "kClassNotFoundException";
|
||||
const char* kNullPointerException = "kNullPointerException";
|
||||
const char* kIllegalAccessException = "kIllegalAccessException";
|
||||
const char* kIllegalArgumentException = "kIllegalArgumentException";
|
||||
const char* kNoSuchFieldException = "kNoSuchFieldException";
|
||||
const char* kNoSuchMethodException = "kNoSuchMethodException";
|
||||
const char* kRuntimeException = "kRuntimeException";
|
||||
|
||||
@implementation JNFException
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFInternalJavaClassToCoersionHolder.h>
|
||||
|
||||
@implementation JNFInternalJavaClassToCoersionHolder
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaNativeFoundation/src/JNFJObjectWrapper.m
Normal file
34
src/frameworks/JavaNativeFoundation/src/JNFJObjectWrapper.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFJObjectWrapper.h>
|
||||
|
||||
@implementation JNFJObjectWrapper
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaNativeFoundation/src/JNFListCoercion.m
Normal file
34
src/frameworks/JavaNativeFoundation/src/JNFListCoercion.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFListCoercion.h>
|
||||
|
||||
@implementation JNFListCoercion
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaNativeFoundation/src/JNFMapCoercion.m
Normal file
34
src/frameworks/JavaNativeFoundation/src/JNFMapCoercion.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFMapCoercion.h>
|
||||
|
||||
@implementation JNFMapCoercion
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaNativeFoundation/src/JNFNumberCoercion.m
Normal file
34
src/frameworks/JavaNativeFoundation/src/JNFNumberCoercion.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFNumberCoercion.h>
|
||||
|
||||
@implementation JNFNumberCoercion
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
37
src/frameworks/JavaNativeFoundation/src/JNFRunLoop.m
Normal file
37
src/frameworks/JavaNativeFoundation/src/JNFRunLoop.m
Normal file
@ -0,0 +1,37 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFRunLoop.h>
|
||||
|
||||
// guessed value
|
||||
NSString* JNFRunLoopDidStartNotification = @"JNFRunLoopDidStartNotification";
|
||||
|
||||
@implementation JNFRunLoop
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaNativeFoundation/src/JNFRunnable.m
Normal file
34
src/frameworks/JavaNativeFoundation/src/JNFRunnable.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFRunnable.h>
|
||||
|
||||
@implementation JNFRunnable
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaNativeFoundation/src/JNFRunnableWrapper.m
Normal file
34
src/frameworks/JavaNativeFoundation/src/JNFRunnableWrapper.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFRunnableWrapper.h>
|
||||
|
||||
@implementation JNFRunnableWrapper
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaNativeFoundation/src/JNFSetCoercion.m
Normal file
34
src/frameworks/JavaNativeFoundation/src/JNFSetCoercion.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFSetCoercion.h>
|
||||
|
||||
@implementation JNFSetCoercion
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaNativeFoundation/src/JNFStringCoercion.m
Normal file
34
src/frameworks/JavaNativeFoundation/src/JNFStringCoercion.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFStringCoercion.h>
|
||||
|
||||
@implementation JNFStringCoercion
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaNativeFoundation/src/JNFTypeCoercer.m
Normal file
34
src/frameworks/JavaNativeFoundation/src/JNFTypeCoercer.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFTypeCoercer.h>
|
||||
|
||||
@implementation JNFTypeCoercer
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaNativeFoundation/JNFWeakJObjectWrapper.h>
|
||||
|
||||
@implementation JNFWeakJObjectWrapper
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
654
src/frameworks/JavaNativeFoundation/src/JavaNativeFoundation.m
Normal file
654
src/frameworks/JavaNativeFoundation/src/JavaNativeFoundation.m
Normal file
@ -0,0 +1,654 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include <JavaNativeFoundation/JavaNativeFoundation.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
static int verbose = 0;
|
||||
|
||||
__attribute__((constructor))
|
||||
static void initme(void) {
|
||||
verbose = getenv("STUB_VERBOSE") != NULL;
|
||||
}
|
||||
|
||||
void* JNFAssertionFailure(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFAssertionFailure called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFAssertionFailureBreak(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFAssertionFailureBreak called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCFToJavaBoolean(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCFToJavaBoolean called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallBooleanMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallBooleanMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallByteMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallByteMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallCharMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallCharMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallDoubleMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallDoubleMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallFloatMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallFloatMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallIntMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallIntMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallLongMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallLongMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallObjectMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallObjectMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallShortMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallShortMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallStaticBooleanMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallStaticBooleanMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallStaticByteMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallStaticByteMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallStaticCharMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallStaticCharMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallStaticDoubleMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallStaticDoubleMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallStaticFloatMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallStaticFloatMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallStaticIntMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallStaticIntMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallStaticLongMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallStaticLongMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallStaticObjectMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallStaticObjectMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallStaticShortMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallStaticShortMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallStaticVoidMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallStaticVoidMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFCallVoidMethod(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFCallVoidMethod called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFDebugWarning(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFDebugWarning called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFDebugWarningBreak(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFDebugWarningBreak called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFDeleteGlobalRef(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFDeleteGlobalRef called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFDeleteWeakGlobalRef(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFDeleteWeakGlobalRef called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFDumpJavaObject(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFDumpJavaObject called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFDumpJavaStack(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFDumpJavaStack called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetBooleanField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetBooleanField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetByteField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetByteField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetCharField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetCharField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetDoubleField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetDoubleField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetFloatField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetFloatField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetIntField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetIntField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetLongField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetLongField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetObjectField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetObjectField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetShortField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetShortField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetStackTraceAsNSString(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetStackTraceAsNSString called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetStaticBooleanField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetStaticBooleanField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetStaticByteField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetStaticByteField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetStaticCharField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetStaticCharField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetStaticDoubleField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetStaticDoubleField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetStaticFloatField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetStaticFloatField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetStaticIntField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetStaticIntField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetStaticLongField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetStaticLongField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetStaticObjectField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetStaticObjectField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetStaticShortField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetStaticShortField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetStringUTF16UniChars(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetStringUTF16UniChars called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFGetStringUTF8Chars(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFGetStringUTF8Chars called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFIsInstanceOf(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFIsInstanceOf called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFJavaMillisToNSTimeInterval(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFJavaMillisToNSTimeInterval called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFJavaStackTrace(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFJavaStackTrace called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFJavaToCFBoolean(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFJavaToCFBoolean called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFJavaToNSDate(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFJavaToNSDate called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFJavaToNSNumber(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFJavaToNSNumber called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFJavaToNSString(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFJavaToNSString called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNSTimeIntervalToJavaMillis(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNSTimeIntervalToJavaMillis called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNSToJavaCalendar(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNSToJavaCalendar called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNSToJavaNumber(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNSToJavaNumber called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNSToJavaString(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNSToJavaString called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNativeMethodEnter(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNativeMethodEnter called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNativeMethodExit(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNativeMethodExit called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNewBooleanArray(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNewBooleanArray called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNewByteArray(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNewByteArray called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNewCharArray(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNewCharArray called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNewDoubleArray(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNewDoubleArray called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNewFloatArray(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNewFloatArray called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNewGlobalRef(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNewGlobalRef called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNewIntArray(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNewIntArray called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNewLongArray(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNewLongArray called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNewObject(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNewObject called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNewObjectArray(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNewObjectArray called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNewShortArray(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNewShortArray called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNewWeakGlobalRef(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNewWeakGlobalRef called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNormalizedJavaStringForPath(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNormalizedJavaStringForPath called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFNormalizedNSStringForPath(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFNormalizedNSStringForPath called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFObjectClassName(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFObjectClassName called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFObjectEquals(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFObjectEquals called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFObjectToString(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFObjectToString called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFObtainEnv(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFObtainEnv called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFPerformEnvBlock(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFPerformEnvBlock called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFReleaseEnv(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFReleaseEnv called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFReleaseStringUTF16UniChars(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFReleaseStringUTF16UniChars called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFReleaseStringUTF8Chars(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFReleaseStringUTF8Chars called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetBooleanField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetBooleanField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetByteField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetByteField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetCharField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetCharField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetDoubleField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetDoubleField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetFloatField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetFloatField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetIntField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetIntField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetLongField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetLongField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetObjectField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetObjectField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetShortField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetShortField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetStaticBooleanField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetStaticBooleanField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetStaticByteField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetStaticByteField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetStaticCharField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetStaticCharField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetStaticDoubleField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetStaticDoubleField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetStaticFloatField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetStaticFloatField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetStaticIntField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetStaticIntField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetStaticLongField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetStaticLongField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetStaticObjectField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetStaticObjectField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetStaticShortField(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetStaticShortField called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JNFSetTracePS(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JNFSetTracePS called");
|
||||
return NULL;
|
||||
}
|
29
src/frameworks/JavaRuntimeSupport/CMakeLists.txt
Normal file
29
src/frameworks/JavaRuntimeSupport/CMakeLists.txt
Normal file
@ -0,0 +1,29 @@
|
||||
project(JavaRuntimeSupport)
|
||||
|
||||
set(DYLIB_COMPAT_VERSION "1.0.0")
|
||||
set(DYLIB_CURRENT_VERSION "1.0.0")
|
||||
|
||||
add_framework(JavaRuntimeSupport
|
||||
FAT
|
||||
CURRENT_VERSION
|
||||
PARENT "JavaVM"
|
||||
VERSION "A"
|
||||
|
||||
SOURCES
|
||||
src/JavaRuntimeSupport.m
|
||||
src/JRSDrag.m
|
||||
src/JRSAppKitAWT.m
|
||||
src/JRSMenu.m
|
||||
src/_JRSUIRenderer.m
|
||||
src/JRSInputMethodController.m
|
||||
src/MIGThread.m
|
||||
src/JRSRenderServer.m
|
||||
src/JRSSymbolicator.m
|
||||
src/JRSSymbolicatorImpl.m
|
||||
src/JRSSecurity.m
|
||||
|
||||
DEPENDENCIES
|
||||
system
|
||||
objc
|
||||
Foundation
|
||||
)
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JRSAppKitAWT : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JRSDrag : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JRSInputMethodController : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JRSMenu : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JRSRenderServer : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JRSSecurity : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JRSSymbolicator : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface JRSSymbolicatorImpl : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,89 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _JavaRuntimeSupport_H_
|
||||
#define _JavaRuntimeSupport_H_
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import <JavaRuntimeSupport/JRSDrag.h>
|
||||
#import <JavaRuntimeSupport/JRSAppKitAWT.h>
|
||||
#import <JavaRuntimeSupport/JRSMenu.h>
|
||||
#import <JavaRuntimeSupport/_JRSUIRenderer.h>
|
||||
#import <JavaRuntimeSupport/JRSInputMethodController.h>
|
||||
#import <JavaRuntimeSupport/MIGThread.h>
|
||||
#import <JavaRuntimeSupport/JRSRenderServer.h>
|
||||
#import <JavaRuntimeSupport/JRSSymbolicator.h>
|
||||
#import <JavaRuntimeSupport/JRSSymbolicatorImpl.h>
|
||||
#import <JavaRuntimeSupport/JRSSecurity.h>
|
||||
|
||||
void* CopyCFStringToFilesystemRepresentation(void);
|
||||
void* CopyCFStringToUTF8(void);
|
||||
void* GetHitPart(void);
|
||||
void* GetScrollBarHitPart(void);
|
||||
void* JRSAccessibilityUnregisterUniqueIdForUIElement(void);
|
||||
void* JRSCopyCanonicalLanguageForPrimaryLanguage(void);
|
||||
void* JRSCopyOSJavaSupportVersion(void);
|
||||
void* JRSCopyOSName(void);
|
||||
void* JRSCopyOSVersion(void);
|
||||
void* JRSCopyPrimaryLanguage(void);
|
||||
void* JRSFontAlignStyleForFractionalMeasurement(void);
|
||||
void* JRSFontAlignStyleForIntegerMeasurement(void);
|
||||
void* JRSFontCreateFallbackFontForCharacters(void);
|
||||
void* JRSFontGetAdvancesForGlyphsAndStyle(void);
|
||||
void* JRSFontGetBoundingBoxesForGlyphsAndStyle(void);
|
||||
void* JRSFontGetRenderingStyleForContext(void);
|
||||
void* JRSFontGetRenderingStyleForHints(void);
|
||||
void* JRSFontSetRenderingStyleOnContext(void);
|
||||
void* JRSFontStyleIsAntialiased(void);
|
||||
void* JRSFontStyleUsesFractionalMetrics(void);
|
||||
void* JRSSetDefaultLocalization(void);
|
||||
void* JRSUIControlCreate(void);
|
||||
void* JRSUIControlDraw(void);
|
||||
void* JRSUIControlGetHitPart(void);
|
||||
void* JRSUIControlGetScrollBarOffsetFor(void);
|
||||
void* JRSUIControlGetScrollBarPartBounds(void);
|
||||
void* JRSUIControlRelease(void);
|
||||
void* JRSUIControlSetAlignmentHorizontal(void);
|
||||
void* JRSUIControlSetAlignmentVertical(void);
|
||||
void* JRSUIControlSetAnimating(void);
|
||||
void* JRSUIControlSetDirection(void);
|
||||
void* JRSUIControlSetOrientation(void);
|
||||
void* JRSUIControlSetPresentationState(void);
|
||||
void* JRSUIControlSetScrollBarPart(void);
|
||||
void* JRSUIControlSetSegmentPosition(void);
|
||||
void* JRSUIControlSetShowArrows(void);
|
||||
void* JRSUIControlSetSize(void);
|
||||
void* JRSUIControlSetState(void);
|
||||
void* JRSUIControlSetUserInterfaceLayoutDirection(void);
|
||||
void* JRSUIControlSetValueByKey(void);
|
||||
void* JRSUIControlSetVariant(void);
|
||||
void* JRSUIControlSetWidget(void);
|
||||
void* JRSUIControlSetWindowType(void);
|
||||
void* JRSUIControlShouldScrollToClick(void);
|
||||
void* JRSUIGetKey(void);
|
||||
void* JRSUIRendererCreate(void);
|
||||
void* JRSUIRendererRelease(void);
|
||||
void* do_transfer_port_send_right(void);
|
||||
void* port_send_right_transfer_server(void);
|
||||
void* port_send_right_transfer_server_routine(void);
|
||||
void* transfer_port_send_right(void);
|
||||
|
||||
#endif
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface MIGThread : NSObject
|
||||
|
||||
@end
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
@interface _JRSUIRenderer : NSObject
|
||||
|
||||
@end
|
34
src/frameworks/JavaRuntimeSupport/src/JRSAppKitAWT.m
Normal file
34
src/frameworks/JavaRuntimeSupport/src/JRSAppKitAWT.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaRuntimeSupport/JRSAppKitAWT.h>
|
||||
|
||||
@implementation JRSAppKitAWT
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaRuntimeSupport/src/JRSDrag.m
Normal file
34
src/frameworks/JavaRuntimeSupport/src/JRSDrag.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaRuntimeSupport/JRSDrag.h>
|
||||
|
||||
@implementation JRSDrag
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaRuntimeSupport/JRSInputMethodController.h>
|
||||
|
||||
@implementation JRSInputMethodController
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaRuntimeSupport/src/JRSMenu.m
Normal file
34
src/frameworks/JavaRuntimeSupport/src/JRSMenu.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaRuntimeSupport/JRSMenu.h>
|
||||
|
||||
@implementation JRSMenu
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaRuntimeSupport/src/JRSRenderServer.m
Normal file
34
src/frameworks/JavaRuntimeSupport/src/JRSRenderServer.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaRuntimeSupport/JRSRenderServer.h>
|
||||
|
||||
@implementation JRSRenderServer
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaRuntimeSupport/src/JRSSecurity.m
Normal file
34
src/frameworks/JavaRuntimeSupport/src/JRSSecurity.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaRuntimeSupport/JRSSecurity.h>
|
||||
|
||||
@implementation JRSSecurity
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaRuntimeSupport/src/JRSSymbolicator.m
Normal file
34
src/frameworks/JavaRuntimeSupport/src/JRSSymbolicator.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaRuntimeSupport/JRSSymbolicator.h>
|
||||
|
||||
@implementation JRSSymbolicator
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaRuntimeSupport/src/JRSSymbolicatorImpl.m
Normal file
34
src/frameworks/JavaRuntimeSupport/src/JRSSymbolicatorImpl.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaRuntimeSupport/JRSSymbolicatorImpl.h>
|
||||
|
||||
@implementation JRSSymbolicatorImpl
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
336
src/frameworks/JavaRuntimeSupport/src/JavaRuntimeSupport.m
Normal file
336
src/frameworks/JavaRuntimeSupport/src/JavaRuntimeSupport.m
Normal file
@ -0,0 +1,336 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include <JavaRuntimeSupport/JavaRuntimeSupport.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
static int verbose = 0;
|
||||
|
||||
__attribute__((constructor))
|
||||
static void initme(void) {
|
||||
verbose = getenv("STUB_VERBOSE") != NULL;
|
||||
}
|
||||
|
||||
void* CopyCFStringToFilesystemRepresentation(void)
|
||||
{
|
||||
if (verbose) puts("STUB: CopyCFStringToFilesystemRepresentation called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* CopyCFStringToUTF8(void)
|
||||
{
|
||||
if (verbose) puts("STUB: CopyCFStringToUTF8 called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* GetHitPart(void)
|
||||
{
|
||||
if (verbose) puts("STUB: GetHitPart called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* GetScrollBarHitPart(void)
|
||||
{
|
||||
if (verbose) puts("STUB: GetScrollBarHitPart called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSAccessibilityUnregisterUniqueIdForUIElement(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSAccessibilityUnregisterUniqueIdForUIElement called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSCopyCanonicalLanguageForPrimaryLanguage(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSCopyCanonicalLanguageForPrimaryLanguage called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSCopyOSJavaSupportVersion(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSCopyOSJavaSupportVersion called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSCopyOSName(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSCopyOSName called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSCopyOSVersion(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSCopyOSVersion called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSCopyPrimaryLanguage(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSCopyPrimaryLanguage called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSFontAlignStyleForFractionalMeasurement(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSFontAlignStyleForFractionalMeasurement called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSFontAlignStyleForIntegerMeasurement(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSFontAlignStyleForIntegerMeasurement called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSFontCreateFallbackFontForCharacters(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSFontCreateFallbackFontForCharacters called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSFontGetAdvancesForGlyphsAndStyle(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSFontGetAdvancesForGlyphsAndStyle called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSFontGetBoundingBoxesForGlyphsAndStyle(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSFontGetBoundingBoxesForGlyphsAndStyle called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSFontGetRenderingStyleForContext(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSFontGetRenderingStyleForContext called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSFontGetRenderingStyleForHints(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSFontGetRenderingStyleForHints called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSFontSetRenderingStyleOnContext(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSFontSetRenderingStyleOnContext called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSFontStyleIsAntialiased(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSFontStyleIsAntialiased called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSFontStyleUsesFractionalMetrics(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSFontStyleUsesFractionalMetrics called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSSetDefaultLocalization(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSSetDefaultLocalization called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlCreate(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlCreate called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlDraw(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlDraw called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlGetHitPart(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlGetHitPart called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlGetScrollBarOffsetFor(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlGetScrollBarOffsetFor called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlGetScrollBarPartBounds(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlGetScrollBarPartBounds called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlRelease(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlRelease called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetAlignmentHorizontal(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetAlignmentHorizontal called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetAlignmentVertical(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetAlignmentVertical called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetAnimating(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetAnimating called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetDirection(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetDirection called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetOrientation(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetOrientation called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetPresentationState(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetPresentationState called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetScrollBarPart(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetScrollBarPart called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetSegmentPosition(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetSegmentPosition called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetShowArrows(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetShowArrows called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetSize(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetSize called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetState(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetState called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetUserInterfaceLayoutDirection(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetUserInterfaceLayoutDirection called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetValueByKey(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetValueByKey called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetVariant(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetVariant called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetWidget(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetWidget called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlSetWindowType(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlSetWindowType called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIControlShouldScrollToClick(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIControlShouldScrollToClick called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIGetKey(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIGetKey called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIRendererCreate(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIRendererCreate called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* JRSUIRendererRelease(void)
|
||||
{
|
||||
if (verbose) puts("STUB: JRSUIRendererRelease called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* do_transfer_port_send_right(void)
|
||||
{
|
||||
if (verbose) puts("STUB: do_transfer_port_send_right called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* port_send_right_transfer_server(void)
|
||||
{
|
||||
if (verbose) puts("STUB: port_send_right_transfer_server called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* port_send_right_transfer_server_routine(void)
|
||||
{
|
||||
if (verbose) puts("STUB: port_send_right_transfer_server_routine called");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* transfer_port_send_right(void)
|
||||
{
|
||||
if (verbose) puts("STUB: transfer_port_send_right called");
|
||||
return NULL;
|
||||
}
|
34
src/frameworks/JavaRuntimeSupport/src/MIGThread.m
Normal file
34
src/frameworks/JavaRuntimeSupport/src/MIGThread.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaRuntimeSupport/MIGThread.h>
|
||||
|
||||
@implementation MIGThread
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
34
src/frameworks/JavaRuntimeSupport/src/_JRSUIRenderer.m
Normal file
34
src/frameworks/JavaRuntimeSupport/src/_JRSUIRenderer.m
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
This file is part of Darling.
|
||||
|
||||
Copyright (C) 2021 Lubos Dolezel
|
||||
|
||||
Darling is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Darling is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Darling. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <JavaRuntimeSupport/_JRSUIRenderer.h>
|
||||
|
||||
@implementation _JRSUIRenderer
|
||||
|
||||
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
|
||||
{
|
||||
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
|
||||
}
|
||||
|
||||
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
||||
{
|
||||
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
|
||||
}
|
||||
|
||||
@end
|
Loading…
x
Reference in New Issue
Block a user