forked from clj-python/libpython-clj
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCFunction.java
More file actions
75 lines (55 loc) · 2.02 KB
/
CFunction.java
File metadata and controls
75 lines (55 loc) · 2.02 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package libpython_clj.jna;
import com.sun.jna.*;
public class CFunction {
public static interface KeyWordFunction extends Callback {
Pointer pyinvoke(Pointer self, Pointer tuple_args, Pointer kw_args);
}
public static interface TupleFunction extends Callback {
Pointer pyinvoke(Pointer self, Pointer tuple_args);
}
public static interface NoArgFunction extends Callback {
Pointer pyinvoke(Pointer self);
}
public static interface tp_new extends Callback {
Pointer pyinvoke(PyTypeObject type, Pointer args, Pointer kwds);
}
public static interface tp_init extends Callback {
Pointer pyinvoke(Pointer self, Pointer tuple_args, Pointer kw_args);
}
public static interface tp_dealloc extends Callback {
void pyinvoke(Pointer self);
}
public static interface tp_free extends Callback {
void pyinvoke(Pointer item);
}
public static interface tp_att_getter extends Callback {
Pointer pyinvoke(Pointer self, Pointer closure);
}
public static interface tp_att_setter extends Callback {
Pointer pyinvoke(Pointer self, Pointer value, Pointer closure);
}
public static interface tp_getattr extends Callback {
Pointer pyinvoke(Pointer self, String attr_name);
}
public static interface tp_setattr extends Callback {
int pyinvoke(Pointer self, String attr_name, Pointer val);
}
public static interface tp_getattro extends Callback {
Pointer pyinvoke(Pointer self, Pointer attr_name);
}
public static interface tp_setattro extends Callback {
int pyinvoke(Pointer self, Pointer attr_name, Pointer val);
}
public static interface tp_richcompare extends Callback {
Pointer pyinvoke(Pointer self, Pointer other, int comp_type);
}
public static interface tp_hash extends Callback {
long pyinvoke(Pointer self );
}
public static interface bf_getbuffer extends Callback {
int pyinvoke(Pointer self, PyBuffer item, int flags);
}
public static interface bf_releasebuffer extends Callback {
void pyinvoke(Pointer self, PyBuffer item);
}
}