Limitations in IDL files

Matthew Johnson dbus at matthew.ath.cx
Wed Mar 21 05:11:20 PDT 2007


On Wed, Mar 21, 2007 at 01:05:11PM +0100, jacques GUILLOU wrote:
 
> 
> You don't have to change the struct definition because it's (would be)
> generated for you by the stub generator.
> You also don't have to modify the client code because it uses arg1 and arg2,
> which still exist in the new structure definition. And if arg3 is optional,
> it will just be left empty (or null) and everything will work as before,
> without changing anything in the client. Everything you need is to rebuild
> it (including the stub generation).
> 

The other alternative is to send structs over D-Bus, which is allowed.
Args of type (..)  { eg '(sii)' for a struct of a string and 2 ints }
are structs. The stub generators (as applicable in your language) should
turn them into appropriate definitions.

You cannot just leave things as null, however. D-Bus has no concept of
null, you must send a valid value.

> Of course you can still keep the old method and add a new one but that's not
> as elegant as my proposal, is it ?
> 
It's more likely to work IMHO though

Matt
--
www.matthew.ath.cx
D-Bus Java
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20070321/43d29179/attachment.pgp


More information about the dbus mailing list