Skip to content

Commit

Permalink
Update JNI signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
CedNaru committed Oct 12, 2024
1 parent 3ce3d80 commit c13c5f6
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -691,14 +691,14 @@
"name" : "godot.runtime.Bootstrap",
"methods" : [
{ "name" : "<init>", "parameterTypes" : [] },
{ "name" : "loadClasses", "parameterTypes" : ["godot.core.KtClass[]"] },
{ "name" : "loadClasses", "parameterTypes" : ["godot.registration.KtClass[]"] },
{ "name" : "registerManagedEngineTypes", "parameterTypes" : ["java.lang.String[]", "java.lang.String[]"] },
{ "name" : "init", "parameterTypes": ["java.lang.String", "java.lang.String", "java.lang.ClassLoader"]},
{ "name" : "finish", "parameterTypes" : [] }
]
},
{
"name":"godot.core.KtClass",
"name":"godot.registration.KtClass",
"methods":[
{"name":"getRelativeSourcePath","parameterTypes":[] },
{"name":"getCompilationTimeRelativeRegistrationFilePath","parameterTypes":[] },
Expand All @@ -714,7 +714,7 @@
]
},
{
"name": "godot.core.KtConstructor",
"name": "godot.registration.KtConstructor",
"methods": [
{"name": "getParameterCount", "parameterTypes": []},
{"name": "construct", "parameterTypes": ["long", "long"]}
Expand All @@ -729,7 +729,7 @@
]
},
{
"name":"godot.core.KtFunction",
"name":"godot.registration.KtFunction",
"methods":[
{"name":"getFunctionInfo","parameterTypes":[] },
{"name":"getParameterCount","parameterTypes":[] },
Expand All @@ -738,7 +738,7 @@
]
},
{
"name":"godot.core.KtFunctionInfo",
"name":"godot.registration.KtFunctionInfo",
"methods":[
{"name":"getArguments","parameterTypes":[] },
{"name":"getName","parameterTypes":[] },
Expand All @@ -747,15 +747,15 @@
]
},
{
"name":"godot.core.KtProperty",
"name":"godot.registration.KtProperty",
"methods":[
{"name":"getKtPropertyInfo","parameterTypes":[] },
{"name":"callGet","parameterTypes":["godot.core.KtObject"] },
{"name":"callSet","parameterTypes":["godot.core.KtObject"] }
]
},
{
"name":"godot.core.KtPropertyInfo",
"name":"godot.registration.KtPropertyInfo",
"methods":[
{"name":"getClassName","parameterTypes":[] },
{"name":"getHint","parameterTypes":[] },
Expand All @@ -766,14 +766,14 @@
]
},
{
"name":"godot.core.KtSignalInfo",
"name":"godot.registration.KtSignalInfo",
"methods":[
{"name":"getArguments","parameterTypes":[] },
{"name":"getName","parameterTypes":[] }
]
},
{
"name":"godot.core.KtRpcConfig",
"name":"godot.registration.KtRpcConfig",
"methods":[
{"name":"getRpcModeId","parameterTypes":[] },
{"name":"getRpcCallLocal","parameterTypes":[] },
Expand Down
2 changes: 1 addition & 1 deletion src/jvm_wrapper/bootstrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ JVM_INSTANCE_WRAPPER(Bootstrap, "godot.runtime.Bootstrap") {
INIT_JNI_BINDINGS(
INIT_JNI_METHOD(INIT, "init", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)V")
INIT_JNI_METHOD(FINISH, "finish", "()V")
INIT_NATIVE_METHOD("loadClasses", "([Lgodot/core/KtClass;)V", Bootstrap::load_classes)
INIT_NATIVE_METHOD("loadClasses", "([Lgodot/registration/KtClass;)V", Bootstrap::load_classes)
INIT_NATIVE_METHOD("registerManagedEngineTypes", "([Ljava/lang/String;[Ljava/lang/String;)V", Bootstrap::register_engine_type)
)
// clang-format on
Expand Down
10 changes: 5 additions & 5 deletions src/jvm_wrapper/registration/kt_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

const int MAX_CONSTRUCTOR_SIZE = MAX_CONSTRUCTOR_ARG_COUNT + 1;

JVM_INSTANCE_WRAPPER(KtClass, "godot.core.KtClass") {
JVM_INSTANCE_WRAPPER(KtClass, "godot.registration.KtClass") {
JVM_CLASS(KtClass)

// clang-format off
Expand All @@ -34,10 +34,10 @@ JVM_INSTANCE_WRAPPER(KtClass, "godot.core.KtClass") {
INIT_JNI_METHOD(GET_COMPILATION_TIME_RELATIVE_REGISTRATION_FILE_PATH, "getCompilationTimeRelativeRegistrationFilePath", "()Ljava/lang/String;")
INIT_JNI_METHOD(GET_REGISTERED_SUPERTYPES, "getRegisteredSupertypes", "()[Ljava/lang/String;")
INIT_JNI_METHOD(GET_BASE_GODOT_CLASS, "getBaseGodotClass", "()Ljava/lang/String;")
INIT_JNI_METHOD(GET_FUNCTIONS, "getFunctions", "()[Lgodot/core/KtFunction;")
INIT_JNI_METHOD(GET_PROPERTIES, "getProperties", "()[Lgodot/core/KtProperty;")
INIT_JNI_METHOD(GET_SIGNAL_INFOS, "getSignalInfos", "()[Lgodot/core/KtSignalInfo;")
INIT_JNI_METHOD(GET_CONSTRUCTORS, "getConstructors", "()[Lgodot/core/KtConstructor;")
INIT_JNI_METHOD(GET_FUNCTIONS, "getFunctions", "()[Lgodot/registration/KtFunction;")
INIT_JNI_METHOD(GET_PROPERTIES, "getProperties", "()[Lgodot/registration/KtProperty;")
INIT_JNI_METHOD(GET_SIGNAL_INFOS, "getSignalInfos", "()[Lgodot/registration/KtSignalInfo;")
INIT_JNI_METHOD(GET_CONSTRUCTORS, "getConstructors", "()[Lgodot/registration/KtConstructor;")
INIT_JNI_METHOD(GET_HAS_NOTIFICATION, "getHasNotification", "()Z")
INIT_JNI_METHOD(DO_NOTIFICATION, "doNotification", "(Lgodot/core/KtObject;)V")
)
Expand Down
2 changes: 1 addition & 1 deletion src/jvm_wrapper/registration/kt_constructor.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "jvm_wrapper/jvm_instance_wrapper.h"
#include "kt_object.h"

JVM_INSTANCE_WRAPPER(KtConstructor, "godot.core.KtConstructor") {
JVM_INSTANCE_WRAPPER(KtConstructor, "godot.registration.KtConstructor") {
JVM_CLASS(KtConstructor)

// clang-format off
Expand Down
12 changes: 6 additions & 6 deletions src/jvm_wrapper/registration/kt_function.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "kt_property.h"
#include "kt_rpc_config.h"

JVM_INSTANCE_WRAPPER(KtFunctionInfo, "godot.core.KtFunctionInfo") {
JVM_INSTANCE_WRAPPER(KtFunctionInfo, "godot.registration.KtFunctionInfo") {
JVM_CLASS(KtFunctionInfo)

// clang-format off
Expand All @@ -17,9 +17,9 @@ JVM_INSTANCE_WRAPPER(KtFunctionInfo, "godot.core.KtFunctionInfo") {

INIT_JNI_BINDINGS(
INIT_JNI_METHOD(GET_NAME, "getName", "()Ljava/lang/String;")
INIT_JNI_METHOD(GET_ARGUMENTS, "getArguments", "()[Lgodot/core/KtPropertyInfo;")
INIT_JNI_METHOD(GET_RETURN_VAL, "getReturnVal", "()Lgodot/core/KtPropertyInfo;")
INIT_JNI_METHOD(GET_RPC_CONFIG, "getRpcConfig", "()Lgodot/core/KtRpcConfig;")
INIT_JNI_METHOD(GET_ARGUMENTS, "getArguments", "()[Lgodot/registration/KtPropertyInfo;")
INIT_JNI_METHOD(GET_RETURN_VAL, "getReturnVal", "()Lgodot/registration/KtPropertyInfo;")
INIT_JNI_METHOD(GET_RPC_CONFIG, "getRpcConfig", "()Lgodot/registration/KtRpcConfig;")
)

// clang-format on
Expand All @@ -35,7 +35,7 @@ JVM_INSTANCE_WRAPPER(KtFunctionInfo, "godot.core.KtFunctionInfo") {
MethodInfo to_method_info() const;
};

JVM_INSTANCE_WRAPPER(KtFunction, "godot.core.KtFunction") {
JVM_INSTANCE_WRAPPER(KtFunction, "godot.registration.KtFunction") {
JVM_CLASS(KtFunction)

// clang-format off
Expand All @@ -45,7 +45,7 @@ JVM_INSTANCE_WRAPPER(KtFunction, "godot.core.KtFunction") {
JNI_OBJECT_METHOD(INVOKE_WITH_RETURN)

INIT_JNI_BINDINGS(
INIT_JNI_METHOD(GET_FUNCTION_INFO, "getFunctionInfo", "()Lgodot/core/KtFunctionInfo;")
INIT_JNI_METHOD(GET_FUNCTION_INFO, "getFunctionInfo", "()Lgodot/registration/KtFunctionInfo;")
INIT_JNI_METHOD(GET_PARAMETER_COUNT, "getParameterCount", "()I")
INIT_JNI_METHOD(INVOKE, "invoke", "(Lgodot/core/KtObject;)V")
INIT_JNI_METHOD(INVOKE_WITH_RETURN, "invokeWithReturn", "(Lgodot/core/KtObject;)Ljava/lang/Object;")
Expand Down
6 changes: 3 additions & 3 deletions src/jvm_wrapper/registration/kt_property.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "jvm_wrapper/jvm_instance_wrapper.h"
#include "kt_object.h"

JVM_INSTANCE_WRAPPER(KtPropertyInfo, "godot.core.KtPropertyInfo") {
JVM_INSTANCE_WRAPPER(KtPropertyInfo, "godot.registration.KtPropertyInfo") {
JVM_CLASS(KtPropertyInfo)

// clang-format off
Expand Down Expand Up @@ -43,7 +43,7 @@ JVM_INSTANCE_WRAPPER(KtPropertyInfo, "godot.core.KtPropertyInfo") {

};

JVM_INSTANCE_WRAPPER(KtProperty, "godot.core.KtProperty") {
JVM_INSTANCE_WRAPPER(KtProperty, "godot.registration.KtProperty") {
JVM_CLASS(KtProperty)

// clang-format off
Expand All @@ -52,7 +52,7 @@ JVM_INSTANCE_WRAPPER(KtProperty, "godot.core.KtProperty") {
JNI_VOID_METHOD(CALL_SET)

INIT_JNI_BINDINGS(
INIT_JNI_METHOD(GET_KT_PROPERTY_INFO, "getKtPropertyInfo", "()Lgodot/core/KtPropertyInfo;")
INIT_JNI_METHOD(GET_KT_PROPERTY_INFO, "getKtPropertyInfo", "()Lgodot/registration/KtPropertyInfo;")
INIT_JNI_METHOD(CALL_GET, "callGet", "(Lgodot/core/KtObject;)V")
INIT_JNI_METHOD(CALL_SET, "callSet", "(Lgodot/core/KtObject;)V")
)
Expand Down
2 changes: 1 addition & 1 deletion src/jvm_wrapper/registration/kt_rpc_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "jvm_wrapper/jvm_instance_wrapper.h"
#include "scene/main/multiplayer_api.h"

JVM_INSTANCE_WRAPPER(KtRpcConfig, "godot.core.KtRpcConfig") {
JVM_INSTANCE_WRAPPER(KtRpcConfig, "godot.registration.KtRpcConfig") {
JVM_CLASS(KtRpcConfig)

// clang-format off
Expand Down
4 changes: 2 additions & 2 deletions src/jvm_wrapper/registration/kt_signal_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "jvm_wrapper/jvm_instance_wrapper.h"
#include "kt_property.h"

JVM_INSTANCE_WRAPPER(KtSignalInfo, "godot.core.KtSignalInfo") {
JVM_INSTANCE_WRAPPER(KtSignalInfo, "godot.registration.KtSignalInfo") {
JVM_CLASS(KtSignalInfo)

// clang-format off
Expand All @@ -14,7 +14,7 @@ JVM_INSTANCE_WRAPPER(KtSignalInfo, "godot.core.KtSignalInfo") {

INIT_JNI_BINDINGS(
INIT_JNI_METHOD(GET_NAME, "getName", "()Ljava/lang/String;")
INIT_JNI_METHOD(GET_ARGUMENTS, "getArguments", "()[Lgodot/core/KtPropertyInfo;")
INIT_JNI_METHOD(GET_ARGUMENTS, "getArguments", "()[Lgodot/registration/KtPropertyInfo;")
)
// clang-format on

Expand Down

0 comments on commit c13c5f6

Please sign in to comment.