Skip to content

Commit

Permalink
Drop Xrandr functions available in 1.5
Browse files Browse the repository at this point in the history
Ubuntu 14.04 LTS ships with Xrandr 1.4.2.
  • Loading branch information
jwilm committed Feb 28, 2016
1 parent 07cb4e2 commit 40f08df
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/xrandr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ x11_link! { Xrandr, ["libXrandr.so.2", "libXrandr.so"],
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,
pub fn XRRAllocateMonitor (dpy: *mut Display, noutput: c_int) -> *mut XRRMonitorInfo,
pub fn XRRChangeOutputProperty (dpy: *mut Display, output: RROutput, property: Atom, type_: Atom, format: c_int, mode: c_int, data: *const c_uchar, nelements: c_int) -> (),
pub fn XRRChangeProviderProperty (dpy: *mut Display, provider: RRProvider, property: Atom, type_: Atom, format: c_int, mode: c_int, data: *const c_uchar, nelements: c_int) -> (),
pub fn XRRConfigCurrentConfiguration (config: *mut XRRScreenConfiguration, rotation: *mut Rotation) -> SizeID,
Expand All @@ -29,15 +28,13 @@ x11_link! { Xrandr, ["libXrandr.so.2", "libXrandr.so"],
pub fn XRRConfigureOutputProperty (dpy: *mut Display, output: RROutput, property: Atom, pending: Bool, range: Bool, num_values: c_int, values: *mut c_long) -> (),
pub fn XRRConfigureProviderProperty (dpy: *mut Display, provider: RRProvider, property: Atom, pending: Bool, range: Bool, num_values: c_int, values: *mut c_long) -> (),
pub fn XRRCreateMode (dpy: *mut Display, window: Window, modeInfo: *mut XRRModeInfo) -> RRMode,
pub fn XRRDeleteMonitor (dpy: *mut Display, window: Window, name: Atom) -> (),
pub fn XRRDeleteOutputMode (dpy: *mut Display, output: RROutput, mode: RRMode) -> (),
pub fn XRRDeleteOutputProperty (dpy: *mut Display, output: RROutput, property: Atom) -> (),
pub fn XRRDeleteProviderProperty (dpy: *mut Display, provider: RRProvider, property: Atom) -> (),
pub fn XRRDestroyMode (dpy: *mut Display, mode: RRMode) -> (),
pub fn XRRFreeCrtcInfo (crtcInfo: *mut XRRCrtcInfo) -> (),
pub fn XRRFreeGamma (gamma: *mut XRRCrtcGamma) -> (),
pub fn XRRFreeModeInfo (modeInfo: *mut XRRModeInfo) -> (),
pub fn XRRFreeMonitors (monitors: *mut XRRMonitorInfo) -> (),
pub fn XRRFreeOutputInfo (outputInfo: *mut XRROutputInfo) -> (),
pub fn XRRFreePanning (panning: *mut XRRPanning) -> (),
pub fn XRRFreeProviderInfo (provider: *mut XRRProviderInfo) -> (),
Expand All @@ -48,7 +45,6 @@ x11_link! { Xrandr, ["libXrandr.so.2", "libXrandr.so"],
pub fn XRRGetCrtcGammaSize (dpy: *mut Display, crtc: RRCrtc) -> c_int,
pub fn XRRGetCrtcInfo (dpy: *mut Display, resources: *mut XRRScreenResources, crtc: RRCrtc) -> *mut XRRCrtcInfo,
pub fn XRRGetCrtcTransform (dpy: *mut Display, crtc: RRCrtc, attributes: *mut *mut XRRCrtcTransformAttributes) -> Status,
pub fn XRRGetMonitors (dpy: *mut Display, window: Window, get_active: Bool, nmonitors: *mut c_int) -> *mut XRRMonitorInfo,
pub fn XRRGetOutputInfo (dpy: *mut Display, resources: *mut XRRScreenResources, output: RROutput) -> *mut XRROutputInfo,
pub fn XRRGetOutputPrimary (dpy: *mut Display, window: Window) -> RROutput,
pub fn XRRGetOutputProperty (dpy: *mut Display, output: RROutput, property: Atom, offset: c_long, length: c_long, _delete: Bool, pending: Bool, req_type: Atom, actual_type: *mut Atom, actual_format: *mut c_int, nitems: *mut c_ulong, bytes_after: *mut c_ulong, prop: *mut *mut c_uchar) -> c_int,
Expand All @@ -73,7 +69,6 @@ x11_link! { Xrandr, ["libXrandr.so.2", "libXrandr.so"],
pub fn XRRSetCrtcConfig (dpy: *mut Display, resources: *mut XRRScreenResources, crtc: RRCrtc, timestamp: Time, x: c_int, y: c_int, mode: RRMode, rotation: Rotation, outputs: *mut RROutput, noutputs: c_int) -> Status,
pub fn XRRSetCrtcGamma (dpy: *mut Display, crtc: RRCrtc, gamma: *mut XRRCrtcGamma) -> (),
pub fn XRRSetCrtcTransform (dpy: *mut Display, crtc: RRCrtc, transform: *mut XTransform, filter: *const c_char, params: *mut XFixed, nparams: c_int) -> (),
pub fn XRRSetMonitor (dpy: *mut Display, window: Window, monitor: *mut XRRMonitorInfo) -> (),
pub fn XRRSetOutputPrimary (dpy: *mut Display, window: Window, output: RROutput) -> (),
pub fn XRRSetPanning (dpy: *mut Display, resources: *mut XRRScreenResources, crtc: RRCrtc, panning: *mut XRRPanning) -> Status,
pub fn XRRSetProviderOffloadSink (dpy: *mut Display, provider: XID, sink_provider: XID) -> c_int,
Expand Down Expand Up @@ -380,19 +375,3 @@ pub struct XRRProviderInfo {
pub associated_capability: *mut c_uint,
pub nameLen: c_int,
}

#[derive(Clone, Copy, PartialEq)]
#[repr(C)]
pub struct XRRMonitorInfo {
pub name: Atom,
pub primary: Bool,
pub automatic: Bool,
pub noutput: c_int,
pub x: c_int,
pub y: c_int,
pub width: c_int,
pub height: c_int,
pub mwidth: c_int,
pub mheight: c_int,
pub outputs: *mut RROutput,
}

0 comments on commit 40f08df

Please sign in to comment.