-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmre_io.c
47 lines (40 loc) · 1.08 KB
/
mre_io.c
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
43
44
45
46
47
/**
MRE IO: File operations, etc
**/
#include "share.h"
#include "mre_io.h"
/*****************************************************************************
* FUNCTION
* mre_get_drv
* DESCRIPTION
* This function returns a no corresponding to a drive found
* PARAMETERS
* none
* RETURNS
* g_mre_drv [OUT] drive found on device
*****************************************************************************/
VMINT mre_get_drv (void)
{
return g_mre_drv;
}
/*****************************************************************************
* FUNCTION
* mre_set_drv
* DESCRIPTION
* This function stores a no corresponding to a drive found
* PARAMETERS
* none
* RETURNS
* none
*****************************************************************************/
void mre_set_drv (void)
{
VMINT drv;
vm_log_debug ("Entering mre_set_drv function");
if ( (drv = vm_get_removable_driver ()) <0 )
{
drv = vm_get_system_driver ();
}
g_mre_drv = drv;
vm_log_debug ("Exiting mre_set_drv function");
}