You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/09/07 07:44:01 UTC

[GitHub] rymanluk commented on a change in pull request #177: nimble: Add API to query the L2CAP channel for details

rymanluk commented on a change in pull request #177: nimble: Add API to query the L2CAP channel for details
URL: https://github.com/apache/mynewt-nimble/pull/177#discussion_r215872804
 
 

 ##########
 File path: nimble/host/src/ble_l2cap_coc.c
 ##########
 @@ -499,6 +499,34 @@ ble_l2cap_coc_send(struct ble_l2cap_chan *chan, struct os_mbuf *sdu_tx)
     return ble_l2cap_coc_continue_tx(chan);
 }
 
+uint16_t
+ble_l2cap_get_scid(struct ble_l2cap_chan *chan)
 
 Review comment:
   I suggest to change return type from uint16_t to int and in case of chan==NULL return -1.
   This is now API for the application so let's be on the safe side.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services