mirror of
https://github.com/sheumann/NetDisk.git
synced 2024-12-21 03:30:02 +00:00
Include the device number as an output value in the MountURLRec structure.
This allows callers to conveniently access the newly-mounted device.
This commit is contained in:
parent
85cb0c5971
commit
525dbbb1c5
1
driver.c
1
driver.c
@ -295,6 +295,7 @@ static Word DoMountURL(struct GSOSDP *dp) {
|
||||
//TODO report disk switch
|
||||
|
||||
mountURLRec->result = OPERATION_SUCCESSFUL;
|
||||
mountURLRec->devNum = dp->dibPointer->DIBDevNum;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -12,6 +12,7 @@ struct MountURLRec {
|
||||
Word byteCount;
|
||||
enum NetDiskError result; /* output value */
|
||||
char *url; /* C-string; will be modified */
|
||||
Word devNum; /* output value: device number */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user