-
Notifications
You must be signed in to change notification settings - Fork 63
/
_javabridge_mac.pyx
41 lines (32 loc) · 1.02 KB
/
_javabridge_mac.pyx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
cimport _javabridge_osspecific
cdef extern from "jni.h":
ctypedef long jint
ctypedef unsigned char jboolean
ctypedef struct JNIInvokeInterface_
ctypedef JNIInvokeInterface_ *JavaVM
struct JavaVMOption:
char *optionString
void *extraInfo
ctypedef JavaVMOption JavaVMOption
struct JavaVMInitArgs:
jint version
jint nOptions
JavaVMOption *options
jboolean ignoreUnrecognized
ctypedef JavaVMInitArgs JavaVMInitArgs
cdef extern from "mac_javabridge_utils.h":
int MacStartVM(JavaVM **, JavaVMInitArgs *pVMArgs, char *class_name, char *path_to_libjvm) nogil
void MacStopVM() nogil
void MacRunLoopInit() nogil
void MacRunLoopRun() nogil
void MacRunLoopStop() nogil
void MacRunLoopReset() nogil
int MacIsMainThread() nogil
void MacRunLoopRunInMode(double) nogil
cdef void StopVM(JavaVM *vm) noexcept:
MacStopVM()
#
# Unused stub in Mac
#
cdef int CreateJavaVM(JavaVM **pvm, void **pEnv, void *args) noexcept:
return -1