|
GATE
C/C++ Framework
|
logical storage volume info and access utilities More...
Macros | |
| #define | GATE_STORAGEVOLUME_PATH 0x0001 |
| #define | GATE_STORAGEVOLUME_UID 0x0002 |
| #define | GATE_STORAGEVOLUME_NAME 0x0004 |
Functions | |
| GATE_SYSTEM_API gate_result_t | gate_storagevolume_enum (gate_storagevolume_enum_callback_t callback, void *user_param) |
| Lists all detected storage volumes by calling a enumation callback function. | |
| GATE_SYSTEM_API char const * | gate_storagevolume_print_type (gate_enumint_t volume_type) |
| Returns a static human-readable string for each supported volume type. | |
| GATE_SYSTEM_API gate_result_t | gate_storagevolume_find (gate_string_t const *field, gate_enumint_t field_type, gate_storagevolume_t *volume) |
| Finds a volume by a given identifier. | |
| GATE_SYSTEM_API gate_result_t | gate_storagevolume_openstream (gate_storagevolume_t const *drive, gate_enumint_t open_flags, gate_controlstream_t **stream) |
| Open a volume for direct data access. | |
logical storage volume info and access utilities
| #define GATE_STORAGEVOLUME_PATH 0x0001 |
identify volume by path field
| #define GATE_STORAGEVOLUME_UID 0x0002 |
identify volume by UID field
| #define GATE_STORAGEVOLUME_NAME 0x0004 |
identify volume by name field
| GATE_SYSTEM_API gate_result_t gate_storagevolume_enum | ( | gate_storagevolume_enum_callback_t | callback, |
| void * | user_param ) |
Lists all detected storage volumes by calling a enumation callback function.
| [in] | callback | callback function to be called for each detected storage volume |
| [in] | user_param | optional user parameter attached to each callback call |
| GATE_SYSTEM_API char const * gate_storagevolume_print_type | ( | gate_enumint_t | volume_type | ) |
Returns a static human-readable string for each supported volume type.
| [in] | GATE_STORAGEVOLUME_TYPE_* | value |
| GATE_SYSTEM_API gate_result_t gate_storagevolume_find | ( | gate_string_t const * | field, |
| gate_enumint_t | field_type, | ||
| gate_storagevolume_t * | volume ) |
Finds a volume by a given identifier.
| [in] | field | string identifying the volume |
| [in] | field_type | type of field string from GATE_STORAGEVOLUME_* |
| [out] | volume | pointer to volume to be initialized with data from found volume |
| GATE_SYSTEM_API gate_result_t gate_storagevolume_openstream | ( | gate_storagevolume_t const * | drive, |
| gate_enumint_t | open_flags, | ||
| gate_controlstream_t ** | stream ) |
Open a volume for direct data access.
| [in] | drive | pointer to storage volume descriptor to identify volume |
| [in] | open_flags | open-access flags from GATE_STREAM_OPEN_* |
| [out] | stream | pointer to interface-pointer to be initialized with new stream object |