<div dir="ltr">Well I tried to use the C api, and it works for the most part, but once you start trying to wrangle with pointers, you want to do it the "C++ way", and with a C api, that's difficult. Especially with events and smart pointers. I could try and manage them myself, but I'm not very familiar with it yet, and smart pointers are safer too. <br>


</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 24, 2012 at 3:34 PM, Jeremy Huddleston Sequoia <span dir="ltr"><<a href="mailto:jeremyhu@freedesktop.org" target="_blank">jeremyhu@freedesktop.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What do you see as the main benefit of having a C++ API instead of using the C API in your C++ application?<br>
<div><div class="h5"><br>
On Dec 24, 2012, at 12:28 PM, Micah Nordland <<a href="mailto:mpnordland@gmail.com">mpnordland@gmail.com</a>> wrote:<br>
<br>
> I was under the impression that all of the code in libxcb was generated<br>
> from the xml, but now I'm not so sure. What is generated from the xml, and<br>
> what isn't? I ask this because I'm considering what it would take to create<br>
> a very minimal C++ port of xcb, and I want to know what I have to generate<br>
> from the xml, and what I can do by hand.<br>
><br>
> --<br>
> Praising my Savior all the day long,<br>
> Micah Nordland<br>
</div></div>> _______________________________________________<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Praising my Savior all the day long,<div>Micah Nordland</div>
</div>