From 539930f228d9dda1fe3462e5a6d913061dc6a652 Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Thu, 8 Aug 2024 18:47:02 +0200 Subject: finish implementing wayland server api --- wayland/Wayland/Server.hs | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) (limited to 'wayland/Wayland/Server.hs') diff --git a/wayland/Wayland/Server.hs b/wayland/Wayland/Server.hs index 61486b0..07fc3d7 100644 --- a/wayland/Wayland/Server.hs +++ b/wayland/Wayland/Server.hs @@ -7,23 +7,40 @@ module Wayland.Server DisplayM , withDisplay , bindSocket - , -- * Processing Requests - Request(..) - , RequestHandler - , fromRequest - , processRequests + , -- * Handling Messages + MessageClass + , Message(..) + , MessageHandler + , fromMessage + , processMessages , requestTermination - , -- * Managing Objects + , -- * Objects Global , registerGlobal + , hideGlobal , unregisterGlobal , createObject , destroyObject , sendEvent , flushEvents - , -- * Event Sources - EventSource - , registerSignalEvent + , -- * Clients + Client + , ClientMessage(..) + , destroyClient + , flushClientEvents + , -- * Message Sources + SignalSource + , TimerSource + , FileSource + , FileEventMask(..) + , registerSignalSource + , unregisterSignalSource + , registerTimerSource + , setTimerSource + , unregisterTimerSource + , registerFileSource + , updateFileSourceMask + , unregisterFileSource , -- * Interface Descriptions InterfaceDesc(..) , MessageDesc(..) @@ -42,3 +59,5 @@ module Wayland.Server import Wayland.Server.Interface import Wayland.Server.Object import Wayland.Server.Display +import Wayland.Server.Client +import Wayland.Server.Types -- cgit v1.3.1