MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / modBLEConnectionRemove

Function modBLEConnectionRemove

modules/network/ble/gap.c:83–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void 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 }
98bail:
99 modCriticalSectionEnd();
100}
101
102modBLEConnection modBLEConnectionGetFirst(void)
103{

Callers 15

xs_ble_client_destructorFunction · 0.85
disconnectEventFunction · 0.85
xs_ble_client_destructorFunction · 0.85
gapDisconnectedEventFunction · 0.85
xs_ble_server_destructorFunction · 0.85
leConnectionClosedEventFunction · 0.85
xs_ble_client_destructorFunction · 0.85
leConnectionClosedEventFunction · 0.85
xs_ble_client_destructorFunction · 0.85
gattcOpenEventFunction · 0.85
gattcCloseEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected