[libbluray-devel] MountManager: Xlets are not allowed to call unmount()/unmountAll() directly

hpi1 git at videolan.org
Mon Mar 23 09:30:28 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Mar 23 10:29:43 2015 +0200| [2a7b24f0d22a8fc827a0d78bf263b086cab9bbe4] | committer: hpi1

MountManager: Xlets are not allowed to call unmount()/unmountAll() directly

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

 src/libbluray/bdj/java/org/videolan/MountManager.java |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/MountManager.java b/src/libbluray/bdj/java/org/videolan/MountManager.java
index 368f3a0..ce2978c 100644
--- a/src/libbluray/bdj/java/org/videolan/MountManager.java
+++ b/src/libbluray/bdj/java/org/videolan/MountManager.java
@@ -167,7 +167,7 @@ public class MountManager {
         }
     }
 
-    public static void unmount(int jarId) {
+    private static void unmount(int jarId) {
         logger.info("Unmounting JAR: " + jarId);
 
         final Integer id = new Integer(jarId);
@@ -192,7 +192,8 @@ public class MountManager {
         }
     }
 
-    public static void unmountAll() {
+    /* package private, called from Libbluray.shutdown() */
+    protected static void unmountAll() {
         logger.info("Unmounting all JARs");
 
         Object[] dirs;
@@ -208,6 +209,7 @@ public class MountManager {
         }
     }
 
+    /* called from org/dvb/dsmcc/ServiceDomain */
     public static String getMount(int jarId) {
         Integer id = new Integer(jarId);
         MountPoint mountPoint;



More information about the libbluray-devel mailing list