Path: blob/main/gpu_display/src/generated/xlib_generator.sh
5394 views
#!/bin/bash1# Copyright 2019 The ChromiumOS Authors2# Use of this source code is governed by a BSD-style license that can be3# found in the LICENSE file.45cd "${0%/*}"67cat >xlib.rs <<EOF8// Copyright 2019 The ChromiumOS Authors9// Use of this source code is governed by a BSD-style license that can be10// found in the LICENSE file.1112//! Generated using ./xlib_generator.sh1314#![allow(clippy::upper_case_acronyms)]1516#[link(name = "X11")]17extern "C" {}1819#[link(name = "Xext")]20extern "C" {}2122EOF2324bindgen --no-layout-tests --no-derive-debug \25--allowlist-function XAllocSizeHints \26--allowlist-function XBlackPixelOfScreen \27--allowlist-function XClearWindow \28--allowlist-function XCloseDisplay \29--allowlist-function XConnectionNumber \30--allowlist-function XCreateGC \31--allowlist-function XCreateSimpleWindow \32--allowlist-function XDefaultDepthOfScreen \33--allowlist-function XDefaultScreenOfDisplay \34--allowlist-function XDefaultVisualOfScreen \35--allowlist-function XDestroyImage \36--allowlist-function XDestroyWindow \37--allowlist-function XFlush \38--allowlist-function XFree \39--allowlist-function XFreeGC \40--allowlist-function XGetVisualInfo \41--allowlist-function XInternAtom \42--allowlist-function XKeycodeToKeysym \43--allowlist-function XMapRaised \44--allowlist-function XNextEvent \45--allowlist-function XOpenDisplay \46--allowlist-function XPending \47--allowlist-function XRootWindowOfScreen \48--allowlist-function XScreenNumberOfScreen \49--allowlist-function XSelectInput \50--allowlist-function XSetWMNormalHints \51--allowlist-function XSetWMProtocols \52--allowlist-function XShmAttach \53--allowlist-function XShmCreateImage \54--allowlist-function XShmDetach \55--allowlist-function XShmGetEventBase \56--allowlist-function XShmPutImage \57--allowlist-function XShmQueryExtension \58--allowlist-function XStoreName \59--allowlist-var 'XK_.*' \60--allowlist-var ButtonPress \61--allowlist-var ButtonPressMask \62--allowlist-var Button1 \63--allowlist-var Button1Mask \64--allowlist-var ButtonRelease \65--allowlist-var ButtonReleaseMask \66--allowlist-var ClientMessage \67--allowlist-var Expose \68--allowlist-var ExposureMask \69--allowlist-var KeyPress \70--allowlist-var KeyPressMask \71--allowlist-var KeyRelease \72--allowlist-var KeyReleaseMask \73--allowlist-var MotionNotify \74--allowlist-var PMaxSize \75--allowlist-var PMinSize \76--allowlist-var PointerMotionMask \77--allowlist-var ShmCompletion \78--allowlist-var VisualBlueMaskMask \79--allowlist-var VisualDepthMask \80--allowlist-var VisualGreenMaskMask \81--allowlist-var VisualRedMaskMask \82--allowlist-var VisualScreenMask \83--allowlist-var ZPixmap \84--allowlist-type Display \85--allowlist-type GC \86--allowlist-type Screen \87--allowlist-type XShmCompletionEvent \88--allowlist-type ShmSeg \89--allowlist-type Visual \90--allowlist-type Window \91--allowlist-type XVisualInfo \92xlib_wrapper.h >>xlib.rs939495