hayland-0.1.0.1: Haskell bindings for the C Wayland library.

Safe HaskellNone
LanguageHaskell2010

Graphics.Wayland.Scanner

Synopsis

Documentation

generateMethods :: ProtocolSpec -> ServerClient -> Q [Either Dec Dec] Source

generate FFI for a certain side of the API

Either Dec Dec explained: Left dec for internal declarations, Right dec for external declarations (ie. those that should be exposed to the user)

data ServerClient Source

Constructors

Server 
Client 

Instances

type InterfaceName = String Source

wayland-style interface name (e.g. wl_display)

data WLEnum Source

wayland style enum specification (not Prelude)

Constructors

WLEnum 

Fields

enumName :: EnumName
 
enumEntries :: [(String, Int)]
 

Instances

data ArgumentType Source

wayland wire protocol argument type. we can't deal with untyped object/new-id arguments.

Instances

type WLArray = Ptr () Source

readProtocol :: IO ProtocolSpec Source

locate wayland.xml on disk and parse it

newtype CInterface Source

struct wl_interface pointer

Constructors

CInterface (Ptr CInterface)