mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -04:00
Merge branch 'deprecated' into 'master'
api: introduce WLR_DEPRECATED See merge request wlroots/wlroots!4708
This commit is contained in:
commit
b603cf346c
3 changed files with 23 additions and 0 deletions
20
include/wlr/api.h
Normal file
20
include/wlr/api.h
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
#ifndef WLR_API_H
|
||||||
|
#define WLR_API_H
|
||||||
|
|
||||||
|
#ifndef WLR_IMPLEMENTATION
|
||||||
|
|
||||||
|
#if __STDC_VERSION__ >= 202311L
|
||||||
|
#define WLR_DEPRECATED(msg) [[deprecated(msg)]]
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#define WLR_DEPRECATED(msg) __attribute__((deprecated(msg)))
|
||||||
|
#else
|
||||||
|
#define WLR_DEPRECATED(msg)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#define WLR_DEPRECATED(msg)
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
#define WLR_TYPES_WLR_FULLSCREEN_SHELL_V1_H
|
#define WLR_TYPES_WLR_FULLSCREEN_SHELL_V1_H
|
||||||
|
|
||||||
#include <wayland-server-core.h>
|
#include <wayland-server-core.h>
|
||||||
|
#include <wlr/api.h>
|
||||||
#include "fullscreen-shell-unstable-v1-protocol.h"
|
#include "fullscreen-shell-unstable-v1-protocol.h"
|
||||||
|
|
||||||
struct wlr_fullscreen_shell_v1 {
|
struct wlr_fullscreen_shell_v1 {
|
||||||
|
|
@ -36,6 +37,7 @@ struct wlr_fullscreen_shell_v1_present_surface_event {
|
||||||
struct wlr_output *output; // can be NULL
|
struct wlr_output *output; // can be NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
WLR_DEPRECATED("fullscreen-shell support will be removed in the next version")
|
||||||
struct wlr_fullscreen_shell_v1 *wlr_fullscreen_shell_v1_create(
|
struct wlr_fullscreen_shell_v1 *wlr_fullscreen_shell_v1_create(
|
||||||
struct wl_display *display);
|
struct wl_display *display);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ big_endian = target_machine.endian() == 'big'
|
||||||
|
|
||||||
add_project_arguments([
|
add_project_arguments([
|
||||||
'-D_POSIX_C_SOURCE=200809L',
|
'-D_POSIX_C_SOURCE=200809L',
|
||||||
|
'-DWLR_IMPLEMENTATION',
|
||||||
'-DWLR_USE_UNSTABLE',
|
'-DWLR_USE_UNSTABLE',
|
||||||
'-DWLR_PRIVATE=',
|
'-DWLR_PRIVATE=',
|
||||||
'-DWLR_LITTLE_ENDIAN=@0@'.format(little_endian.to_int()),
|
'-DWLR_LITTLE_ENDIAN=@0@'.format(little_endian.to_int()),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue