<div dir="ltr">Thank you all for the reply!<div><br></div><div>Looking into libxkbcommon source code, I can see I can use xcb_xkb_get_controls* stuff to get what I want. The remaining step to complete my translation to XCB is to build a new XkbControlsRec struct from the data available in xcb_xkb_get_controls_reply() returned struct. Is there a trivial way to do this, or should I do it member to member? Ex:</div><div><br></div><div>ctrls->mk_dflt_btn = get_controls_reply->mouseKeysDfltBtn;</div><div>ctrls->enabled_ctrls = get_controls_reply->enabledControls;</div><div>etc.</div><div><br></div><div>NOTE: In my use case, this XkbControlsRec will be passed to XkbDDXChangeControls(). Looking at this function definition, I can see it only acesses members "enabled_ctrls" and "per_key_repeat" of passed XkbControlsRec argument, so I think it will be enough to copy only these members from xcb_xkb_get_controls_reply() returned struct.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-18 5:02 GMT-03:00 Christian Linhart <span dir="ltr"><<a href="mailto:chris@demorecorder.com" target="_blank">chris@demorecorder.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The XCB protocol definitions for XKB are not finished yet, i.e. they contain bugs and some stuff is missing there.<br>
I have fixed most of that, but not yet submitted my changes.<br>
Reason for not yet submitting:<br>
I wait for my XInput stuff to be integrated in upstream before adding more pending stuff to our review-queue that's already quite long.<br>
<br>
So, you may have to wait until we fix the XKB issues.<br>
You can of course start your work now, but don't be surprised if some of your testcases fail due to errors in the XKB-support of XCB.<br>
<br>
Chris<br>
<span class=""><br>
<br>
On 10/17/14 20:39, Laércio de Sousa wrote:<br>
> Hi there!<br>
><br>
> I'm currently working on a full XCB backend for xf86-video-nested driver. I'm able to translate all Xlib-related code in file xlibclient.c to XCB, except some Xkb related parts which force me to maintain a minimal XCB-Xlib mix.<br>
><br>
> I would like to translate some Xkb functions used in xf86-video-nested to xcb-xkb in order to get rid of Xlib stuff, namely:<br>
><br>
> XkbGetKeyboard()<br>
><br>
> XkbGetControls()<br>
><br>
> XkbApplyMappingChange()<br>
><br>
> XkbDDXChangeControls()<br>
><br>
> XkbCopyDeviceKeymap()<br>
><br>
> Is it currently possible to translate these functions to xcb-xkb? The relevant files in which these functions appear are the following:<br>
><br>
> <a href="http://cgit.freedesktop.org/xorg/driver/xf86-video-nested/tree/src/xlibclient.c" target="_blank">http://cgit.freedesktop.org/xorg/driver/xf86-video-nested/tree/src/xlibclient.c</a><br>
> <a href="http://cgit.freedesktop.org/xorg/driver/xf86-video-nested/tree/src/nested_input.c" target="_blank">http://cgit.freedesktop.org/xorg/driver/xf86-video-nested/tree/src/nested_input.c</a><br>
> --<br>
</span>> *Laércio de Sousa*<br>
> /Orientador de Informática/<br>
> _Escola Municipal "Professor Eulálio Gruppi"_<br>
> /Rua Ismael da Silva Mello, 559, Mogi Moderno/<br>
> /<br>
> /Mogi das Cruzes - SP/<br>
> /CEP 08717-390/<br>
> /<br>
> Telefone: (11) 4726-8313<br>
><br>
><br>
> _______________________________________________<br>
> Xcb mailing list<br>
> <a href="mailto:Xcb@lists.freedesktop.org">Xcb@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/xcb" target="_blank">http://lists.freedesktop.org/mailman/listinfo/xcb</a><br>
<br>
_______________________________________________<br>
Xcb mailing list<br>
<a href="mailto:Xcb@lists.freedesktop.org">Xcb@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/xcb" target="_blank">http://lists.freedesktop.org/mailman/listinfo/xcb</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><b>Laércio de Sousa</b><br></div><div style="text-align:center"><div style="text-align:left"><i>Orientador de Informática</i></div><div style="text-align:left"><u>Escola Municipal "Professor Eulálio Gruppi"</u></div><div style="text-align:left"><i>Rua Ismael da Silva Mello, 559, Mogi Moderno</i></div><i><div style="text-align:left"><i>Mogi das Cruzes - SP</i></div><div style="text-align:left"><i>CEP 08717-390</i></div></i></div><div><span style="font-family:arial;font-size:small">Telefone: (11) 4726-8313</span></div></div>
</div>