mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-09 09:38:09 +02:00
bus/policy: make local functions static
These two functions are used only locally in bus/policy.c: - bus_client_policy_optimize() - bus_client_policy_append_rule() Make them static, remove declarations from the header file, add forward declarations in the C file. Change-Id: Ideba1fea470bc0d38c04f428b23270fe6176ac95
This commit is contained in:
parent
8972fcb029
commit
2562df496a
2 changed files with 6 additions and 5 deletions
|
|
@ -31,6 +31,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,
|
||||
dbus_bool_t allow)
|
||||
|
|
@ -778,7 +782,7 @@ remove_rules_by_type_up_to (BusClientPolicy *policy,
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
bus_client_policy_optimize (BusClientPolicy *policy)
|
||||
{
|
||||
DBusList *link;
|
||||
|
|
@ -858,7 +862,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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -170,9 +170,6 @@ dbus_bool_t bus_client_policy_check_can_receive (BusClientPolicy *policy,
|
|||
dbus_int32_t *toggles);
|
||||
dbus_bool_t bus_client_policy_check_can_own (BusClientPolicy *policy,
|
||||
const DBusString *service_name);
|
||||
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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue