https://github.com/rtbo/wayland-client-d
D bindings to wayland-client library
https://github.com/rtbo/wayland-client-d
Last synced: about 1 year ago
JSON representation
D bindings to wayland-client library
- Host: GitHub
- URL: https://github.com/rtbo/wayland-client-d
- Owner: rtbo
- License: mit
- Created: 2015-08-11T20:11:54.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-02-05T13:30:50.000Z (over 9 years ago)
- Last Synced: 2025-03-25T22:18:49.559Z (about 1 year ago)
- Language: D
- Size: 51.8 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# wayland-client-d
D bindings to wayland-client library.
Project not maintained anymore.
Superseded by the [wayland-d](https://github.com/rtbo/wayland-d.git) project.
D code sample:
```d
module connect;
import wayland.client;
import std.stdio;
int main(string[] args)
{
// with version(Dynamic) of wayland-client-d, no linkage is necessary
// but loadWaylandClient() must be called before any use of the library
// with default version of wayland-client-d, one must link with wayland-client-d
// and initialization is performed automatically
loadWaylandClient();
wl_display *display = wl_display_connect(null);
if (!display) {
stderr.writeln("Can't connect to display");
return 1;
}
writeln("connected to display");
wl_display_disconnect(display);
writeln("disconnected from display");
return 0;
}
```