diff options
author | Daniel Mack <zonque@gmail.com> | 2014-03-05 09:00:48 +0100 |
---|---|---|
committer | Daniel Mack <zonque@gmail.com> | 2014-03-07 19:43:51 +0100 |
commit | 56a52dc830c44770e478013f263cd2605f37c957 (patch) | |
tree | 0765c1e37f7a4862429203b04f9bb582045d3231 | |
parent | 84c962f6f65915a2a23d6197826d47a4767c3192 (diff) | |
download | kdbus-bus-56a52dc830c44770e478013f263cd2605f37c957.tar.gz kdbus-bus-56a52dc830c44770e478013f263cd2605f37c957.tar.bz2 kdbus-bus-56a52dc830c44770e478013f263cd2605f37c957.zip |
policy: store owner as void*
This way, an entry can be owned by both a connection and an endpoint.
-rw-r--r-- | policy.c | 6 | ||||
-rw-r--r-- | policy.h | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -83,7 +83,7 @@ struct kdbus_policy_db_entry { char *name; struct hlist_node hentry; struct list_head access_list; - struct kdbus_conn *owner; + void *owner; bool wildcard:1; }; @@ -361,7 +361,7 @@ exit_unlock_entries: * @conn: The connection which items to remove */ void kdbus_policy_remove_owner(struct kdbus_policy_db *db, - struct kdbus_conn *conn) + void *conn) { struct kdbus_policy_db_entry *e; struct hlist_node *tmp; @@ -459,7 +459,7 @@ int kdbus_policy_add(struct kdbus_policy_db *db, size_t items_container_size, size_t max_policies, bool allow_wildcards, - struct kdbus_conn *owner) + void *owner) { struct kdbus_policy_db_entry *e = NULL; struct kdbus_policy_db_entry_access *a; @@ -32,6 +32,6 @@ int kdbus_policy_add(struct kdbus_policy_db *db, size_t items_container_size, size_t max_policies, bool allow_wildcards, - struct kdbus_conn *owner); + void *owner); #endif |