summaryrefslogtreecommitdiff
path: root/src/core/busname.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-03-18 20:54:32 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-18 20:54:32 +0100
commit3f9da416457c4265b8f1179516a32ad1a987ff7d (patch)
treea9a66492e8ae1b0964046190e7253a06aaa65138 /src/core/busname.h
parent63405595065fb60811440680b148261e9ec50704 (diff)
core: add new AcceptFD= setting to .busname units
AcceptFD= defaults to true, thus making sure that by default fd passing is enabled for all activatable names. Since for normal bus connections fd passing is enabled too by default this makes sure fd passing works correctly regardless whether a service is already activated or not. Making this configurable on both busname units and in bus connections is messy, but unavoidable since busnames are established and may queue messages before the connection feature negotiation is done by the service eventually activated. Conversely, feature negotiation on bus connections takes place before the connection acquires its names. Of course, this means developers really should make sure to keep the settings in .busname units in sync with what they later intend to negotiate.
Diffstat (limited to 'src/core/busname.h')
-rw-r--r--src/core/busname.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/busname.h b/src/core/busname.h
index f79f510ea2..7f591974de 100644
--- a/src/core/busname.h
+++ b/src/core/busname.h
@@ -56,6 +56,8 @@ struct BusName {
sd_event_source *event_source;
+ bool accept_fd;
+
LIST_HEAD(BusNamePolicy, policy);
};