summaryrefslogtreecommitdiff
path: root/bus/signals.h
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2011-03-08 10:32:34 -0500
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-04-07 14:06:05 +0100
commit0980e63aacf52201bdf913e706d8ea0accc22610 (patch)
treefb6315851d768da2851c473495c34d02f86bb8a5 /bus/signals.h
parent36cc4c547cb21d8f754ba4b4ee4c1c4204fd84ce (diff)
downloaddbus-0980e63aacf52201bdf913e706d8ea0accc22610.tar.gz
Add path_prefix match rule
Add a new path_prefix match rule that can be used for efficient implementations of the org.freedesktop.DBus.ObjectManager interface (see bug 34869). https://bugs.freedesktop.org/show_bug.cgi?id=34870 Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'bus/signals.h')
-rw-r--r--bus/signals.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bus/signals.h b/bus/signals.h
index 4702b9e2..0053bd5d 100644
--- a/bus/signals.h
+++ b/bus/signals.h
@@ -37,7 +37,8 @@ typedef enum
BUS_MATCH_SENDER = 1 << 3,
BUS_MATCH_DESTINATION = 1 << 4,
BUS_MATCH_PATH = 1 << 5,
- BUS_MATCH_ARGS = 1 << 6
+ BUS_MATCH_ARGS = 1 << 6,
+ BUS_MATCH_PATH_PREFIX = 1 << 7
} BusMatchFlags;
BusMatchRule* bus_match_rule_new (DBusConnection *matches_go_to);
@@ -56,6 +57,8 @@ dbus_bool_t bus_match_rule_set_destination (BusMatchRule *rule,
const char *destination);
dbus_bool_t bus_match_rule_set_path (BusMatchRule *rule,
const char *path);
+dbus_bool_t bus_match_rule_set_path_prefix (BusMatchRule *rule,
+ const char *path_prefix);
dbus_bool_t bus_match_rule_set_arg (BusMatchRule *rule,
int arg,
const DBusString *value,