From 81f71acbee38a14b1f1e4f2afeb321cd4fede3ee Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 19 Jan 2003 01:18:39 +0000 Subject: [PATCH] Now a callback function is used to read blocks from disk. Used to cache blocks when iterating through the FS modules. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2499 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/disk_scanner/fs.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/headers/private/disk_scanner/fs.h b/headers/private/disk_scanner/fs.h index 3f1e5743cd..be3aa07a7e 100644 --- a/headers/private/disk_scanner/fs.h +++ b/headers/private/disk_scanner/fs.h @@ -14,8 +14,13 @@ struct extended_partition_info; +struct fs_buffer_cache; +typedef status_t (*fs_get_buffer)(struct fs_buffer_cache *cache, + off_t offset, size_t size, void **buffer, size_t *actualSize); + typedef bool (*fs_identify_hook)(int deviceFD, - struct extended_partition_info *partitionInfo, float *priority); + struct extended_partition_info *partitionInfo, float *priority, + fs_get_buffer get_buffer, struct fs_buffer_cache *cache); typedef struct fs_module_info { module_info module;