From 18e74fef9901855e53cef899a0d618f3b76f825d Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 25 Dec 2002 15:14:12 +0000 Subject: [PATCH] indentify() also returns a priority now. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2298 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/disk_scanner/fs.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/headers/private/disk_scanner/fs.h b/headers/private/disk_scanner/fs.h index 9ce59d8119..7b87fb55a8 100644 --- a/headers/private/disk_scanner/fs.h +++ b/headers/private/disk_scanner/fs.h @@ -8,7 +8,7 @@ struct extended_partition_info; typedef bool (*fs_identify_hook)(int deviceFD, - struct extended_partition_info *partitionInfo); + struct extended_partition_info *partitionInfo, float *priority); typedef struct fs_module_info { module_info module; @@ -35,6 +35,10 @@ typedef struct fs_module_info { params: deviceFD: a device FD partitionInfo: the partition info + priority: Pointer to a float in which the priority of the FS shall be + stored. Used in case several FS add-ons recognize the FS; + then the module returning the highest priority is used. + -1 <= *priority <= 1 Returns true, if successful (i.e. the FS was recognized), false otherwise. */