Re: Debug a call to method ssa(sv)a(sa(sv)) from libdbus
Thiago Macieira <[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <4996293.f1D3Y8iSi6@tjmaciei-mobl5> |
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.