import six import struct import weakref try: from xcffib._ffi import ffi except ImportError: from xcffib.ffi_build import ffi SONAMES = { "Linux": "libxcb.so.1", "Darwin": "libxcb.dylib", } try: lib = ffi.dlopen(SONAMES[platform.system()]) except KeyError: raise NotImplementedError("unsupported platform %s" % platform.system()) __xcb_proto_version__ = 'placeholder' X_PROTOCOL = lib.X_PROTOCOL X_PROTOCOL_REVISION = lib.X_PROTOCOL_REVISION XCB_NONE = lib.XCB_NONE XCB_COPY_FROM_PARENT = lib.XCB_COPY_FROM_PARENT XCB_CURRENT_TIME = lib.XCB_CURRENT_TIME XCB_NO_SYMBOL = lib.XCB_NO_SYMBOL # For xpyb compatibility NONE = XCB_NONE
import weakref try: from xcffib._ffi import ffi except ImportError: from xcffib.ffi_build import ffi if platform.system() == "Darwin": soname = "libxcb.dylib" elif platform.system() == "Windows": soname = "libxcb.dll" else: soname = ctypes.util.find_library("xcb") if soname is None: soname = "libxcb.so" lib = ffi.dlopen(soname) __xcb_proto_version__ = 'placeholder' __version__ = 'placeholder' X_PROTOCOL = lib.X_PROTOCOL X_PROTOCOL_REVISION = lib.X_PROTOCOL_REVISION XCB_NONE = lib.XCB_NONE XCB_COPY_FROM_PARENT = lib.XCB_COPY_FROM_PARENT XCB_CURRENT_TIME = lib.XCB_CURRENT_TIME XCB_NO_SYMBOL = lib.XCB_NO_SYMBOL # For xpyb compatibility NONE = XCB_NONE CopyFromParent = XCB_COPY_FROM_PARENT
# See the License for the specific language governing permissions and # limitations under the License. from __future__ import division, absolute_import import functools import six import struct import weakref try: from xcffib._ffi import ffi except ImportError: from xcffib.ffi_build import ffi lib = ffi.dlopen('libxcb.so.1') __xcb_proto_version__ = 'placeholder' X_PROTOCOL = lib.X_PROTOCOL X_PROTOCOL_REVISION = lib.X_PROTOCOL_REVISION XCB_NONE = lib.XCB_NONE XCB_COPY_FROM_PARENT = lib.XCB_COPY_FROM_PARENT XCB_CURRENT_TIME = lib.XCB_CURRENT_TIME XCB_NO_SYMBOL = lib.XCB_NO_SYMBOL # For xpyb compatibility NONE = XCB_NONE CopyFromParent = XCB_COPY_FROM_PARENT CurrentTime = XCB_CURRENT_TIME
# See the License for the specific language governing permissions and # limitations under the License. from __future__ import division, absolute_import import functools import six import struct import weakref try: from xcffib._ffi import ffi except ImportError: from xcffib.ffi_build import ffi lib = ffi.dlopen('libxcb.so') __xcb_proto_version__ = 'placeholder' X_PROTOCOL = lib.X_PROTOCOL X_PROTOCOL_REVISION = lib.X_PROTOCOL_REVISION XCB_NONE = lib.XCB_NONE XCB_COPY_FROM_PARENT = lib.XCB_COPY_FROM_PARENT XCB_CURRENT_TIME = lib.XCB_CURRENT_TIME XCB_NO_SYMBOL = lib.XCB_NO_SYMBOL # For xpyb compatibility NONE = XCB_NONE CopyFromParent = XCB_COPY_FROM_PARENT CurrentTime = XCB_CURRENT_TIME