summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2014-03-05 09:00:48 +0100
committerDaniel Mack <zonque@gmail.com>2014-03-07 19:43:51 +0100
commit56a52dc830c44770e478013f263cd2605f37c957 (patch)
tree0765c1e37f7a4862429203b04f9bb582045d3231
parent84c962f6f65915a2a23d6197826d47a4767c3192 (diff)
downloadkdbus-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.c6
-rw-r--r--policy.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/policy.c b/policy.c
index dca786cec14..7f891ab6ab7 100644
--- a/policy.c
+++ b/policy.c
@@ -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;
diff --git a/policy.h b/policy.h
index 151a94119a3..71c3e063d4c 100644
--- a/policy.h
+++ b/policy.h
@@ -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