also looking at this
feat(android): the reply channel, so async actions become reachable
#152
5 files
+464
-0
| @@ -775,6 +775,13 @@ pub const Jni = struct { | ||
| 775 | 775 | return result; |
| 776 | 776 | } |
| 777 | 777 | |
| 778 | pub fn callStaticVoidMethodA(self: Self, cls: jclass, id: jmethodID, args: []const jvalue) JniError!void { | |
| 779 | const call: *const fn (JNIEnv, jclass, jmethodID, [*]const jvalue) callconv(.c) void = | |
| 780 | @ptrCast(self.table().CallStaticVoidMethodA orelse return JniError.NotFound); | |
| 781 | call(self.env, cls, id, args.ptr); | |
| 782 | try self.check(); | |
| 783 | } | |
| 784 | ||
| 778 | 785 | pub fn callStaticIntMethodA(self: Self, cls: jclass, id: jmethodID, args: []const jvalue) JniError!jint { |
| 779 | 786 | const call: *const fn (JNIEnv, jclass, jmethodID, [*]const jvalue) callconv(.c) jint = |
| 780 | 787 | @ptrCast(self.table().CallStaticIntMethodA orelse return JniError.NotFound); |