gitlab-ci: enable sanitizers for the meson builds
[mesa-waffle.git] / src / waffle / core / wcore_display.h
blobb5f1326213e019ccc5096bae0716ae9e989af929
1 // SPDX-FileCopyrightText: Copyright 2012 Intel Corporation
2 // SPDX-License-Identifier: BSD-2-Clause
4 #pragma once
6 #include "c99_compat.h"
7 #include "threads.h"
9 #include "api_object.h"
11 #include "wcore_util.h"
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
17 struct wcore_display;
18 struct wcore_platform;
19 union waffle_native_display;
21 struct wcore_display {
22 struct api_object api;
23 struct wcore_platform *platform;
26 static inline struct waffle_display*
27 waffle_display(struct wcore_display *dpy) {
28 return (struct waffle_display*) dpy;
31 static inline struct wcore_display*
32 wcore_display(struct waffle_display *dpy) {
33 return (struct wcore_display*) dpy;
36 void
37 wcore_display_init(struct wcore_display *self, struct wcore_platform *platform);
39 #ifdef __cplusplus
41 #endif