mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
17 lines
319 B
C
17 lines
319 B
C
#ifndef DISPLAY_H
|
|
#define DISPLAY_H
|
|
|
|
#include <stdbool.h>
|
|
#include <xcb/xcb.h>
|
|
#include <xcb/xcb_ewmh.h>
|
|
|
|
struct Display {
|
|
xcb_connection_t *c;
|
|
xcb_screen_t *screen;
|
|
};
|
|
|
|
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
|
#define STRING(x) sizeof(x) - 1, (x)
|
|
#define ARRAY(x) sizeof(x), (x)
|
|
|
|
#endif // DISPLAY_H
|