From 79a55c5db56dd4a006ee25791ac4d127b17ef81e Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Tue, 4 Mar 2014 13:08:19 +0100 Subject: policy: rework API Rework the API exposed in policy.h, and make it base on kdbus_items. Also, add some basic code for wildcard handling. This isn't tested at all yet. --- policy.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'policy.h') diff --git a/policy.h b/policy.h index bd64422b331..f57dcc388a8 100644 --- a/policy.h +++ b/policy.h @@ -18,9 +18,6 @@ struct kdbus_policy_db; int kdbus_policy_db_new(struct kdbus_policy_db **db); void kdbus_policy_db_free(struct kdbus_policy_db *db); -int kdbus_cmd_policy_set(struct kdbus_policy_db *db, - const char *name, - const struct kdbus_cmd_make *cmd); int kdbus_policy_check_send_access(struct kdbus_policy_db *db, struct kdbus_conn *conn_src, struct kdbus_conn *conn_dst); @@ -29,4 +26,11 @@ bool kdbus_policy_check_own_access(struct kdbus_policy_db *db, const char *name); void kdbus_policy_remove_conn(struct kdbus_policy_db *db, struct kdbus_conn *conn); + +int kdbus_policy_add(struct kdbus_policy_db *db, + const struct kdbus_item *items, + size_t items_container_size, + size_t max_policies, + struct kdbus_conn *owner); + #endif -- cgit v1.2.3