summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-match.c
AgeCommit message (Collapse)Author
2013-12-21bus: when filtering by sender take well known names lest from attached creds ↵Lennart Poettering
into account
2013-12-19driverd: implement AddMatch/RemoveMatch logicLennart Poettering
2013-12-13bus: fix parsing of matches against empty stringsLennart Poettering
2013-11-21bus: rework message handlers to always take an error argumentLennart Poettering
Message handler callbacks can be simplified drastically if the dispatcher automatically replies to method calls if errors are returned. Thus: add an sd_bus_error argument to all message handlers. When we dispatch a message handler and it returns negative or a set sd_bus_error we send this as message error back to the client. This means errors returned by handlers by default are given back to clients instead of rippling all the way up to the event loop, which is desirable to make things robust. As a side-effect we can now easily turn the SELinux checks into normal function calls, since the method call dispatcher will generate the right error replies automatically now. Also, make sure we always pass the error structure to all property and method handlers as last argument to follow the usual style of passing variables for return values as last argument.
2013-10-30bus: fix buildLennart Poettering
2013-10-30bus: make sure we can match well-known namesLennart Poettering
2013-10-13Never call qsort on potentially NULL arraysZbigniew Jędrzejewski-Szmek
This extends 62678ded 'efi: never call qsort on potentially NULL arrays' to all other places where qsort is used and it is not obvious that the count is non-zero.
2013-08-22remove hasprefix(), use startswith()Shawn Landden
2013-06-20Add hasprefix macro to check prefixes of fixed lengthZbigniew Jędrzejewski-Szmek
2013-05-20bus: calculate bloom filter for matchLennart Poettering
Yay! Filtering using kernel bloom filter matches works now! Yippieh!
2013-05-16bus: synthesize timeout message errors instead of returning error codesLennart Poettering
2013-04-14bus: always explicitly rewind read index before passing message to caller or ↵Lennart Poettering
callback
2013-04-14bus: fix counting of argN= matchesLennart Poettering
2013-04-12util: add wrapper for realloc to avoid specyfing typeZbigniew Jędrzejewski-Szmek
2013-04-05bus: properly detect and handle if a callback is installed/removed from ↵Lennart Poettering
within a callback
2013-03-31bus: s/sd_message_handler_t/sd_bus_message_handler_t/gLennart Poettering
2013-03-31bus: parse matches locally and allow registration of callbacks for themLennart Poettering
This includes code to parse and split up match strings which will also be useful to calculate bloom filter masks when the time comes.