-
Notifications
You must be signed in to change notification settings - Fork 1
/
direntLibrary.java
121 lines (120 loc) · 6.38 KB
/
direntLibrary.java
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package nativeandroid.dirent.jnaerated;
import org.bridj.BridJ;
import org.bridj.Callback;
import org.bridj.Pointer;
import org.bridj.ann.Library;
import org.bridj.ann.Runtime;
import org.bridj.cpp.CPPRuntime;
/**
* Wrapper for library <b>nativeandroid.dirent</b><br>
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool written by <a href="http://ochafik.free.fr/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
* For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> or <a href="http://bridj.googlecode.com/">BridJ</a> .
*/
@Library("c")
@Runtime(CPPRuntime.class)
public class direntLibrary {
static {
BridJ.register();
}
/// <i>native declaration : /usr/include/features.h</i>
public static final int _SVID_SOURCE = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_XOPEN2K = (int)1;
/// <i>native declaration : /usr/include/bits/wchar.h</i>
public static final int __WCHAR_MAX = (int)(2147483647);
/// <i>native declaration : /usr/include/features.h</i>
public static final int __GLIBC_MINOR__ = (int)13;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __GLIBC_HAVE_LONG_LONG = (int)1;
public static final int DT_DIR = (int)4;
/// <i>native declaration : /usr/include/features.h</i>
public static final int _BSD_SOURCE = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_POSIX = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_SVID = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_ISOC99 = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_ISOC95 = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int _FEATURES_H = (int)1;
/// <i>native declaration : /usr/include/bits/wordsize.h</i>
public static final int __WORDSIZE = (int)64;
public static final int DT_FIFO = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_POSIX2 = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int _POSIX_SOURCE = (int)1;
/// <i>native declaration : /usr/include/bits/predefs.h</i>
public static final int __STDC_IEC_559__ = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_XOPEN2K8 = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_ATFILE = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __GLIBC__ = (int)2;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_FORTIFY_LEVEL = (int)0;
public static final int DT_BLK = (int)6;
/// <i>native declaration : /usr/include/bits/wchar.h</i>
public static final int _BITS_WCHAR_H = (int)1;
public static final int DT_CHR = (int)2;
public static final int DT_WHT = (int)14;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __STDC_ISO_10646__ = (int)200009;
/// <i>native declaration : /usr/include/sys/cdefs.h</i>
public static final int _SYS_CDEFS_H = (int)1;
/// <i>native declaration : /usr/include/bits/predefs.h</i>
public static final int __STDC_IEC_559_COMPLEX__ = (int)1;
/// <i>native declaration : /usr/include/stdint.h</i>
public static final int _STDINT_H = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_POSIX199309 = (int)1;
public static final int DT_REG = (int)8;
public static final int DT_UNKNOWN = (int)0;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_POSIX199506 = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_POSIX_IMPLICITLY = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_BSD = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_MISC = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int _ATFILE_SOURCE = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __GNU_LIBRARY__ = (int)6;
/// <i>native declaration : /usr/include/features.h</i>
public static final int __USE_ANSI = (int)1;
public static final int DT_SOCK = (int)12;
public static final int DT_LNK = (int)10;
/// <i>native declaration : /usr/include/bits/wordsize.h</i>
public static final int __WORDSIZE_COMPAT32 = (int)1;
/// <i>native declaration : /usr/include/features.h</i>
public static final int _POSIX_C_SOURCE = (int)200809;
/// <i>native declaration : /usr/include/bits/wchar.h</i>
public static final int __WCHAR_MIN = (int)(direntLibrary.__WCHAR_MAX - 1);
/// <i>native declaration : /usr/include/sys/cdefs.h:0</i>
public static abstract class scandir_arg1_filter_callback extends Callback<scandir_arg1_filter_callback > {
public abstract int apply(Pointer<dirent > direntPtr1);
};
/// <i>native declaration : /usr/include/sys/cdefs.h:0</i>
public static abstract class scandir_arg2_compar_callback extends Callback<scandir_arg2_compar_callback > {
public abstract int apply(Pointer<Pointer<dirent > > direntPtrPtr1, Pointer<Pointer<dirent > > direntPtrPtr2);
};
public static native int getdents(int int1, Pointer<dirent > direntPtr1, int int2);
public static native Pointer<direntLibrary.DIR > opendir(Pointer<Byte > dirpath);
public static native Pointer<direntLibrary.DIR > fdopendir(int fd);
public static native Pointer<dirent > readdir(Pointer<direntLibrary.DIR > dirp);
public static native int readdir_r(Pointer<direntLibrary.DIR > dirp, Pointer<dirent > entry, Pointer<Pointer<dirent > > result);
public static native int closedir(Pointer<direntLibrary.DIR > dirp);
public static native void rewinddir(Pointer<direntLibrary.DIR > dirp);
public static native int dirfd(Pointer<direntLibrary.DIR > dirp);
public static native int alphasort(Pointer<? > a, Pointer<? > b);
public static native int scandir(Pointer<Byte > dir, Pointer<Pointer<Pointer<dirent > > > namelist, Pointer<direntLibrary.scandir_arg1_filter_callback > arg1, Pointer<direntLibrary.scandir_arg2_compar_callback > arg2);
/// Undefined type
public static interface DIR {
};
}