From c4bc1a8434f2a34840ea6f63064fa998ecfae738 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sat, 17 Jan 2015 18:07:58 +0100 Subject: 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(). --- src/bus-proxyd/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bus-proxyd/driver.h') 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); -- cgit v1.2.3-54-g00ecf