summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-match.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-05 03:55:58 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-05 03:55:58 +0200
commit7286037fd438e93137571fa68a741cc894d8e549 (patch)
treef34cbc20ec29ca10e1d866859c0f0289ed14fb72 /src/libsystemd-bus/bus-match.h
parent6807947e56d7d1b40ec4e984a5f631fb6d5a6834 (diff)
bus: properly detect and handle if a callback is installed/removed from within a callback
Diffstat (limited to 'src/libsystemd-bus/bus-match.h')
-rw-r--r--src/libsystemd-bus/bus-match.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-match.h b/src/libsystemd-bus/bus-match.h
index a31c5d67dc..075f1a9e3a 100644
--- a/src/libsystemd-bus/bus-match.h
+++ b/src/libsystemd-bus/bus-match.h
@@ -54,12 +54,13 @@ struct bus_match_node {
union {
struct {
- uint8_t u8;
char *str;
+ uint8_t u8;
} value;
struct {
sd_bus_message_handler_t callback;
void *userdata;
+ unsigned last_iteration;
} leaf;
struct {
/* If this is set, then the child is NULL */