[libbluray-devel] add dir_open_default()

hpi1 git at videolan.org
Tue Feb 3 09:06:49 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Feb  3 09:40:32 2015 +0200| [0b248b7ed18e6e0417a2294ad0d05cfe6777aa5b] | committer: hpi1

add dir_open_default()

(access temporary directories in host filesystem)

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=0b248b7ed18e6e0417a2294ad0d05cfe6777aa5b
---

 src/file/dir_posix.c |    5 +++++
 src/file/dir_win32.c |    5 +++++
 src/file/file.h      |    2 ++
 3 files changed, 12 insertions(+)

diff --git a/src/file/dir_posix.c b/src/file/dir_posix.c
index 2752657..fcb9c01 100644
--- a/src/file/dir_posix.c
+++ b/src/file/dir_posix.c
@@ -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;
+}
diff --git a/src/file/dir_win32.c b/src/file/dir_win32.c
index 6fb7b9a..fde0106 100644
--- a/src/file/dir_win32.c
+++ b/src/file/dir_win32.c
@@ -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;
+}
diff --git a/src/file/file.h b/src/file/file.h
index 5984c52..2228ee7 100644
--- a/src/file/file.h
+++ b/src/file/file.h
@@ -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_ */



More information about the libbluray-devel mailing list