static struct default_settings {
const char *uuid;
+ const char *name;
int priority;
const char *remote_uuid;
uint8_t channel;
} defaults[] = {
{
.uuid = SPP_UUID,
+ .name = "Serial Port",
.channel = SPP_DEFAULT_CHANNEL,
}, {
.uuid = DUN_GW_UUID,
+ .name = "Dialup Networking",
.channel = DUN_DEFAULT_CHANNEL,
}, {
.uuid = HFP_HS_UUID,
+ .name = "Hands-Free unit",
.priority = BTD_PROFILE_PRIORITY_HIGH,
.remote_uuid = HFP_AG_UUID,
.channel = HFP_HF_DEFAULT_CHANNEL,
.version = 0x0105,
}, {
.uuid = HFP_AG_UUID,
+ .name = "Hands-Free Voice gateway",
.priority = BTD_PROFILE_PRIORITY_HIGH,
.remote_uuid = HFP_HS_UUID,
.channel = HFP_AG_DEFAULT_CHANNEL,
.version = 0x0105,
}, {
.uuid = HSP_AG_UUID,
+ .name = "Headset Voice gateway",
.priority = BTD_PROFILE_PRIORITY_HIGH,
.remote_uuid = HSP_HS_UUID,
.channel = HSP_AG_DEFAULT_CHANNEL,
}, {
.uuid = OBEX_OPP_UUID,
+ .name = "Object Push",
.channel = OPP_DEFAULT_CHANNEL,
.sec_level = BT_IO_SEC_LOW,
.authorize = false,
}, {
.uuid = OBEX_FTP_UUID,
+ .name = "File Transfer",
.channel = FTP_DEFAULT_CHANNEL,
}, {
.uuid = OBEX_BIP_UUID,
+ .name = "Basic Imaging",
.channel = BIP_DEFAULT_CHANNEL,
}, {
.uuid = OBEX_SYNC_UUID,
+ .name = "Synchronization",
.channel = SYNC_DEFAULT_CHANNEL,
}, {
.uuid = OBEX_PBAP_UUID,
+ .name = "Phone Book Access",
.channel = SYNC_DEFAULT_CHANNEL,
}, {
.uuid = OBEX_MAS_UUID,
+ .name = "Message Access",
.channel = MAS_DEFAULT_CHANNEL,
}, {
.uuid = OBEX_MNS_UUID,
+ .name = "Message Notification",
.channel = MNS_DEFAULT_CHANNEL,
},
};
if (settings->features)
ext->features = settings->features;
+
+ if (settings->name)
+ ext->name = g_strdup(settings->name);
}
}