blob: b852e22e053a0f7347d3cfacdcfe9c61908d1b2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef _YAGL_NATIVE_PLATFORM_H_
#define _YAGL_NATIVE_PLATFORM_H_
#include "yagl_export.h"
#include "yagl_native_types.h"
struct yagl_native_display;
struct yagl_native_platform
{
int (*probe)(yagl_os_display /*os_dpy*/);
struct yagl_native_display *(*wrap_display)(yagl_os_display /*os_dpy*/,
int /*enable_drm*/);
};
/*
* Attempts to guess the platform based on 'os_dpy'.
* Returns NULL if unsuccessful.
*/
struct yagl_native_platform *yagl_guess_platform(yagl_os_display os_dpy);
#endif
|