| 91 | } |
| 92 | |
| 93 | cache_t *create_cache(const char *const cache_alg_name, |
| 94 | common_cache_params_t cc_params, void *specific_params) { |
| 95 | cache_t *cache = |
| 96 | create_cache_internal(cache_alg_name, cc_params, specific_params); |
| 97 | if (cache == NULL) { |
| 98 | cache = create_cache_external(cache_alg_name, cc_params, specific_params); |
| 99 | } |
| 100 | if (cache == NULL) { |
| 101 | ERROR("failed to create cache %s\n", cache_alg_name); |
| 102 | abort(); |
| 103 | } |
| 104 | return cache; |
| 105 | } |
| 106 | |
| 107 | #ifdef __cplusplus |
| 108 | } |
no test coverage detected