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

Function Http_OnUpdateProgress

src/webclient/Http_Web.c:116–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116EMSCRIPTEN_KEEPALIVE void Http_OnUpdateProgress(int reqID, int read, int total) {
117 int idx = RequestList_Find(&workingReqs, reqID);
118 if (idx == -1 || !total) return;
119
120 workingReqs.entries[idx].progress = (int)(100.0f * read / total);
121}
122
123EMSCRIPTEN_KEEPALIVE void Http_OnFinishedAsync(int reqID, void* data, int len, int status) {
124 struct HttpRequest* req;

Callers

nothing calls this directly

Calls 1

RequestList_FindFunction · 0.85

Tested by

no test coverage detected