diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-04-14 18:18:25 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-04-14 18:38:40 +0100 |
commit | b52ad4a8e118d4ff18bb8e32888ec63e2ab4c5fe (patch) | |
tree | a8950d5a1b5a3dc3c40867010b58b476f636dc62 /dbus/dbus-bus.c | |
parent | 9a28fa6a4efec3e664d4d33a4dd471e021ab85dc (diff) | |
download | dbus-b52ad4a8e118d4ff18bb8e32888ec63e2ab4c5fe.tar.gz |
dbus_bus_add_match: improve error documentation.
It's simply not true that the only possible error is a lack of resources
in the bus.
Diffstat (limited to 'dbus/dbus-bus.c')
-rw-r--r-- | dbus/dbus-bus.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/dbus/dbus-bus.c b/dbus/dbus-bus.c index 8cb82eb8..ea4b1482 100644 --- a/dbus/dbus-bus.c +++ b/dbus/dbus-bus.c @@ -1434,11 +1434,17 @@ send_no_return_values (DBusConnection *connection, * If you pass #NULL for the error, this function will not * block; the match thus won't be added until you flush the * connection, and if there's an error adding the match - * (only possible error is lack of resources in the bus), - * you won't find out about it. + * you won't find out about it. This is generally acceptable, since the + * possible errors (including a lack of resources in the bus, the connection + * having exceeded its quota of active match rules, or the match rule being + * unparseable) are generally unrecoverable. * * If you pass non-#NULL for the error this function will - * block until it gets a reply. + * block until it gets a reply. This may be useful when using match rule keys + * introduced in recent versions of D-Bus, like 'arg0namespace', to allow the + * application to fall back to less efficient match rules supported by older + * versions of the daemon if the running version is not new enough; or when + * using user-supplied rules rather than rules hard-coded at compile time. * * Normal API conventions would have the function return * a boolean value indicating whether the error was set, |