Pass a session_info to the partition functions, rather than a bunch of individual variables.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2297 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2002-12-25 15:13:25 +00:00
parent bc2988951f
commit e50b31269a
2 changed files with 14 additions and 28 deletions
+5 -12
View File
@@ -7,11 +7,10 @@
struct extended_partition_info;
typedef bool (*partition_identify_hook)(int deviceFD, off_t sessionOffset,
off_t sessionSize, const uchar *block, int32 blockSize);
typedef bool (*partition_identify_hook)(int deviceFD,
const struct session_info *session, const uchar *block);
typedef status_t (*partition_get_nth_info_hook)(int deviceFD,
off_t sessionOffset, off_t sessionSize, const uchar *block,
int32 blockSize, int32 index,
const struct session_info *session, const uchar *block, int32 index,
struct extended_partition_info *partitionInfo);
typedef struct partition_module_info {
@@ -30,11 +29,8 @@ typedef struct partition_module_info {
params:
deviceFD: a device FD
sessionOffset: start of the session in bytes from the beginning of the
device
sessionSize: size of the session in bytes
sessionInfo: a complete info about the session the partition resides on
block: the first block of the session
blockSize: the logical block size
get_nth_info():
@@ -51,11 +47,8 @@ typedef struct partition_module_info {
params:
deviceFD: a device FD
sessionOffset: start of the session in bytes from the beginning of the
device
sessionSize: size of the session in bytes
sessionInfo: a complete info about the session the partition resides on
block: the first block of the session
blockSize: the logical block size
index: the partition index
partitionInfo: the partition info