Skip to content

Commit

Permalink
Add fakedef (#183)
Browse files Browse the repository at this point in the history
* Add Mir typedefs in fake headers

* Add xcb includes to fake includes
  • Loading branch information
realitix authored and eliben committed Mar 16, 2017
1 parent fb23708 commit c7b929c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions utils/fake_libc_include/_fake_typedefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions utils/fake_libc_include/mir_toolkit/client_types.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "_fake_defines.h"
#include "_fake_typedefs.h"
2 changes: 2 additions & 0 deletions utils/fake_libc_include/xcb/xcb.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "_fake_defines.h"
#include "_fake_typedefs.h"

0 comments on commit c7b929c

Please sign in to comment.