* Convert cache-defined flags to Capi ones. */
| 499 | * Convert cache-defined flags to Capi ones. |
| 500 | */ |
| 501 | static 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. |
no outgoing calls
no test coverage detected