Test current state of things, which actually doesn't crash!
[ldk-java] / src / main / jni / bindings.c
index 1edd94344500677394c1a742f24f780d0dd755f0..d88ef8f7723f710cce06731d4d87175d0e78f4aa 100644 (file)
@@ -5,6 +5,10 @@
 #include <string.h>
 #include <stdatomic.h>
 
+JNIEXPORT jlong JNICALL Java_org_ldk_impl_bindings_LDKSecretKey_1new(JNIEnv * _env, jclass _b) {
+       LDKSecretKey* key = (LDKSecretKey*)malloc(sizeof(LDKSecretKey));
+       return (long)key;
+}
 typedef struct LDKMessageSendEventsProvider_JCalls {
        atomic_size_t refcnt;
        JNIEnv *env;