-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from Shinyzenith/main
[protocol] wlr_export_dmabuf_v1 bindings added.
- Loading branch information
Showing
2 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright (c) 2022 Aakash Sen Sharma | ||
|
||
from pywayland.server import Display, Signal | ||
from wlroots import Ptr, ffi, lib | ||
|
||
|
||
class ExportDmabufManagerV1(Ptr): | ||
def __init__(self, display: Display) -> None: | ||
"""A `struct wlr_export_dmabuf_manager_v1` | ||
:param display: | ||
The wayland display | ||
""" | ||
|
||
self._ptr = lib.wlr_export_dmabuf_manager_v1_create(display._ptr) | ||
self.destroy_event = Signal(ptr=ffi.addressof(self._ptr.events.destroy)) |