Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file drm_server.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181(* This file was generated automatically by wayland-scanner-ocaml *)[@@@ocaml.warning"-27"]openstructmoduleImports=structincludeDrm_protoincludeWayland.Wayland_protoendmoduleProxy=Wayland.ProxymoduleMsg=Wayland.MsgmoduleFixed=Wayland.FixedmoduleIface_reg=Wayland.Iface_regmoduleS=Wayland.SendmoduleWl_drm=structtype'vt=([`Wl_drm],'v,[`Server])Proxy.tmoduleError=Drm_proto.Wl_drm.ErrormoduleFormat=Drm_proto.Wl_drm.FormatmoduleCapability=Drm_proto.Wl_drm.Capability(** {2 Version 1} *)letcapabilities(_t:([<`V1|`V2]as'v)t)~value=let_msg=Proxy.alloc_t~op:3~ints:1~strings:[]~arrays:[]inMsg.add_int_msgvalue;Proxy.send_t_msgletauthenticated(_t:([<`V1|`V2]as'v)t)=let_msg=Proxy.alloc_t~op:2~ints:0~strings:[]~arrays:[]inProxy.send_t_msgletformat(_t:([<`V1|`V2]as'v)t)~format=let_msg=Proxy.alloc_t~op:1~ints:1~strings:[]~arrays:[]inMsg.add_int_msgformat;Proxy.send_t_msgletdevice(_t:([<`V1|`V2]as'v)t)~name=let_msg=Proxy.alloc_t~op:0~ints:1~strings:[(Somename)]~arrays:[]inMsg.add_string_msgname;Proxy.send_t_msg(** {2 Version 2} *)(**/**)classvirtual['v]_handlers_unsafe=object(_self:(_,'v,_)#Proxy.Handler.t)methoduser_data=S.No_datamethodmetadata=(moduleDrm_proto.Wl_drm)methodmax_version=2lmethodprivatevirtualon_authenticate:[>]t->id:int32->unitmethodprivatevirtualon_create_buffer:[>]t->([`Wl_buffer],[`V1],[`Server])Proxy.t->name:int32->width:int32->height:int32->stride:int32->format:int32->unitmethodprivatevirtualon_create_planar_buffer:[>]t->([`Wl_buffer],[`V1],[`Server])Proxy.t->name:int32->width:int32->height:int32->format:int32->offset0:int32->stride0:int32->offset1:int32->stride1:int32->offset2:int32->stride2:int32->unitmethodprivatevirtualon_create_prime_buffer:[>]t->([`Wl_buffer],[`V1],[`Server])Proxy.t->name:Unix.file_descr->width:int32->height:int32->format:int32->offset0:int32->stride0:int32->offset1:int32->stride1:int32->offset2:int32->stride2:int32->unitmethoddispatch(_proxy:'vt)_msg=let_proxy=Proxy.cast_version_proxyinmatchMsg.op_msgwith|0->letid=Msg.get_int_msgin_self#on_authenticate_proxy~id|1->letid:([`Wl_buffer],_,_)Proxy.t=Msg.get_int_msg|>Proxy.Handler.accept_new_proxy(moduleImports.Wl_buffer)inletname=Msg.get_int_msginletwidth=Msg.get_int_msginletheight=Msg.get_int_msginletstride=Msg.get_int_msginletformat=Msg.get_int_msgin_self#on_create_buffer_proxyid~name~width~height~stride~format|2->letid:([`Wl_buffer],_,_)Proxy.t=Msg.get_int_msg|>Proxy.Handler.accept_new_proxy(moduleImports.Wl_buffer)inletname=Msg.get_int_msginletwidth=Msg.get_int_msginletheight=Msg.get_int_msginletformat=Msg.get_int_msginletoffset0=Msg.get_int_msginletstride0=Msg.get_int_msginletoffset1=Msg.get_int_msginletstride1=Msg.get_int_msginletoffset2=Msg.get_int_msginletstride2=Msg.get_int_msgin_self#on_create_planar_buffer_proxyid~name~width~height~format~offset0~stride0~offset1~stride1~offset2~stride2|3->letid:([`Wl_buffer],_,_)Proxy.t=Msg.get_int_msg|>Proxy.Handler.accept_new_proxy(moduleImports.Wl_buffer)inletname=Msg.get_fd_msginletwidth=Msg.get_int_msginletheight=Msg.get_int_msginletformat=Msg.get_int_msginletoffset0=Msg.get_int_msginletstride0=Msg.get_int_msginletoffset1=Msg.get_int_msginletstride1=Msg.get_int_msginletoffset2=Msg.get_int_msginletstride2=Msg.get_int_msgin_self#on_create_prime_buffer_proxyid~name~width~height~format~offset0~stride0~offset1~stride1~offset2~stride2|_->assertfalseend(**/**)(** {2 Handlers}
Note: Servers will always want to use [v1].
*)(** Handler for a proxy with version >= 1. *)classvirtual['v]v1=object(_:(_,'v,_)#Proxy.Service_handler.t)(**/**)inherit[[<`V1|`V2]as'v]_handlers_unsafe(**/**)methodprivatevirtualon_authenticate:[>`V1|`V2]t->id:int32->unitmethodprivatevirtualon_create_buffer:[>`V1|`V2]t->([`Wl_buffer],[`V1],[`Server])Proxy.t->name:int32->width:int32->height:int32->stride:int32->format:int32->unitmethodprivatevirtualon_create_planar_buffer:[>`V1|`V2]t->([`Wl_buffer],[`V1],[`Server])Proxy.t->name:int32->width:int32->height:int32->format:int32->offset0:int32->stride0:int32->offset1:int32->stride1:int32->offset2:int32->stride2:int32->unitmethodprivatevirtualon_create_prime_buffer:[>`V2]t->([`Wl_buffer],[`V1],[`Server])Proxy.t->name:Unix.file_descr->width:int32->height:int32->format:int32->offset0:int32->stride0:int32->offset1:int32->stride1:int32->offset2:int32->stride2:int32->unitmethodmin_version=1lmethodbind_version:[`V1]=`V1end(** Handler for a proxy with version >= 2. *)classvirtual['v]v2=object(_:(_,'v,_)#Proxy.Service_handler.t)(**/**)inherit[[<`V2]as'v]_handlers_unsafe(**/**)methodprivatevirtualon_authenticate:[>`V2]t->id:int32->unitmethodprivatevirtualon_create_buffer:[>`V2]t->([`Wl_buffer],[`V1],[`Server])Proxy.t->name:int32->width:int32->height:int32->stride:int32->format:int32->unitmethodprivatevirtualon_create_planar_buffer:[>`V2]t->([`Wl_buffer],[`V1],[`Server])Proxy.t->name:int32->width:int32->height:int32->format:int32->offset0:int32->stride0:int32->offset1:int32->stride1:int32->offset2:int32->stride2:int32->unitmethodprivatevirtualon_create_prime_buffer:[>`V2]t->([`Wl_buffer],[`V1],[`Server])Proxy.t->name:Unix.file_descr->width:int32->height:int32->format:int32->offset0:int32->stride0:int32->offset1:int32->stride1:int32->offset2:int32->stride2:int32->unitmethodmin_version=2lmethodbind_version:[`V2]=`V2endend