configure: when detecting linux include directory for kernel compiler use target...
[AROS.git] / rom / filesys / CDVDFS / src / globals.h
blobb9eff5d3d08e81a51ad3ff470ac08989f21bd56c
1 #ifndef GLOBALS_H
2 #define GLOBALS_H
4 #include <intuition/intuition.h>
5 #include <libraries/codesets.h>
6 #include <workbench/workbench.h>
8 #include "cdrom.h"
9 #include "debug.h"
10 #include "device.h"
11 #include "generic.h"
12 #include "volumes.h"
14 /* Per-CD base */
15 struct CDVDBase
17 struct MinNode MinNode;
19 /* Library bases */
20 struct DosLibrary *g_DOSBase;
21 struct UtilityBase *g_UtilityBase;/* Utility library for miscellaneous tasks */
22 struct IntuitionBase *g_IntuitionBase;
23 struct IconBase *g_IconBase;
24 struct WorkbenchBase *g_WorkbenchBase;
25 struct Library *g_CodesetsBase;
27 /* these two ones are needed to create new volume nodes */
28 struct ACDRBase *acdrbase; /* Base of the AROS handler */
29 struct ACDRDeviceInfo *device; /* device info for the handler */
30 CDROM *g_cd;
31 VOLUME *g_volume;
32 CDROM_OBJ *g_top_level_obj;
34 char *g_vol_name;
35 char *g_iconname;
36 PROC *DosProc; /* Our Process */
37 DEVNODE *DosNode; /* Our DOS node.. created by DOS for us */
38 ULONG g_dos_sigbit;
39 struct DosPacket *g_death_packet; /* ACTION_DIE packet is held here until just before exit */
41 struct DeviceList *DevList;/* Device List structure for our volume node */
42 struct MsgPort *g_timer_mp; /* timer message port */
43 struct timerequest *g_timer_io; /* timer i/o request */
44 ULONG g_timer_sigbit;
45 int g_changeint_signumber;
46 ULONG g_changeint_sigbit;
47 int g_scan_interval; /* Time between successive diskchange checks */
48 int g_scan_time; /* Countdown for diskchange */
49 int g_time; /* Current time */
51 char g_device[80]; /* SCSI device name */
52 short g_unit; /* SCSI unit */
54 int g_inhibited; /* Number of active INHIBIT(TRUE) packets */
56 ULONG g_memory_type;
57 WORD g_retry_mode;
58 WORD g_use_rock_ridge; /* Use Rock Ridge flag 'R' */
59 WORD g_use_joliet; /* Use Joliet flag 'J' */
60 WORD g_maybe_map_to_lowercase; /* Conditional map to lower case flag 'ML' */
61 WORD g_map_to_lowercase; /* Map to lower case flag 'L' */
62 int g_std_buffers; /* Number of buffers for standard SCSI access */
63 int g_file_buffers; /* Number of buffers for contiguous reads */
64 t_bool g_show_version_numbers; /* Show version numbers */
65 t_bool g_disk_inserted; /* Is a disk inserted? */
66 char g_play_cdda_command[80]; /* Command invoked if appicon is activated */
67 UBYTE playing; /* CD-DA play status */
69 int g_cdrom_errno;
70 int g_ignore_blocklength; /* should be FALSE */
72 /* HFS */
73 char g_data_fork_extension[17]; /* should be initialized with zeros */
74 char g_resource_fork_extension[17];/* dito */
75 t_bool g_convert_hfs_filenames; /* should be FALSE */
76 t_bool g_convert_hfs_spaces; /* dito */
77 /* iso9660 */
78 int iso_errno;
79 /* intui */
80 struct MsgPort *g_app_port;
81 struct AppIcon *g_app_icon;
82 ULONG g_app_sigbit;
83 int g_retry_show_cdda_icon; /* should be FALSE */
84 struct DiskObject *g_user_disk_object; /* should be NULL */
85 /* generic */
86 t_bool g_hfs_first; /* should be FALSE */
87 /* intui */
88 struct Image g_disk_object_image;
89 UBYTE *g_tool_types[1]; /* should be initialized with NULL */
90 struct DiskObject g_disk_object;
91 LONG g_xpos; /* NO_ICON_POSITION */
92 LONG g_ypos; /* NO_ICON_POSITION */
93 t_fh_node *g_fh_list;
94 t_lock_node *g_lock_list;
95 t_vol_reg_node *g_volume_list;
96 struct Task *PrefsProc;
98 /* codepage translation */
99 struct codeset *uniCodeset;
101 PORT *Dback;
102 MSG DummyMsg;
103 #if !defined(NDEBUG) || defined(DEBUG_SECTORS)
104 /* DEBUGGING */
105 PORT *Dbport; /* owned by the debug process */
106 WORD DBDisable;
107 #endif
111 #define DOSBase (global->g_DOSBase)
112 #define UtilityBase (global->g_UtilityBase)
113 #define IntuitionBase (global->g_IntuitionBase)
114 #define IconBase (global->g_IconBase)
115 #define WorkbenchBase (global->g_WorkbenchBase)
116 #define CodesetsBase (global->g_CodesetsBase)
118 #endif /* GLOBALS_H */