diff options
author | Adrian Szyndela <adrian.s@samsung.com> | 2020-04-17 10:25:25 +0200 |
---|---|---|
committer | Adrian Szyndela <adrian.s@samsung.com> | 2020-06-01 11:59:55 +0200 |
commit | ca20aa2e1e6304ddf85b522915dc00d359f49110 (patch) | |
tree | 0fe59f4642c2bf539fe461f77b22aa2b513bdcdc | |
parent | 73a3cf6d05ed26c5c62eb22ffa9146bdca446358 (diff) | |
download | dbus-ca20aa2e1e6304ddf85b522915dc00d359f49110.tar.gz dbus-ca20aa2e1e6304ddf85b522915dc00d359f49110.tar.bz2 dbus-ca20aa2e1e6304ddf85b522915dc00d359f49110.zip |
bus/policy: make local functions static
Change-Id: Ideba1fea470bc0d38c04f428b23270fe6176ac95
-rw-r--r-- | bus/policy.c | 13 | ||||
-rw-r--r-- | bus/policy.h | 3 |
2 files changed, 9 insertions, 7 deletions
diff --git a/bus/policy.c b/bus/policy.c index 6e642951..be89f31f 100644 --- a/bus/policy.c +++ b/bus/policy.c @@ -32,6 +32,10 @@ #include <dbus/dbus-internals.h> #include <dbus/dbus-message-internal.h> +static void bus_client_policy_optimize (BusClientPolicy *policy); +static dbus_bool_t bus_client_policy_append_rule (BusClientPolicy *policy, + BusPolicyRule *rule); + BusPolicyRule* bus_policy_rule_new (BusPolicyRuleType type, BusPolicyRuleAccess access) @@ -784,7 +788,7 @@ remove_rules_by_type_up_to (BusClientPolicy *policy, } } -void +static void bus_client_policy_optimize (BusClientPolicy *policy) { DBusList *link; @@ -864,7 +868,7 @@ bus_client_policy_optimize (BusClientPolicy *policy) _dbus_list_get_length (&policy->rules)); } -dbus_bool_t +static dbus_bool_t bus_client_policy_append_rule (BusClientPolicy *policy, BusPolicyRule *rule) { @@ -886,8 +890,9 @@ bus_client_policy_append_rule (BusClientPolicy *policy, return FALSE; \ } -dbus_bool_t bus_policy_rule_to_string (BusPolicyRule *rule, - char **out_rule) +static dbus_bool_t +bus_policy_rule_to_string (BusPolicyRule *rule, + char **out_rule) { const char *sr; const char *access; diff --git a/bus/policy.h b/bus/policy.h index be704e3b..6d86909f 100644 --- a/bus/policy.h +++ b/bus/policy.h @@ -189,9 +189,6 @@ BusResult bus_client_policy_check_can_own (BusClientPolicy *policy, const DBusString *service_name, DBusConnection *connection, DBusMessage *message); -dbus_bool_t bus_client_policy_append_rule (BusClientPolicy *policy, - BusPolicyRule *rule); -void bus_client_policy_optimize (BusClientPolicy *policy); #ifdef DBUS_ENABLE_EMBEDDED_TESTS dbus_bool_t bus_policy_check_can_own (BusPolicy *policy, |