summaryrefslogtreecommitdiff
path: root/policy.h
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2014-03-04 13:08:19 +0100
committerDaniel Mack <zonque@gmail.com>2014-03-07 19:41:12 +0100
commit79a55c5db56dd4a006ee25791ac4d127b17ef81e (patch)
treecb2942c5a05e3a12f1752eb00ced6e5485065c50 /policy.h
parent2451d24e9efd872b8bd18663ee3f66a035350a14 (diff)
downloadkdbus-bus-79a55c5db56dd4a006ee25791ac4d127b17ef81e.tar.gz
kdbus-bus-79a55c5db56dd4a006ee25791ac4d127b17ef81e.tar.bz2
kdbus-bus-79a55c5db56dd4a006ee25791ac4d127b17ef81e.zip
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.
Diffstat (limited to 'policy.h')
-rw-r--r--policy.h10
1 files changed, 7 insertions, 3 deletions
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