Skip to content

rtbo/wayland-client-d

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

wayland-client-d

D bindings to wayland-client library.

Project not maintained anymore. Superseded by the wayland-d project.

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

About

D bindings to wayland-client library

Resources

License

Stars

Watchers

Forks

Packages

No packages published