-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGModule.java
More file actions
37 lines (26 loc) · 821 Bytes
/
GModule.java
File metadata and controls
37 lines (26 loc) · 821 Bytes
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
package generated;
import org.bridj.BridJ;
import org.bridj.Pointer;
import org.bridj.ann.Library;
import org.bridj.ann.Ptr;
@Library("gmodule-2.0")
public class GModule {
static {
BridJ.register();
}
@Ptr
protected static native long g_module_build_path(
@Ptr
long directory,
@Ptr
long module_name);
public static Pointer module_build_path(Pointer directory, Pointer module_name) {
return Pointer.pointerToAddress(GModule.g_module_build_path(Pointer.getPeer(directory), Pointer.getPeer(module_name)));
}
@Ptr
protected static native long g_module_error();
public static Pointer module_error() {
return Pointer.pointerToAddress(GModule.g_module_error());
}
public static native boolean g_module_supported();
}