Skip to content

Also search for dylibs in case we are on Darwin #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/dpms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use super::xmd::{BOOL, CARD16};
// functions
//

x11_link! { Xext, xext, ["libXext.so.6", "libXext.so"], 9,
x11_link! { Xext, xext, ["libXext.so.6", "libXext.so", "libXext.6.dylib", "libXext.dylib"], 9,
pub fn DPMSQueryExtension (_1: *mut Display, _2: *mut c_int, _3: *mut c_int) -> Bool,
pub fn DPMSGetVersion (_1: *mut Display, _2: *mut c_int, _3: *mut c_int) -> Status,
pub fn DPMSCapable (_1: *mut Display) -> Bool,
Expand Down
2 changes: 1 addition & 1 deletion src/glx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use super::xlib::{Display, XVisualInfo, XID};
// functions
//

x11_link! { Glx, gl, ["libGL.so.1", "libGL.so"], 40,
x11_link! { Glx, gl, ["libGL.so.1", "libGL.so", "libGL.1.dylib", "libGL.dylib"], 40,
pub fn glXChooseFBConfig (_4: *mut Display, _3: c_int, _2: *const c_int, _1: *mut c_int) -> *mut GLXFBConfig,
pub fn glXChooseVisual (_3: *mut Display, _2: c_int, _1: *mut c_int) -> *mut XVisualInfo,
pub fn glXCopyContext (_4: *mut Display, _3: GLXContext, _2: GLXContext, _1: c_ulong) -> (),
Expand Down
2 changes: 1 addition & 1 deletion src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::xlib::{Bool, Display, Drawable, Status, Time, XID};
// functions
//

x11_link! { Xext, xext, ["libXext.so.6", "libXext.so"], 38,
x11_link! { Xext, xext, ["libXext.so.6", "libXext.so", "libXext.6.dylib", "libXext.dylib"], 38,
pub fn XSyncQueryExtension(dpy: *mut Display, event_base: *mut c_int, error_base: *mut c_int) -> Status,
pub fn XSyncInitialize(dpy: *mut Display, major_version: *mut c_int, minor_version: *mut c_int) -> Status,
pub fn XSyncListSystemCounters(dpy: *mut Display, n_counters: *mut c_int) -> *mut XSyncSystemCounter,
Expand Down
2 changes: 1 addition & 1 deletion src/xcursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::xlib::{Cursor, Display, XColor, XImage};
// functions
//

x11_link! { Xcursor, xcursor, ["libXcursor.so.1", "libXcursor.so"], 59,
x11_link! { Xcursor, xcursor, ["libXcursor.so.1", "libXcursor.so", "libXcursor.dylib.1", "libXcursor.dylib", "libXcursor.1.dylib", "libXcursor.dylib"], 59,
pub fn XcursorAnimateCreate (_1: *mut XcursorCursors) -> *mut XcursorAnimate,
pub fn XcursorAnimateDestroy (_1: *mut XcursorAnimate) -> (),
pub fn XcursorAnimateNext (_1: *mut XcursorAnimate) -> c_ulong,
Expand Down
2 changes: 1 addition & 1 deletion src/xf86vmode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use super::xlib::{Bool, Display, Time, Window, XEvent};
// functions
//

x11_link! { Xf86vmode, xxf86vm, ["libXxf86vm.so.1", "libXxf86vm.so"], 22,
x11_link! { Xf86vmode, xxf86vm, ["libXxf86vm.so.1", "libXxf86vm.so", "libXxf86vm.1.dylib", "libXxf86vm.dylib"], 22,
pub fn XF86VidModeAddModeLine (_4: *mut Display, _3: c_int, _2: *mut XF86VidModeModeInfo, _1: *mut XF86VidModeModeInfo) -> c_int,
pub fn XF86VidModeDeleteModeLine (_3: *mut Display, _2: c_int, _1: *mut XF86VidModeModeInfo) -> c_int,
pub fn XF86VidModeGetAllModeLines (_4: *mut Display, _3: c_int, _2: *mut c_int, _1: *mut *mut *mut XF86VidModeModeInfo) -> c_int,
Expand Down
2 changes: 1 addition & 1 deletion src/xfixes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use libc::{c_char, c_int, c_short, c_uint, c_ulong, c_ushort};
// functions
//

x11_link! { Xlib, x11, ["libXfixes.so.3", "libXfixes.so"], 35,
x11_link! { Xlib, x11, ["libXfixes.so.3", "libXfixes.so", "libXfixes.3.dylib", "libXfixes.dylib"], 35,
pub fn XFixesQueryExtension(dpy: *mut Display, event_base: *mut c_int, error_base: *mut c_int) -> Bool,
pub fn XFixesQueryVersion(dpy: *mut Display, major_version: *mut c_int, minor_version: *const c_int) -> Status,
pub fn XFixesVersion() -> c_int,
Expand Down
2 changes: 1 addition & 1 deletion src/xft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub enum FcResult {
// functions
//

x11_link! { Xft, xft, ["libXft.so.2", "libXft.so"], 77,
x11_link! { Xft, xft, ["libXft.so.2", "libXft.so", "libXft.2.dylib", "libXft.dylib"], 77,
pub fn XftCharExists (_2: *mut Display, _1: *mut XftFont, _0: c_uint) -> c_int,
pub fn XftCharFontSpecRender (_7: *mut Display, _6: c_int, _5: c_ulong, _4: c_ulong, _3: c_int, _2: c_int, _1: *const XftCharFontSpec, _0: c_int) -> (),
pub fn XftCharIndex (_2: *mut Display, _1: *mut XftFont, _0: c_uint) -> c_uint,
Expand Down
2 changes: 1 addition & 1 deletion src/xinerama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use super::xlib::{Bool, Display, Drawable, Status, Window, XID};
// functions
//

x11_link! { Xlib, xinerama, ["libXinerama.so.1", "libXinerama.so"], 10,
x11_link! { Xlib, xinerama, ["libXinerama.so.1", "libXinerama.so", "libXinerama.1.dylib", "libXinerama.dylib"], 10,
pub fn XineramaIsActive (dpy: *mut Display) -> Bool,
pub fn XineramaQueryExtension (dpy: *mut Display, event_base: *mut c_int, error_base: *mut c_int) -> Bool,
pub fn XineramaQueryScreens (dpy: *mut Display, number: *mut c_int) -> *mut XineramaScreenInfo,
Expand Down
2 changes: 1 addition & 1 deletion src/xinput.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use super::xlib::{Atom, Display, Time, XEvent, XModifierKeymap, XID};
// functions
//

x11_link! { XInput, xi, ["libXi.so.6", "libXi.so"], 44,
x11_link! { XInput, xi, ["libXi.so.6", "libXi.so", "libXi.6.dylib", "libXi.dylib"], 44,
pub fn XAllowDeviceEvents (_4: *mut Display, _3: *mut XDevice, _2: c_int, _1: c_ulong) -> c_int,
pub fn XChangeDeviceControl (_4: *mut Display, _3: *mut XDevice, _2: c_int, _1: *mut XDeviceControl) -> c_int,
pub fn XChangeDeviceDontPropagateList (_5: *mut Display, _4: c_ulong, _3: c_int, _2: *mut c_ulong, _1: c_int) -> c_int,
Expand Down
2 changes: 1 addition & 1 deletion src/xinput2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn XIMaskIsSet(mask: &[::std::os::raw::c_uchar], event: i32) -> bool {
//
// functions
//
x11_link! { XInput2, xi, ["libXi.so.6", "libXi.so"], 34,
x11_link! { XInput2, xi, ["libXi.so.6", "libXi.so", "libXi.6.dylib", "libXi.dylib"], 34,
pub fn XIAllowEvents (_4: *mut Display, _3: c_int, _2: c_int, _1: c_ulong) -> c_int,
pub fn XIAllowTouchEvents (_5: *mut Display, _4: c_int, _3: c_uint, _2: c_ulong, _1: c_int) -> c_int,
pub fn XIBarrierReleasePointer (_4: *mut Display, _3: c_int, _2: c_ulong, _1: c_uint) -> (),
Expand Down
2 changes: 1 addition & 1 deletion src/xlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub mod xkb {}
// functions
//

x11_link! { Xlib, x11, ["libX11.so.6", "libX11.so"], 767,
x11_link! { Xlib, x11, ["libX11.so.6", "libX11.so", "libX11.6.dylib", "libX11.dylib", "libX11.6.dylib", "libX11.dylib"], 767,
pub fn XActivateScreenSaver (_1: *mut Display) -> c_int,
pub fn XAddConnectionWatch (_3: *mut Display, _2: Option<unsafe extern "C" fn (*mut Display, *mut c_char, c_int, c_int, *mut *mut c_char)>, _1: *mut c_char) -> c_int,
pub fn XAddExtension (_1: *mut Display) -> *mut XExtCodes,
Expand Down
3 changes: 1 addition & 2 deletions src/xlib_xcb.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use super::xlib::Display;
use std::os::raw::c_void;

x11_link! { Xlib_xcb, xlib_xcb, ["libX11-xcb.so.1", "libX11-xcb.so"], 2,
x11_link! { Xlib_xcb, xlib_xcb, ["libX11-xcb.so.1", "libX11-xcb.so", "libX11-xcb.1.dylib", "libX11-xcb.dylib", "libX11-xcb.1.dylib", "libX11-xcb.dylib"], 2,
pub fn XGetXCBConnection(_1: *mut Display) -> *mut xcb_connection_t,
pub fn XSetEventQueueOwner(_1: *mut Display, _2: XEventQueueOwner) -> (),
variadic:
Expand Down
2 changes: 1 addition & 1 deletion src/xmu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use super::xt::{Widget, XtAppContext};
// functions
//

x11_link! { Xmu, xmu, ["libXmu.so.6", "libXmu.so"], 132,
x11_link! { Xmu, xmu, ["libXmu.so.6", "libXmu.so", "libXmu.6.dylib", "libXmu.dylib"], 132,
pub fn XmuAddCloseDisplayHook (_3: *mut Display, _2: Option<unsafe extern "C" fn (*mut Display, *mut c_char) -> c_int>, _1: *mut c_char) -> *mut c_char,
pub fn XmuAddInitializer (_2: Option<unsafe extern "C" fn (XtAppContext, *mut c_char)>, _1: *mut c_char) -> (),
pub fn XmuAllStandardColormaps (_1: *mut Display) -> c_int,
Expand Down
2 changes: 1 addition & 1 deletion src/xpresent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::xrandr::RRCrtc;
// functions
//

x11_link! { Xpresent, xpresent, ["libXpresent.so.1.0.0", "libXpresent.so"], 8,
x11_link! { Xpresent, xpresent, ["libXpresent.so.1.0.0", "libXpresent.so", "libXpresent.1.0.0.dylib", "libXpresent.dylib"], 8,
pub fn XPresentQueryExtension( dpy: *mut Display, major_opcode_return: *mut c_int, event_base_return: *mut c_int, error_base_return: *mut c_int) -> Bool,
pub fn XPresentQueryVersion( dpy: *mut Display, major_version_return: *mut c_int, minor_version_return: *mut c_int ) -> Status,
pub fn XPresentVersion() -> c_int,
Expand Down
2 changes: 1 addition & 1 deletion src/xrandr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use super::xrender::{XFixed, XTransform};
// functions
//

x11_link! { Xrandr, xrandr, ["libXrandr.so.2", "libXrandr.so"], 70,
x11_link! { Xrandr, xrandr, ["libXrandr.so.2", "libXrandr.so", "libXrandr.2.dylib", "libXrandr.dylib", "libXrandr.2.dylib", "libXrandr.dylib"], 70,
pub fn XRRAddOutputMode (dpy: *mut Display, output: RROutput, mode: RRMode) -> (),
pub fn XRRAllocGamma (size: c_int) -> *mut XRRCrtcGamma,
pub fn XRRAllocModeInfo (name: *const c_char, nameLength: c_int) -> *mut XRRModeInfo,
Expand Down
2 changes: 1 addition & 1 deletion src/xrecord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use super::xlib::{Bool, Display, Time, XID};
// functions
//

x11_link! { Xf86vmode, xtst, ["libXtst.so.6", "libXtst.so"], 14,
x11_link! { Xf86vmode, xtst, ["libXtst.so.6", "libXtst.so", "libXtst.6.dylib", "libXtst.dylib"], 14,
pub fn XRecordAllocRange () -> *mut XRecordRange,
pub fn XRecordCreateContext (_6: *mut Display, _5: c_int, _4: *mut c_ulong, _3: c_int, _2: *mut *mut XRecordRange, _1: c_int) -> c_ulong,
pub fn XRecordDisableContext (_2: *mut Display, _1: c_ulong) -> c_int,
Expand Down
2 changes: 1 addition & 1 deletion src/xrender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use super::xlib::{Atom, Bool, Colormap, Cursor, Display, Pixmap, Region, Visual,
// functions
//

x11_link! { Xrender, xrender, ["libXrender.so.1", "libXrender.so"], 44,
x11_link! { Xrender, xrender, ["libXrender.so.1", "libXrender.so", "libXrender.1.dylib", "libXrender.dylib"], 44,
pub fn XRenderAddGlyphs (_7: *mut Display, _6: c_ulong, _5: *const c_ulong, _4: *const XGlyphInfo, _3: c_int, _2: *const c_char, _1: c_int) -> (),
pub fn XRenderAddTraps (_6: *mut Display, _5: c_ulong, _4: c_int, _3: c_int, _2: *const XTrap, _1: c_int) -> (),
pub fn XRenderChangePicture (_4: *mut Display, _3: c_ulong, _2: c_ulong, _1: *const XRenderPictureAttributes) -> (),
Expand Down
2 changes: 1 addition & 1 deletion src/xshm.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::xlib::{Bool, Display, Drawable, Pixmap, Visual, XImage, GC};
use std::os::raw::{c_char, c_int, c_uint, c_ulong};

x11_link! { Xext, xext, ["libXext.so.6", "libXext.so"], 10,
x11_link! { Xext, xext, ["libXext.so.6", "libXext.so", "libXext.6.dylib", "libXext.dylib"], 10,
pub fn XShmQueryExtension(_1: *mut Display) -> Bool,
pub fn XShmGetEventBase(_1: *mut Display) -> c_int,
pub fn XShmQueryVersion(_4: *mut Display, _3: *mut c_int, _2: *mut c_int, _1: *mut Bool) -> Bool,
Expand Down
2 changes: 1 addition & 1 deletion src/xss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::os::raw::{c_int, c_uint, c_ulong};
// functions
//

x11_link! { Xss, xscrnsaver, ["libXss.so.2", "libXss.so"], 11,
x11_link! { Xss, xscrnsaver, ["libXss.so.2", "libXss.so", "libXss.2.dylib", "libXss.dylib"], 11,
pub fn XScreenSaverQueryExtension (_1: *mut Display, _2: *mut c_int, _3: *mut c_int) -> Bool,
pub fn XScreenSaverQueryVersion (_1: *mut Display, _2: *mut c_int, _3: *mut c_int) -> Status,
pub fn XScreenSaverAllocInfo () -> *mut XScreenSaverInfo,
Expand Down
2 changes: 1 addition & 1 deletion src/xt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use super::xlib::{
// functions
//

x11_link! { Xt, xt, ["libXt.so.6", "libXt.so"], 300,
x11_link! { Xt, xt, ["libXt.so.6", "libXt.so", "libXt.6.dylib", "libXt.dylib"], 300,
pub fn XtAddActions (_2: *mut XtActionsRec, _1: c_uint) -> (),
pub fn XtAddCallback (_4: Widget, _3: *const c_char, _2: Option<unsafe extern "C" fn (Widget, *mut c_void, *mut c_void)>, _1: *mut c_void) -> (),
pub fn XtAddCallbacks (_3: Widget, _2: *const c_char, _1: XtCallbackList) -> (),
Expand Down
2 changes: 1 addition & 1 deletion src/xtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use super::xlib::{Display, Visual, GC};
// functions
//

x11_link! { Xf86vmode, xtst, ["libXtst.so.6", "libXtst.so"], 15,
x11_link! { Xf86vmode, xtst, ["libXtst.so.6", "libXtst.so", "libXtst.6.dylib", "libXtst.dylib"], 15,
pub fn XTestCompareCurrentCursorWithWindow (_2: *mut Display, _1: c_ulong) -> c_int,
pub fn XTestCompareCursorWithWindow (_3: *mut Display, _2: c_ulong, _1: c_ulong) -> c_int,
pub fn XTestDiscard (_1: *mut Display) -> c_int,
Expand Down
2 changes: 1 addition & 1 deletion x11-dl/src/old_xrandr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The X11 libraries are available under the MIT license.
// These bindings are public domain.

x11_link! { Xrandr_2_2_0, xrandr, ["libXrandr.so.2.2.0", "libXrandr.so.2", "libXrandr.so"], 65,
x11_link! { Xrandr_2_2_0, xrandr, ["libXrandr.so.2.2.0", "libXrandr.so.2", "libXrandr.so", "libXrandr.2.2.0.dylib", "libXrandr.2.dylib", "libXrandr.dylib"], 65,
pub fn XRRAddOutputMode (dpy: *mut Display, output: RROutput, mode: RRMode) -> (),
pub fn XRRAllocGamma (size: c_int) -> *mut XRRCrtcGamma,
pub fn XRRAllocModeInfo (name: *const c_char, nameLength: c_int) -> *mut XRRModeInfo,
Expand Down