1 |
|
/* |
2 |
|
* macos_util.h - MacOS definitions/utility functions |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2000 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2002 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
263 |
|
extern int FindFreeDriveNumber(int num); // Find first free drive number, starting at "num" |
264 |
|
extern void MountVolume(void *fh); // Mount volume with given file handle (see sys.h) |
265 |
|
extern void FileDiskLayout(loff_t size, uint8 *data, loff_t &start_byte, loff_t &real_size); // Calculate disk image file layout given file size and first 256 data bytes |
266 |
< |
extern uint32 DebugUtil(uint32 Selector); // DebugUtil() Replacement |
266 |
> |
extern uint32 DebugUtil(uint32 Selector); // DebugUtil() Replacement |
267 |
> |
extern uint32 TimeToMacTime(time_t t); // Convert time_t value to MacOS time |
268 |
|
|
269 |
< |
// Construct four-character-code from string |
269 |
> |
// Construct four-character-code |
270 |
|
#define FOURCC(a,b,c,d) (((uint32)(a) << 24) | ((uint32)(b) << 16) | ((uint32)(c) << 8) | (uint32)(d)) |
271 |
|
|
272 |
|
// Emulator identification codes (4 and 2 characters) |