MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / RequestList_Find

Function RequestList_Find

src/_HttpBase.h:79–86  ·  view source on GitHub ↗

Finds index of request whose id matches the given id */

Source from the content-addressed store, hash-verified

77
78/* Finds index of request whose id matches the given id */
79static int RequestList_Find(struct RequestList* list, int id) {
80 int i;
81 for (i = 0; i < list->count; i++) {
82 if (id != list->entries[i].id) continue;
83 return i;
84 }
85 return -1;
86}
87
88/* Tries to remove and free given request */
89static void RequestList_TryFree(struct RequestList* list, int id) {

Callers 6

Http_GetResultFunction · 0.85
RequestList_TryFreeFunction · 0.85
Http_GetResultFunction · 0.85
Http_CheckProgressFunction · 0.85
Http_OnUpdateProgressFunction · 0.85
Http_OnFinishedAsyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected