Find drives in the system. More...
#include "llist.h"
Go to the source code of this file.
Data Structures | |
struct | drive_t |
info about a drive More... | |
Enumerations | |
enum | drive_type_e { DRV_UNKNOWN, DRV_UNUSED, DRV_HDD, DRV_REMOVABLE, DRV_REMOTE, DRV_CDROM } |
Functions | |
drive_type_e | drive_type (char *path) |
determines the type of a drive More... | |
node_t * | all_drives () |
return a list of all drives in the system More... | |
char * | unused_drive () |
return an unused drive path More... | |
void | free_drive (drive_t *drive) |
free a drive structure More... | |
void | free_drive_list (node_t *lst) |
free a list of drive structures More... | |
int | is_lick_drive (drive_t *drive) |
determines if a drive has LICK installed on it More... | |
Find drives in the system.
enum drive_type_e |
node_t* all_drives | ( | ) |
return a list of all drives in the system
drive_type_e drive_type | ( | char * | path | ) |
determines the type of a drive
path | a drive in the form "A:/" |
void free_drive | ( | drive_t * | drive | ) |
free a drive structure
drive | the drive structure to free |
void free_drive_list | ( | node_t * | lst | ) |
free a list of drive structures
lst | the list of drive structures to free |
int is_lick_drive | ( | drive_t * | drive | ) |
determines if a drive has LICK installed on it
LICK can be installed on multiple drives
drive | the drive to check |
char* unused_drive | ( | ) |
return an unused drive path