| 1316 | } |
| 1317 | |
| 1318 | int cbfs_remove_entry(struct cbfs_image *image, const char *name) |
| 1319 | { |
| 1320 | struct cbfs_file *entry; |
| 1321 | entry = cbfs_get_entry(image, name); |
| 1322 | if (!entry) { |
| 1323 | ERROR("CBFS file %s not found.\n", name); |
| 1324 | return -1; |
| 1325 | } |
| 1326 | DEBUG("%s: Removed %s @ 0x%x\n", __func__, |
| 1327 | entry->filename, cbfs_get_entry_addr(image, entry)); |
| 1328 | entry->type = htobe32(CBFS_TYPE_DELETED); |
| 1329 | cbfs_legacy_walk(image, cbfs_merge_empty_entry, NULL); |
| 1330 | return 0; |
| 1331 | } |
| 1332 | |
| 1333 | int cbfs_print_header_info(struct cbfs_image *image) |
| 1334 | { |
no test coverage detected