1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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,
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,
pub fn XShmPixmapFormat(_1: *mut Display) -> c_int,
pub fn XShmAttach(_2: *mut Display, _1: *mut XshmSegmentInfo) -> Bool,
pub fn XShmDetach(_2: *mut Display, _1: *mut XshmSegmentInfo) -> Bool,
pub fn XShmPutImage(_11: *mut Display, _10: Drawable, _9: GC, _8: *mut XImage, _7: c_int, _6: c_int, _5: c_int, _4: c_int, _3: c_uint, _2: c_uint, _1: Bool) -> Bool,
pub fn XShmGetImage(_6: *mut Display, _5: Drawable, _4: *mut XImage, _3: c_int, _2: c_int, _1: c_uint) -> Bool,
pub fn XShmCreateImage(_8: *mut Display, _7: *mut Visual, _6: c_uint, _5: c_int, _4: *mut c_char, _3: *mut XshmSegmentInfo, _2: c_uint, _1: c_uint) -> *mut XImage,
pub fn XShmCreatePixMap(_7: *mut Display, _6: Drawable, _5: *mut c_char, _4: *mut XshmSegmentInfo, _3: c_uint, _2: c_uint, _1: c_uint) -> Pixmap,
variadic:
globals:
}
pub type ShmSeg = c_ulong;
#[derive(Copy, Clone, Debug, PartialEq)]
#[repr(C)]
pub struct XShmCompletionEvent {
_type: c_int,
serial: c_uint,
send_event: Bool,
diplay: *mut Display,
drawable: *mut Drawable,
major_code: c_int,
minor_code: c_int,
shmseg: ShmSeg,
offset: c_ulong,
}
#[derive(Copy, Clone, Debug, PartialEq)]
#[repr(C)]
pub struct XshmSegmentInfo {
shmseg: ShmSeg,
smid: c_int,
shmaddr: *mut c_char,
readOnly: Bool,
}