Debug a call to method ssa(sv)a(sa(sv)) from libdbus

Thiago Macieira thiago at kde.org
Thu Mar 10 21:06:25 UTC 2022


On Thursday, 10 March 2022 12:33:02 PST Felip Moll wrote:
> > This section of code does not seem to match signature 'ssa(sv)a(sa(sv))'
> > 
> > I'm seeing 'ssauas' and in the array of strings at the end you added an
> > uint32_t instead of a string.
> 
> Have you noticed this call? I haven't detailed the insights of this one in
> the e-mail.
> _dbus_asv_add_fixed_array(...)

That's not a public function, so I glossed over it. I probably misinterpreted 
what it does.

> In fact, according to the StartTransientUnit documentation the last
> 'a(sa(sv))' must be null. That's why I passed a 0.
> Should I instead pass an empty string?

That's not a D-Bus question. What your API requires you to pass is between you 
and your API.

But if your array takes a struct, you have to pass a struct not an integer or 
string.


-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DPG Cloud Engineering





More information about the dbus mailing list