Lines Matching refs:profile
51 struct cras_bt_profile *profile; in cras_bt_profile_handle_release() local
55 profile = cras_bt_profile_get(profile_path); in cras_bt_profile_handle_release()
56 if (!profile) in cras_bt_profile_handle_release()
59 syslog(LOG_ERR, "Profile %s released by bluetoothd", profile->name); in cras_bt_profile_handle_release()
60 profile->release(profile); in cras_bt_profile_handle_release()
84 struct cras_bt_profile *profile; in cras_bt_profile_handle_new_connection() local
104 profile = cras_bt_profile_get(profile_path); in cras_bt_profile_handle_new_connection()
105 if (!profile) in cras_bt_profile_handle_new_connection()
115 err = profile->new_connection(conn, profile, device, fd); in cras_bt_profile_handle_new_connection()
117 syslog(LOG_INFO, "%s new connection rejected", profile->name); in cras_bt_profile_handle_new_connection()
153 struct cras_bt_profile *profile; in cras_bt_profile_handle_request_disconnection() local
162 profile = cras_bt_profile_get(prpofile_path); in cras_bt_profile_handle_request_disconnection()
163 if (!profile) in cras_bt_profile_handle_request_disconnection()
170 profile->request_disconnection(profile, device); in cras_bt_profile_handle_request_disconnection()
194 struct cras_bt_profile *profile; in cras_bt_profile_handle_cancel() local
198 profile = cras_bt_profile_get(profile_path); in cras_bt_profile_handle_cancel()
199 if (!profile) in cras_bt_profile_handle_cancel()
202 profile->cancel(profile); in cras_bt_profile_handle_cancel()
277 struct cras_bt_profile *profile) in cras_bt_register_profile() argument
294 &profile->object_path); in cras_bt_register_profile()
296 &profile->uuid); in cras_bt_register_profile()
306 DBUS_TYPE_STRING_AS_STRING, &profile->name)) { in cras_bt_register_profile()
311 if (profile->record && in cras_bt_register_profile()
314 &profile->record)) { in cras_bt_register_profile()
321 &profile->version)) { in cras_bt_register_profile()
326 if (profile->role && in cras_bt_register_profile()
328 DBUS_TYPE_STRING_AS_STRING, &profile->role)) { in cras_bt_register_profile()
333 if (profile->features && in cras_bt_register_profile()
336 &profile->features)) { in cras_bt_register_profile()
366 struct cras_bt_profile *profile) in cras_bt_unregister_profile() argument
383 &profile->object_path); in cras_bt_unregister_profile()
407 struct cras_bt_profile *profile; in cras_bt_register_profiles() local
410 DL_FOREACH (profiles, profile) { in cras_bt_register_profiles()
411 err = cras_bt_register_profile(conn, profile); in cras_bt_register_profiles()
419 int cras_bt_add_profile(DBusConnection *conn, struct cras_bt_profile *profile) in cras_bt_add_profile() argument
430 conn, profile->object_path, &profile_vtable, &dbus_error)) { in cras_bt_add_profile()
432 profile->object_path, dbus_error.message); in cras_bt_add_profile()
437 DL_APPEND(profiles, profile); in cras_bt_add_profile()
442 int cras_bt_rm_profile(DBusConnection *conn, struct cras_bt_profile *profile) in cras_bt_rm_profile() argument
444 DL_DELETE(profiles, profile); in cras_bt_rm_profile()
447 profile->object_path)) { in cras_bt_rm_profile()
449 profile->object_path); in cras_bt_rm_profile()
457 struct cras_bt_profile *profile; in cras_bt_profile_reset() local
459 DL_FOREACH (profiles, profile) in cras_bt_profile_reset()
460 profile->release(profile); in cras_bt_profile_reset()
465 struct cras_bt_profile *profile; in cras_bt_profile_get() local
466 DL_FOREACH (profiles, profile) { in cras_bt_profile_get()
467 if (strcmp(profile->object_path, path) == 0) in cras_bt_profile_get()
468 return profile; in cras_bt_profile_get()
476 struct cras_bt_profile *profile; in cras_bt_profile_on_device_disconnected() local
477 DL_FOREACH (profiles, profile) in cras_bt_profile_on_device_disconnected()
478 profile->request_disconnection(profile, device); in cras_bt_profile_on_device_disconnected()