summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJean-Sébastien B <realitix@gmail.com>2017-03-16 14:47:54 +0100
committerEli Bendersky <eliben@users.noreply.github.com>2017-03-16 06:47:54 -0700
commitc7b929cab09fc4332e13f3ecaa626e2afb082a9d (patch)
tree9fa83d39414fcfb2096e0a26e427941e1deaf012 /utils
parentfb237081661f3e6dc918b13bb8c5121ff45caa49 (diff)
downloadpycparser-c7b929cab09fc4332e13f3ecaa626e2afb082a9d.tar.gz
Add fakedef (#183)
* Add Mir typedefs in fake headers * Add xcb includes to fake includes
Diffstat (limited to 'utils')
-rw-r--r--utils/fake_libc_include/_fake_typedefs.h18
-rw-r--r--utils/fake_libc_include/mir_toolkit/client_types.h2
-rw-r--r--utils/fake_libc_include/xcb/xcb.h2
3 files changed, 22 insertions, 0 deletions
diff --git a/utils/fake_libc_include/_fake_typedefs.h b/utils/fake_libc_include/_fake_typedefs.h
index 79406ca..d99c3f5 100644
--- a/utils/fake_libc_include/_fake_typedefs.h
+++ b/utils/fake_libc_include/_fake_typedefs.h
@@ -158,4 +158,22 @@ typedef unsigned long XID;
typedef unsigned long VisualID;
typedef XID Window;
+/* Mir typedefs */
+typedef void* MirEGLNativeWindowType;
+typedef void* MirEGLNativeDisplayType;
+typedef struct MirConnection MirConnection;
+typedef struct MirSurface MirSurface;
+typedef struct MirSurfaceSpec MirSurfaceSpec;
+typedef struct MirScreencast MirScreencast;
+typedef struct MirPromptSession MirPromptSession;
+typedef struct MirBufferStream MirBufferStream;
+typedef struct MirPersistentId MirPersistentId;
+typedef struct MirBlob MirBlob;
+typedef struct MirDisplayConfig MirDisplayConfig;
+
+/* xcb typedefs */
+typedef struct xcb_connection_t xcb_connection_t;
+typedef uint32_t xcb_window_t;
+typedef uint32_t xcb_visualid_t;
+
#endif
diff --git a/utils/fake_libc_include/mir_toolkit/client_types.h b/utils/fake_libc_include/mir_toolkit/client_types.h
new file mode 100644
index 0000000..f952c1d
--- /dev/null
+++ b/utils/fake_libc_include/mir_toolkit/client_types.h
@@ -0,0 +1,2 @@
+#include "_fake_defines.h"
+#include "_fake_typedefs.h"
diff --git a/utils/fake_libc_include/xcb/xcb.h b/utils/fake_libc_include/xcb/xcb.h
new file mode 100644
index 0000000..f952c1d
--- /dev/null
+++ b/utils/fake_libc_include/xcb/xcb.h
@@ -0,0 +1,2 @@
+#include "_fake_defines.h"
+#include "_fake_typedefs.h"