Commit 0b248b7e authored by Petri Hintukainen's avatar Petri Hintukainen

add dir_open_default()

(access temporary directories in host filesystem)
parent 9123edac
......@@ -80,3 +80,8 @@ static BD_DIR_H *_dir_open_posix(const char* dirname)
}
BD_DIR_H* (*dir_open)(const char* dirname) = _dir_open_posix;
BD_DIR_OPEN dir_open_default(void)
{
return _dir_open_posix;
}
......@@ -104,3 +104,8 @@ static BD_DIR_H *_dir_open_win32(const char* dirname)
}
BD_DIR_H* (*dir_open)(const char* dirname) = _dir_open_win32;
BD_DIR_OPEN dir_open_default(void)
{
return _dir_open_win32;
}
......@@ -59,4 +59,6 @@ BD_PRIVATE BD_FILE_OPEN file_open_default(void);
BD_PRIVATE extern BD_DIR_H* (*dir_open)(const char* dirname);
BD_PRIVATE BD_DIR_OPEN dir_open_default(void);
#endif /* FILE_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment