1 // Copyright 2020 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef UI_GFX_X_XLIB_H_ 6 #define UI_GFX_X_XLIB_H_ 7 8 extern "C" { 9 int XInitThreads(void); 10 struct _XDisplay* XOpenDisplay(const char*); 11 int XCloseDisplay(struct _XDisplay*); 12 int XFlush(struct _XDisplay*); 13 int XSynchronize(struct _XDisplay*, int); 14 int XSetErrorHandler(int (*)(void*, void*)); 15 } 16 17 #endif // UI_GFX_X_XLIB_H_ 18