Struct in signal

Havoc Pennington havoc.pennington at gmail.com
Wed Feb 18 16:21:49 PST 2009


Hi,

On Wed, Feb 18, 2009 at 1:08 PM, Brenno Freire <brenno.freire at fucapi.br> wrote:
> Got the following error. " arguments to dbus_message_iter_append_basic()
> were incorrect, assertion "dbus_type_is_basic (type)" failed in file
> dbus-message.c line 2241.
> This is normally a bug in some application using the D-Bus library.
>  D-Bus not built with -rdynamic so unable to print a backtrace
> "
> You could guide me?

There is a bug in your application which is that DBUS_TYPE_STRUCT is
not dbus_type_is_basic().
The documentation for dbus_message_iter_append_basic() should explain.
You need to use dbus_message_iter_open_container() to open the struct
then append each struct field individually.

Havoc


More information about the dbus mailing list