| 280 | } |
| 281 | |
| 282 | static inline size_t _cbfs_load(const char *name, void *buf, size_t size, bool force_ro, |
| 283 | enum cbfs_type *type) |
| 284 | { |
| 285 | struct _cbfs_default_allocator_arg arg = { .buf = buf, .buf_size = size }; |
| 286 | if (_cbfs_alloc(name, _cbfs_default_allocator, &arg, &size, force_ro, type)) |
| 287 | return size; |
| 288 | else |
| 289 | return 0; |
| 290 | } |
| 291 | |
| 292 | static inline size_t cbfs_load(const char *name, void *buf, size_t size) |
| 293 | { |
no test coverage detected