return BT_STATUS_PARM_INVALID;
}
- DBG("Set authotrize [%d]", authorize);
+ DBG("Set authorize [%d]", authorize);
result = g_dbus_proxy_call_sync(device_proxy, "Set",
g_variant_new("(ssv)", BT_HAL_DEVICE_INTERFACE, "Trusted", g_variant_new("b", authorize)),
G_DBUS_CALL_FLAGS_NONE,
return NULL;
}
+bt_trusted_profile_t _bt_hal_get_trusted_profile_enum(const char *uuid)
+{
+ if (g_strcmp0("0000112f-0000-1000-8000-00805f9b34fb", uuid) == 0)
+ return BT_TRUSTED_PROFILE_PBAP;
+ else if (g_strcmp0("00001132-0000-1000-8000-00805f9b34fb", uuid) == 0)
+ return BT_TRUSTED_PROFILE_MAP;
+ else if (g_strcmp0("0000112D-0000-1000-8000-00805f9b34fb", uuid) == 0)
+ return BT_TRUSTED_PROFILE_SAP;
+
+ return 0; /* 0 - Unknown Profile */
+}
+
int _bt_hal_device_set_trusted_profile(const bt_bdaddr_t *bd_addr,
bt_trusted_profile_t profile, uint8_t trust)
{