diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2015-01-17 18:07:58 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-01-17 18:27:23 +0100 |
commit | c4bc1a8434f2a34840ea6f63064fa998ecfae738 (patch) | |
tree | c10ae7cfd3864cc74fc83c997baaf45e81215b48 /src/bus-proxyd/driver.h | |
parent | b58d857136496ee463223cd90af46512e9eef152 (diff) |
bus-proxy: share policy between threads
This implements a shared policy cache with read-write locks. We no longer
parse the XML policy in each thread.
This will allow us to easily implement ReloadConfig().
Diffstat (limited to 'src/bus-proxyd/driver.h')
-rw-r--r-- | src/bus-proxyd/driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bus-proxyd/driver.h b/src/bus-proxyd/driver.h index eb7a6e3e50..b8cedf5ce5 100644 --- a/src/bus-proxyd/driver.h +++ b/src/bus-proxyd/driver.h @@ -24,4 +24,4 @@ #include "sd-bus.h" #include "bus-xml-policy.h" -int bus_proxy_process_driver(sd_bus *a, sd_bus *b, sd_bus_message *m, Policy *policy, const struct ucred *ucred, Set *owned_names); +int bus_proxy_process_driver(sd_bus *a, sd_bus *b, sd_bus_message *m, SharedPolicy *sp, const struct ucred *ucred, Set *owned_names); |