l2cap.h (5b2d3e12519bda8c473437aed656e840eede6ebd) | l2cap.h (989c549884f3b180a9f6ca6fd10e24bc72baf497) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 404 unchanged lines hidden (view full) --- 413 uint16_t mtu; 414 415 // internal connection 416 btstack_packet_handler_t packet_handler; 417 418 // required security level 419 gap_security_level_t required_security_level; 420 | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 404 unchanged lines hidden (view full) --- 413 uint16_t mtu; 414 415 // internal connection 416 btstack_packet_handler_t packet_handler; 417 418 // required security level 419 gap_security_level_t required_security_level; 420 |
421 // requires authorization 422 bool requires_authorization; 423 |
|
421} l2cap_service_t; 422 423 424typedef struct l2cap_signaling_response { 425 hci_con_handle_t handle; 426 uint8_t sig_id; 427 uint8_t code; 428 uint16_t cid; // source cid for CONNECTION REQUEST --- 275 unchanged lines hidden (view full) --- 704 705/** 706 * @brief Register L2CAP service in Enhanced Credit-Based Flow-Control Mode 707 * @note MTU and initial credits are specified in l2cap_enhanced_accept_connection(..) call 708 * @param packet_handler 709 * @param psm 710 * @param min_remote_mtu 711 * @param security_level | 424} l2cap_service_t; 425 426 427typedef struct l2cap_signaling_response { 428 hci_con_handle_t handle; 429 uint8_t sig_id; 430 uint8_t code; 431 uint16_t cid; // source cid for CONNECTION REQUEST --- 275 unchanged lines hidden (view full) --- 707 708/** 709 * @brief Register L2CAP service in Enhanced Credit-Based Flow-Control Mode 710 * @note MTU and initial credits are specified in l2cap_enhanced_accept_connection(..) call 711 * @param packet_handler 712 * @param psm 713 * @param min_remote_mtu 714 * @param security_level |
715 * @oaram authorization_required |
|
712 * @return status 713 */ | 716 * @return status 717 */ |
714uint8_t l2cap_ecbm_register_service(btstack_packet_handler_t packet_handler, uint16_t psm, uint16_t min_remote_mtu, gap_security_level_t security_level); | 718uint8_t l2cap_ecbm_register_service(btstack_packet_handler_t packet_handler, uint16_t psm, uint16_t min_remote_mtu, 719 gap_security_level_t security_level, bool authorization_required); |
715 716/** 717 * @brief Unregister L2CAP service in Enhanced Credit-Based Flow-Control Mode 718 * @param psm 719 * @return status 720 */ 721 722uint8_t l2cap_ecbm_unregister_service(uint16_t psm); --- 139 unchanged lines hidden --- | 720 721/** 722 * @brief Unregister L2CAP service in Enhanced Credit-Based Flow-Control Mode 723 * @param psm 724 * @return status 725 */ 726 727uint8_t l2cap_ecbm_unregister_service(uint16_t psm); --- 139 unchanged lines hidden --- |