uk.co.caprica.vlcj.binding
Interface LibX11
- All Superinterfaces:
- com.sun.jna.Library
public interface LibX11
- extends com.sun.jna.Library
JNA interface to the Xlib native library.
The only exposed API is that used to initialise XLib for multi-threaded access.
Usage is simple, at the start of an application:
int result = LibX11.INSTANCE.XInitThreads();
// "result" will be non-zero if the native library call succeeded
Nested classes/interfaces inherited from interface com.sun.jna.Library |
com.sun.jna.Library.Handler |
Fields inherited from interface com.sun.jna.Library |
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER |
Method Summary |
int |
XInitThreads()
Initialise Xlib support for concurrent threads. |
INSTANCE
static final LibX11 INSTANCE
- Native library instance.
Conceivably Xlib could be present on Windows.
XInitThreads
int XInitThreads()
- Initialise Xlib support for concurrent threads.
- Returns:
- non-zero on success, zero on failure (or if threading is not supported)