#![allow(non_camel_case_types)]
use crate::{c_int, xcb_connection_t, xcb_gcontext_t, xcb_void_cookie_t, xcb_window_t};
pub(crate) const XCB_SHM_SEG_SEPARATOR: u32 = 0;
pub(crate) type xcb_shm_seg_t = u32;
#[rustfmt::skip]
#[link(name = "xcb-shm")]
unsafe extern "C" {
pub(crate) fn xcb_shm_attach_fd(c: *mut xcb_connection_t,
shmseg: xcb_shm_seg_t, shm_fd: c_int, read_only: u8) -> xcb_void_cookie_t;
pub(crate) fn xcb_shm_put_image(c: *mut xcb_connection_t, drawable: xcb_window_t,
gc: xcb_gcontext_t, total_width: u16, total_height: u16, src_x: u16, src_y: u16,
src_width: u16, src_height: u16, dst_x: i16, dst_y: i16, depth: u8, format: u8,
send_event: u8, shmseg: xcb_shm_seg_t, offset: u32) -> xcb_void_cookie_t;
}