<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I've been reading the
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<a
href="http://wayland.freedesktop.org/docs/html/sect-Protocol-Wire-Format.html">http://wayland.freedesktop.org/docs/html/sect-Protocol-Wire-Format.html</a>
and done some testing with the wayland socket.<br>
<br>
From the docs I got the package sender object id, packet size and
opcode.<br>
I also understand the argument formats.<br>
<br>
From looking at the initial packets sent by the server and
correlating with the arguments in wayland.xml <br>
<br>
ObjectID: 1 (interface "wl_registry"?)<br>
Opcode: 1 (event "global"?)<br>
Name: uint<br>
Interface: string<br>
Version: uint<br>
<br>
I'm guessing that these Names are the objectID to be used for
further requests. Am I mixing up object ID and names here or are
they the same?<br>
<br>
What I cannot figure out is how to map a request to an opcode
integer.<br>
global happened to be the first event in the wl_registry interface,
is the order in the xml-file dictating the opcodes?<br>
<br>
Also if there is any better source for this information such as a
specific source code file I'm eager to read it.<br>
<br>
<br>
<br>
<br>
</body>
</html>