| 824 | } |
| 825 | |
| 826 | struct cbfs_file *cbfs_get_entry(struct cbfs_image *image, const char *name) |
| 827 | { |
| 828 | struct cbfs_file *entry; |
| 829 | for (entry = cbfs_find_first_entry(image); |
| 830 | entry && cbfs_is_valid_entry(image, entry); |
| 831 | entry = cbfs_find_next_entry(image, entry)) { |
| 832 | if (strcasecmp(entry->filename, name) == 0) { |
| 833 | DEBUG("%s: found %s\n", __func__, name); |
| 834 | return entry; |
| 835 | } |
| 836 | } |
| 837 | return NULL; |
| 838 | } |
| 839 | |
| 840 | static int cbfs_payload_decompress(struct cbfs_payload_segment *segments, |
| 841 | struct buffer *buff, int num_seg) |
no test coverage detected