58 lines
1.5 KiB
C
58 lines
1.5 KiB
C
/**
|
|
* PANDA 3D SOFTWARE
|
|
* Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
*
|
|
* All use of this software is subject to the terms of the revised BSD
|
|
* license. You should have received a copy of this license along
|
|
* with this source code in a file named "LICENSE."
|
|
*
|
|
* @file get_x11.h
|
|
* @author drose
|
|
* @date 2011-08-28
|
|
*/
|
|
|
|
#ifndef GET_X11_H
|
|
#define GET_X11_H
|
|
|
|
#include "pandabase.h"
|
|
|
|
#ifdef HAVE_X11
|
|
// This header file is designed to help work around some of the namespace
|
|
// spamming that X11 causes, by renaming the symbols that X11 declares that
|
|
// are known to conflict with other library names (like Apple's Core Graphics,
|
|
// for instance).
|
|
|
|
// In order for this to work, everyone who uses X11 within Panda should
|
|
// include this file instead of including the X11 headers directly.
|
|
|
|
#ifdef CPPPARSER
|
|
// A simple hack so interrogate can get all of the necessary typenames.
|
|
typedef struct _XDisplay X11_Display;
|
|
typedef unsigned int XID;
|
|
typedef unsigned int Atom;
|
|
typedef unsigned int Cardinal;
|
|
typedef XID Colormap;
|
|
typedef XID X11_Window;
|
|
typedef XID X11_Cursor;
|
|
typedef struct _XIM *XIM;
|
|
typedef struct _XIC *XIC;
|
|
struct XErrorEvent;
|
|
struct XVisualInfo;
|
|
#define Bool int
|
|
#define Status int
|
|
#define True 1
|
|
#define False 0
|
|
#else
|
|
|
|
#include "pre_x11_include.h"
|
|
#include <X11/XKBlib.h>
|
|
#include <X11/Xlib.h>
|
|
#include <X11/Xutil.h>
|
|
#include <X11/keysym.h>
|
|
#include <X11/Xatom.h>
|
|
#include "post_x11_include.h"
|
|
|
|
#endif // CPPPARSER
|
|
#endif // HAVE_X11
|
|
|
|
#endif
|