summaryrefslogtreecommitdiff
path: root/src/bus-proxyd/bus-xml-policy.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-01-17 19:06:34 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2015-01-17 19:06:34 +0100
commit0d620e53360f8d1dd7fd750d26a9b273a6f4fc0b (patch)
tree7f4a9d2c739a95fd201740cc5aa509cedb8dcba6 /src/bus-proxyd/bus-xml-policy.h
parentbae8352c1dedc335b0e0b6ee2066f64b0b483e24 (diff)
bus-proxy: implement org.freedesktop.DBus.ReloadConfig()
Make sure to reload our xml policy configuration if requested via the bus.
Diffstat (limited to 'src/bus-proxyd/bus-xml-policy.h')
-rw-r--r--src/bus-proxyd/bus-xml-policy.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bus-proxyd/bus-xml-policy.h b/src/bus-proxyd/bus-xml-policy.h
index 762cb663a0..9716772e68 100644
--- a/src/bus-proxyd/bus-xml-policy.h
+++ b/src/bus-proxyd/bus-xml-policy.h
@@ -77,6 +77,7 @@ typedef struct Policy {
} Policy;
typedef struct SharedPolicy {
+ char **configuration;
pthread_mutex_t lock;
pthread_rwlock_t rwlock;
Policy buffer;
@@ -122,7 +123,7 @@ PolicyItemClass policy_item_class_from_string(const char *s) _pure_;
int shared_policy_new(SharedPolicy **out);
SharedPolicy *shared_policy_free(SharedPolicy *sp);
-int shared_policy_reload(SharedPolicy *sp, char **configuration);
+int shared_policy_reload(SharedPolicy *sp);
int shared_policy_preload(SharedPolicy *sp, char **configuration);
Policy *shared_policy_acquire(SharedPolicy *sp);
void shared_policy_release(SharedPolicy *sp, Policy *p);