wayland-client-d 1.8.90

Wayland bindings for D.


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

D bindings to wayland-client library

D code sample

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;
}

Authors:
  • remi.thebault
Dependencies:
none
Versions:
1.8.90 2015-Aug-20
~master 2017-Feb-05
Show all 2 versions
Download Stats:
  • 1 downloads today

  • 2 downloads this week

  • 3 downloads this month

  • 2381 downloads total

Score:
1.4
Short URL:
wayland-client-d.dub.pm