libweston: Introduce an internal linux sync file API

Graphics / Wayland / Weston - Alexandros Frantzis [collabora.com] - 6 February 2019 12:21 EST

Introduce an internal API for dealing with linux sync files, and use it in the codebase to replace ad-hoc sync file management.

The linux_sync_file_is_valid function is not currently used, but will be utilized in upcoming commits to implement the zwp_linux_explicit_synchronization_unstable_v1 protocol.

Changes in v5:
- Meson support.

Changes in v3:
- Use parameter name in function documentation.
- Move kernel UAPI to separate header file.

Changes in v2:- Add function documentation- Remove linux_sync_file_wait()

c0e2f926 libweston: Introduce an internal linux sync file API
Makefile.am | 4 +-
libweston/gl-renderer.c | 34 +--------
.../{weston-sync-file.h => linux-sync-file-uapi.h} | 6 +-
libweston/linux-sync-file.c | 82 ++++++++++++++++++++++
libweston/linux-sync-file.h | 38 ++++++++++
libweston/meson.build | 1 +
6 files changed, 130 insertions(+), 35 deletions(-)

Upstream: cgit.freedesktop.org


  • Share