forked from LeeKamentsky/python-javabridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_javabridge_nomac.pxd
38 lines (24 loc) · 938 Bytes
/
_javabridge_nomac.pxd
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
cdef extern from "jni.h":
ctypedef long jint
ctypedef unsigned char jboolean
ctypedef struct JNIInvokeInterface_
ctypedef JNIInvokeInterface_ *JavaVM
struct JavaVMInitArgs:
jint version
jint nOptions
JavaVMOption *options
jboolean ignoreUnrecognized
ctypedef JavaVMInitArgs JavaVMInitArgs
struct JavaVMOption:
char *optionString
void *extraInfo
ctypedef JavaVMOption JavaVMOption
cdef extern int MacStartVM(JavaVM **pvm, JavaVMInitArgs *pVMArgs, char *class_name) nogil
cdef extern void StopVM(JavaVM *vm) nogil
cdef extern int CreateJavaVM(JavaVM **pvm, void **pEnv, void *args) nogil
cdef extern void MacRunLoopInit() nogil
cdef extern void MacRunLoopRun() nogil
cdef extern void MacRunLoopStop() nogil
cdef extern void MacRunLoopReset() nogil
cdef extern int MacIsMainThread() nogil
cdef extern void MacRunLoopRunInMode(double timeout) nogil