LICK
 All Data Structures Files Functions Variables Enumerations Enumerator
drives.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "llist.h"
9 
13 typedef enum {
26 } drive_type_e;
27 
31 typedef struct {
33  char *path;
36 } drive_t;
37 
43 drive_type_e drive_type(char *path);
53 char *unused_drive();
58 void free_drive(drive_t *drive);
63 void free_drive_list(node_t *lst);
72 int is_lick_drive(drive_t *drive);
info about a drive
Definition: drives.h:31
A linked list node.
Definition: llist.h:19
a CD drive
Definition: drives.h:25
void free_drive(drive_t *drive)
free a drive structure
Definition: drives.c:13
an internal hard drive
Definition: drives.h:19
node_t * all_drives()
return a list of all drives in the system
Definition: drives.c:83
drive_type_e
Definition: drives.h:13
char * path
the path to the root of a drive
Definition: drives.h:33
an unused drive letter
Definition: drives.h:17
int is_lick_drive(drive_t *drive)
determines if a drive has LICK installed on it
an external hard drive, USB, etc.
Definition: drives.h:21
char * unused_drive()
return an unused drive path
Definition: drives.c:87
A linked list library.
drive_type_e drive_type(char *path)
determines the type of a drive
Definition: drives.c:79
drive_type_e type
the type of drive
Definition: drives.h:35
a network drive
Definition: drives.h:23
void free_drive_list(node_t *lst)
free a list of drive structures
Definition: drives.c:18
other
Definition: drives.h:15