| 31 | } |
| 32 | |
| 33 | static error_t get_path(void* data, char* out_path, size_t out_path_size) { |
| 34 | auto* fs_data = static_cast<PartitionFsData*>(data); |
| 35 | if (strlen(fs_data->path) >= out_path_size) return ERROR_BUFFER_OVERFLOW; |
| 36 | strncpy(out_path, fs_data->path, out_path_size); |
| 37 | return ERROR_NONE; |
| 38 | } |
| 39 | |
| 40 | FileSystemApi partition_fs_api = { |
| 41 | .mount = mount, |
nothing calls this directly
no outgoing calls
no test coverage detected