-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmounter.h
42 lines (36 loc) · 1.14 KB
/
mounter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef MOUNTER_H
#define MOUNTER_H
struct UnitStruct
{
ULONG unitNum;
UBYTE deviceType;
struct ConfigDev *configDev;
};
struct MountStruct
{
// Device name. ("myhddriver.device")
// Offset 0.
UBYTE *deviceName;
// Number of units
UWORD numUnits;
// Name string used to set Creator field in FileSystem.resource (if KS 1.3) and in FileSystem.resource entries.
// If NULL: use device name.
// Offset 8.
const UBYTE *creatorName;
// ConfigDev: set if autoconfig board autoboot support is wanted.
// If NULL and bootable partition found: fake ConfigDev is automatically created.
// Offset 12.
struct ConfigDev *configDev;
// SysBase.
// Offset 16.
struct ExecBase *SysBase;
// Array of UnitStructs
struct UnitStruct Units[];
};
APTR W_CreateIORequest(struct MsgPort *ioReplyPort, ULONG size, struct ExecBase *SysBase);
void W_DeleteIORequest(APTR iorequest, struct ExecBase *SysBase);
struct MsgPort *W_CreateMsgPort(struct ExecBase *SysBase);
void W_DeleteMsgPort(struct MsgPort *port, struct ExecBase *SysBase);
int mount_drives(struct ConfigDev *cd, char *devName, struct MountStruct *ms);
LONG MountDrive(struct MountStruct *ms);
#endif