treewide: mark some functions static

These were found by enabling the "missing-declarations" warning.
This commit is contained in:
Barnabás Pőcze 2023-07-03 04:34:59 +02:00
parent ab6ff1bcde
commit 8c17a6626d
14 changed files with 27 additions and 29 deletions

View file

@ -2708,7 +2708,7 @@ static void set_call_setup(enum call_setup value, void *user_data)
}
}
void set_battery_level(unsigned int level, void *user_data)
static void set_battery_level(unsigned int level, void *user_data)
{
struct impl *backend = user_data;

View file

@ -307,7 +307,7 @@ static const struct spa_bt_transport_implementation ofono_transport_impl = {
.release = ofono_audio_release,
};
bool activate_transport(struct spa_bt_transport *t, const void *data)
static bool activate_transport(struct spa_bt_transport *t, const void *data)
{
struct impl *backend = (void *)data;
struct transport_data *td = t->user_data;

View file

@ -308,7 +308,7 @@ static void group_destroy(struct group *group)
free(group);
}
struct stream *stream_create(struct spa_bt_transport *t, struct group *group)
static struct stream *stream_create(struct spa_bt_transport *t, struct group *group)
{
struct stream *stream;
void *codec_data = NULL;

View file

@ -202,7 +202,7 @@ static int read_probe(struct impl *impl, MidiEnumCharacteristicProxy *chr)
return 0;
}
Bluez5GattDescriptor1 *find_dsc(struct impl *impl, MidiEnumCharacteristicProxy *chr)
static Bluez5GattDescriptor1 *find_dsc(struct impl *impl, MidiEnumCharacteristicProxy *chr)
{
const char *path = g_dbus_proxy_get_object_path(G_DBUS_PROXY(chr));
Bluez5GattDescriptor1 *found = NULL;;