* create a cache_obj from request * @param req * @return */
| 42 | * @return |
| 43 | */ |
| 44 | cache_obj_t *create_cache_obj_from_request(const request_t *req) { |
| 45 | cache_obj_t *cache_obj = my_malloc(cache_obj_t); |
| 46 | memset(cache_obj, 0, sizeof(cache_obj_t)); |
| 47 | if (req != NULL) copy_request_to_cache_obj(cache_obj, req); |
| 48 | return cache_obj; |
| 49 | } |
| 50 | |
| 51 | /** remove the object from the built-in doubly linked list |
| 52 | * |
no test coverage detected