| 81 | } |
| 82 | |
| 83 | void modBLEConnectionRemove(modBLEConnection connection) |
| 84 | { |
| 85 | modBLEConnection walker, prev = NULL; |
| 86 | modCriticalSectionDeclare; |
| 87 | modCriticalSectionBegin(); |
| 88 | for (walker = gConnections; NULL != walker; prev = walker, walker = walker->next) { |
| 89 | if (connection == walker) { |
| 90 | if (NULL == prev) |
| 91 | gConnections = walker->next; |
| 92 | else |
| 93 | prev->next = walker->next; |
| 94 | c_free(connection); |
| 95 | goto bail; |
| 96 | } |
| 97 | } |
| 98 | bail: |
| 99 | modCriticalSectionEnd(); |
| 100 | } |
| 101 | |
| 102 | modBLEConnection modBLEConnectionGetFirst(void) |
| 103 | { |
no outgoing calls
no test coverage detected