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:
Stephen Heumann 2018-08-14 22:40:42 -05:00
parent 85cb0c5971
commit 525dbbb1c5
2 changed files with 2 additions and 0 deletions

View File

@ -295,6 +295,7 @@ static Word DoMountURL(struct GSOSDP *dp) {
//TODO report disk switch //TODO report disk switch
mountURLRec->result = OPERATION_SUCCESSFUL; mountURLRec->result = OPERATION_SUCCESSFUL;
mountURLRec->devNum = dp->dibPointer->DIBDevNum;
return 0; return 0;
} }

View File

@ -12,6 +12,7 @@ struct MountURLRec {
Word byteCount; Word byteCount;
enum NetDiskError result; /* output value */ enum NetDiskError result; /* output value */
char *url; /* C-string; will be modified */ char *url; /* C-string; will be modified */
Word devNum; /* output value: device number */
}; };
#endif #endif