package wayland
Module Proxy.HandlerSource
An ('a, 'v) t handles incoming messages for an object of type 'a. Typically, a constructor will let the user pick from a range of versions for 'v, which will then be constrained by the spawn call.
If the version rules turn out to be too restrictive, this can be used to disable them. Using this incorrectly may lead to a protocol error (such as receiving an event for which no handler was registered).
Source
val accept_new :
(_, 'v, [< `Client | `Server ] as 'role) proxy ->
(module Metadata.S with type t = 'a) ->
int32 ->
('a, 'v, 'role) proxyaccept_new parent id registers a new object, with an ID allocated by the peer. The resulting proxy is in a half-initialised state. You must call attach on it before switching threads or doing anything else with it.