From c7b929cab09fc4332e13f3ecaa626e2afb082a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20B?= Date: Thu, 16 Mar 2017 14:47:54 +0100 Subject: Add fakedef (#183) * Add Mir typedefs in fake headers * Add xcb includes to fake includes --- utils/fake_libc_include/_fake_typedefs.h | 18 ++++++++++++++++++ utils/fake_libc_include/mir_toolkit/client_types.h | 2 ++ utils/fake_libc_include/xcb/xcb.h | 2 ++ 3 files changed, 22 insertions(+) create mode 100644 utils/fake_libc_include/mir_toolkit/client_types.h create mode 100644 utils/fake_libc_include/xcb/xcb.h (limited to 'utils') 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" -- cgit v1.2.1