1 |
|
/* |
2 |
|
* macos_util.h - MacOS definitions/utility functions |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2004 Christian Bauer and Marc Hellwig |
4 |
> |
* SheepShaver (C) 1997-2005 Christian Bauer and Marc Hellwig |
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 |
353 |
|
extern int FindFreeDriveNumber(int num); // Find first free drive number, starting at "num" |
354 |
|
extern void MountVolume(void *fh); // Mount volume with given file handle (see sys.h) |
355 |
|
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 |
356 |
< |
extern void *FindLibSymbol(char *lib, char *sym); // Find symbol in shared library |
356 |
> |
extern uint32 FindLibSymbol(char *lib, char *sym); // Find symbol in shared library |
357 |
|
extern void InitCallUniversalProc(void); // Init CallUniversalProc() |
358 |
|
extern long CallUniversalProc(void *upp, uint32 info); // CallUniversalProc() |
359 |
|
extern uint32 TimeToMacTime(time_t t); // Convert time_t value to MacOS time |
360 |
+ |
extern uint32 Mac_sysalloc(uint32 size); // Allocate block in MacOS system heap zone |
361 |
+ |
extern void Mac_sysfree(uint32 addr); // Release block occupied by the nonrelocatable block p |
362 |
|
|
363 |
|
// Construct four-character-code from string |
364 |
|
#define FOURCC(a,b,c,d) (((uint32)(a) << 24) | ((uint32)(b) << 16) | ((uint32)(c) << 8) | (uint32)(d)) |