[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [dbus] type errors
From: |
Lluís |
Subject: |
Re: [dbus] type errors |
Date: |
Wed, 05 Dec 2012 12:55:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Michael Albinus writes:
> Lluís <address@hidden> writes:
>>> The following works for me:
>>
>>> (defun ogc:--dbus-get-events (since until force-reload)
>>> "Returns \"sssbxxa{sv}\"."
>>> '("" "Test" "" :boolean nil :int64 63490176000 :int64 63490176001
>>> (:array :signature "{sv}")))
>>
>>> The last entry is an empty argument of type "a{sv}".
>>
>> Ok, now it's not complaining, but still not working.
> Hmm, I haven't installed a calendar client which I could use for
> testing. I run dry tests via "dbus-send ...".
> Which calendar client do you use?
GNOME shell comes with a widget in the (by default, top) bar. Clicking on it
invokes the "GetEvents" method I'm trying to implement.
>> The signature is supposed to be "a(sssbxxa{sv})", but after (quickly) reading
>> the manual I'm unable to return such a structure.
> Try this one:
> (defun ogc:--dbus-get-events (since until force-reload)
> "Returns \"a(sssbxxa{sv})\"."
> '((:array
> (:struct "" "Test1" "" :boolean nil :int64 63490176000 :int64 63490176001
> (:array :signature "{sv}"))
> (:struct "" "Test2" "" :boolean t :int64 63490176002 :int64 63490176003
> (:array :signature "{sv}")))))
Yes, I finally got it working with this same structure.
I'll try to finish the rest and post the code in the org-mode list.
Thanks a lot,
Lluis
--
"And it's much the same thing with knowledge, for whenever you learn
something new, the whole world becomes that much richer."
-- The Princess of Pure Reason, as told by Norton Juster in The Phantom
Tollbooth
- [dbus] type errors, Lluís, 2012/12/03
- Re: [dbus] type errors, Michael Albinus, 2012/12/03
- Re: [dbus] type errors, Lluís, 2012/12/03
- Re: [dbus] type errors, Michael Albinus, 2012/12/03
- Re: [dbus] type errors, Michael Albinus, 2012/12/04
- Broken build with --with-x-toolkit=no?, Dmitry Antipov, 2012/12/04
- Re: Broken build with --with-x-toolkit=no?, Eli Zaretskii, 2012/12/04
- Re: Broken build with --with-x-toolkit=no?, Paul Eggert, 2012/12/04
- Re: [dbus] type errors, Lluís, 2012/12/04
- Re: [dbus] type errors, Michael Albinus, 2012/12/05
- Re: [dbus] type errors,
Lluís <=