Hello, everyone,<br><br>I program in Common-Lisp and there is no binding to this library, so I decided to create one! I&#39;ve already started to create bindings for the library with some Lisp abstractions, and when I finish I will create a wrapper to make these bindings look just like it was a built-in Common-Lisp library! But there are somethings I&#39;d like to talk about before starting this second step.<br>
<br>First, I would like not to deal with addresses and to give the user the possibility to disconnect and reconnect, so it seems that the right choice is use dbus_bus_get_private and setting dbus_bus_set_exit_on_disconnect(conn, 0), right? I am asking because the documentation says that the get_private should be avoided because multiple connections are slow but I probably won&#39;t use more than one connection at the same time, so I guess it has no problems to use this function...<br>
<br>Second, dbus supports many types, but Common-Lisp has much more! Common-Lisp also supports optional and endless parameters for functions. So these values:<br>- hash-tables with compose keys (like lists or so)<br>- (heterogeneous) lists (which could be confusing with also heterogeneous arrays)<br>
- symbols and keywords (both are similar enough to be colapsed to the same type in a protocol like this one)<br>- object instances and structures (same as before)<br>- limitless integers<br>- rationals<br>- complex numbers<br>
- functions<br>- pathnames (for portability issues)<br>(perhaps other things that I don&#39;t remember)<br><br>I was thinking that a good idea was to distingüish the result of the method call org.freedesktop.DBus.Introspection.Instrospect for other common-lisps clients (or whoever requests throw DBus this distinct introspection) and for other regular programs. <br>
<br>So, for instance, when sending a list, an array to some regular program it would be transformed into an array before the transmition, while, for common-lisp clients, a list would be sent as &#39;(av)&#39; while an array would be sent as &#39;av&#39;. A rational could have the signature &#39;(ii)&#39; and a complex &#39;((vv))&#39; (since a complex accepts two rationals, two integers or two floats). Endless integers could be sent as strings or arrays but with different notations than regular strings and arrays.<br>
<br>Is sending diferent introspections and method returns to different clients ok or does this violate some rule of the protocol? Or maybe this is not a good practice? Another idea would be to always transmit the same instrospection and let program deal with it (a program in C, for instance, would be obligated to transform, by hand, &#39;(av) into &#39;av&#39;, which is ok to me (C is already confuse anyway) but C or Java programmers might not like to deal with this resolution.<br>
<br>Third, a protocol extension idea: there could be a header option informing something like &quot;oh, whenever you see &#39;(av)&#39; you can transform it into &#39;av&#39; if you like&quot; (an array of struct of two type signatures), to deal with the previous issue in a more portable way. Perhaps another field telling which internal data representation protocol or whatever this message is &quot;encoded&quot; in. What do you think? This could be a not good idea since the protocol supports so many types just to not to have to deals with these issues.<br>
<br>Well, this is it. Sorry for the very long message.<br>Gustavo<br>