uk.co.caprica.vlcj.binding.LibX11 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vlcj-natives Show documentation
Show all versions of vlcj-natives Show documentation
Native bindings to LibVLC used by the vlcj project.
/*
* This file is part of VLCJ.
*
* VLCJ is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VLCJ is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VLCJ. If not, see .
*
* Copyright 2009-2019 Caprica Software Limited.
*/
package uk.co.caprica.vlcj.binding;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Platform;
/**
* 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
*
*/
public interface LibX11 extends Library {
/**
* Native library instance.
*
* Conceivably Xlib could be present on Windows.
*/
LibX11 INSTANCE = Native.load("X11", LibX11.class);
/**
* Initialise Xlib support for concurrent threads.
*
* Invoking this at the start of an application can reduce the chance of a fatal JVM crash when
* using multiple media players.
*
* @return non-zero on success, zero on failure (or if threading is not supported)
*/
int XInitThreads();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy