[systemd-devel] [RFC][PATCH] bus: Add destination field to sd_bus_message_new_signal() and sd_bus_emit_signal()

Lennart Poettering lennart at poettering.net
Thu Dec 5 06:00:44 PST 2013


On Thu, 05.12.13 13:13, Lukasz Skalski (l.skalski at partner.samsung.com) wrote:

> destination - the unique bus name for the destination for the signal
> or NULL to emit to all listeners.
> 
> This path makes libsystemd-bus API more consistent and similar
> to GDBUS API, for reference:

Hmm, I thought about this for a while. And decided not do that since
setting a destination is certainly the exception not the rule, and a
very seldom exception. And we do cover this by allowing people to create
the message first, then attach the destination to it, and then send it.

In fact I recently went through the API and tried to get rid of all
parameters that I could get rid of, that I felt weren't really
necessary. I am pretty sure I don't want to reverse this...

Sorry, but this really was a concious decision.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list