Got rid of the module_identify() hook. Instead the module info features a short_name field now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2554 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -29,15 +29,22 @@ typedef status_t (*partition_partition_hook)(int deviceFD,
|
||||
|
||||
typedef struct partition_module_info {
|
||||
module_info module;
|
||||
const char *short_name;
|
||||
|
||||
partition_identify_hook identify;
|
||||
partition_get_nth_info_hook get_nth_info;
|
||||
partition_identify_module_hook identify_module;
|
||||
partition_get_partitioning_params_hook get_partitioning_params;
|
||||
partition_partition_hook partition;
|
||||
} partition_module_info;
|
||||
|
||||
/*
|
||||
short_name:
|
||||
----------
|
||||
|
||||
Identifies the module. That's the identifier to be passed to
|
||||
partition_session().
|
||||
|
||||
|
||||
identify():
|
||||
----------
|
||||
|
||||
@@ -76,18 +83,6 @@ typedef struct partition_module_info {
|
||||
range.
|
||||
|
||||
|
||||
identify_module():
|
||||
-----------------
|
||||
|
||||
Returns whether the module knows the supplied identifier. The module to
|
||||
be used to partition a session is identified by this identifier.
|
||||
|
||||
params:
|
||||
identifier: the identifier
|
||||
|
||||
Returns true, if the module knows the identifier, false otherwise.
|
||||
|
||||
|
||||
get_partitioning_params():
|
||||
-------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user