death / dbus

A D-BUS client library for Common Lisp
BSD 2-Clause "Simplified" License
45 stars 29 forks source link

Defining methods with no return value #22

Closed Ambrevar closed 5 years ago

Ambrevar commented 5 years ago

With D-Bus methods may have no return values (which means in particular that the caller won't be waiting).

I'm wondering how to this with this library. It seems that setting the return-types to () in dbus:define-dbus-method does not work, a condition is raised:

Method handler (NEXT::CORE-OBJECT NEXT::request-resource) returned bad results; expected-signature=NIL, results=(nil).
death commented 5 years ago

NIL is a value. If you want to return no values, use (VALUES).

Ambrevar commented 5 years ago

Makes sense, thanks!