summaryrefslogtreecommitdiff
path: root/bus/signals.h
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2009-07-09 21:33:24 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2010-11-23 10:57:07 +0000
commit2f7b11158b497e759cd03664b1881f88157a9f1a (patch)
tree5cfcde5e3937910384a1d434c3928516aa8f6269 /bus/signals.h
parent2f618faa2d1fa2f4235c381255fabb6b58557a10 (diff)
downloaddbus-2f7b11158b497e759cd03664b1881f88157a9f1a.tar.gz
Supporting matching argument 0 as a namespace
Rather like "arg0path='/foo/'" matching all object paths starting with "/foo/", this adds support for matching a prefix of a string argument with "arg0namespace='org.freedesktop.Telepathy.Client.'" (for example). This is mostly intended for use with NameOwnerChanged and PropertiesChanged; thus, only matching the 0th argument is permitted. (This also means it could work with the multicast-plus-socket-filters model being considered for DBus-in-the-kernel without having to hash every period-separated prefix of every string argument.)
Diffstat (limited to 'bus/signals.h')
-rw-r--r--bus/signals.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bus/signals.h b/bus/signals.h
index eeb1d2d0..81590b5f 100644
--- a/bus/signals.h
+++ b/bus/signals.h
@@ -59,7 +59,8 @@ dbus_bool_t bus_match_rule_set_path (BusMatchRule *rule,
dbus_bool_t bus_match_rule_set_arg (BusMatchRule *rule,
int arg,
const DBusString *value,
- dbus_bool_t is_path);
+ dbus_bool_t is_path,
+ dbus_bool_t prefix);
BusMatchRule* bus_match_rule_parse (DBusConnection *matches_go_to,
const DBusString *rule_text,