MCPcopy Create free account
hub / github.com/dillo-browser/dillo / Capi_map_cache_flags

Function Capi_map_cache_flags

src/capi.c:501–517  ·  view source on GitHub ↗

* Convert cache-defined flags to Capi ones. */

Source from the content-addressed store, hash-verified

499 * Convert cache-defined flags to Capi ones.
500 */
501static int Capi_map_cache_flags(uint_t flags)
502{
503 int status = 0;
504
505 if (flags) {
506 status |= CAPI_IsCached;
507 if (flags & CA_IsEmpty)
508 status |= CAPI_IsEmpty;
509 if (flags & CA_InProgress)
510 status |= CAPI_InProgress;
511 else
512 status |= CAPI_Completed;
513
514 /* CAPI_Aborted is not yet used/defined */
515 }
516 return status;
517}
518
519/**
520 * Return status information of an URL's content-transfer process.

Callers 2

a_Capi_get_flagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected