grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / filesys / CDVDFS / src / volumes.h
blob1065edf3389ab3f0370e622682d1af66b8e0de33
1 #ifndef VOLUMES_H
2 #define VOLUMES_H
4 #include <exec/ports.h>
5 #include "device.h"
7 typedef struct lock_node {
8 LOCK *lock;
9 char *vol_name;
10 t_path_list pathlist;
11 struct lock_node *next;
12 } t_lock_node;
14 typedef struct fh_node {
15 char *vol_name;
16 CDROM_OBJ* obj;
17 struct DeviceList* devlist;
18 struct fh_node *next;
19 } t_fh_node;
21 typedef struct vol_reg_node {
22 char *name;
23 struct DeviceList *volume;
24 struct vol_reg_node *next;
25 } t_vol_reg_node;
27 struct CDVDBase;
29 void Register_Lock (LOCK *p_lock);
30 void Unregister_Lock (LOCK *p_lock);
31 int Reinstall_Locks (struct CDVDBase *global);
32 void Register_File_Handle(CDROM_OBJ *p_obj);
33 void Unregister_File_Handle(CDROM_OBJ *p_obj);
34 struct DeviceList *Find_Dev_List (CDROM_OBJ *p_obj);
35 int Reinstall_File_Handles (struct CDVDBase *global);
36 void Register_Volume_Node(struct CDVDBase *global, struct DeviceList *p_volume, char *Name);
37 void Unregister_Volume_Node(struct CDVDBase *global, struct DeviceList *p_volume);
38 struct DeviceList *Find_Volume_Node(struct CDVDBase *global, char *p_name);
40 #endif /* VOLUMES_H */