spa: bluez: mark dbus vtables static

This commit is contained in:
Barnabás Pőcze 2025-11-03 22:33:59 +01:00 committed by Wim Taymans
parent 3337af64ca
commit 963d10f1ac
3 changed files with 7 additions and 6 deletions

View file

@ -5582,10 +5582,10 @@ static int register_media_endpoint(struct spa_bt_monitor *monitor,
static int register_media_application(struct spa_bt_monitor * monitor)
{
const struct media_codec * const * const media_codecs = monitor->media_codecs;
const DBusObjectPathVTable vtable_object_manager_a2dp = {
static const DBusObjectPathVTable vtable_object_manager_a2dp = {
.message_function = object_manager_handler_a2dp,
};
const DBusObjectPathVTable vtable_object_manager_bap = {
static const DBusObjectPathVTable vtable_object_manager_bap = {
.message_function = object_manager_handler_bap,
};

View file

@ -247,11 +247,12 @@ static void update_properties(struct impl *impl, bool send_signal)
struct spa_bt_player *spa_bt_player_new(void *dbus_connection, struct spa_log *log)
{
struct impl *impl;
const DBusObjectPathVTable vtable = {
static const DBusObjectPathVTable vtable = {
.message_function = player_handler,
};
struct impl *impl;
spa_log_topic_init(log, &log_topic);
impl = calloc(1, sizeof(struct impl));

View file

@ -1150,7 +1150,7 @@ int telephony_ag_register(struct spa_bt_telephony_ag *ag)
struct impl *impl = SPA_CONTAINER_OF(agimpl->this.telephony, struct impl, this);
char *path;
const DBusObjectPathVTable vtable = {
static const DBusObjectPathVTable vtable = {
.message_function = ag_handler,
};
@ -1648,7 +1648,7 @@ int telephony_call_register(struct spa_bt_telephony_call *call)
struct impl *impl = SPA_CONTAINER_OF(agimpl->this.telephony, struct impl, this);
char *path;
const DBusObjectPathVTable vtable = {
static const DBusObjectPathVTable vtable = {
.message_function = call_handler,
};