[libbluray-devel] Make functions that are called only from native side private
hpi1
git at videolan.org
Fri Feb 27 11:50:43 CET 2015
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Feb 26 10:27:33 2015 +0200| [040036dc9bb6a8ca9f97ad5916c0a1e60fb1eabc] | committer: hpi1
Make functions that are called only from native side private
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=040036dc9bb6a8ca9f97ad5916c0a1e60fb1eabc
---
src/libbluray/bdj/java/org/videolan/Libbluray.java | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/libbluray/bdj/java/org/videolan/Libbluray.java b/src/libbluray/bdj/java/org/videolan/Libbluray.java
index 1e00736..857abf7 100644
--- a/src/libbluray/bdj/java/org/videolan/Libbluray.java
+++ b/src/libbluray/bdj/java/org/videolan/Libbluray.java
@@ -46,7 +46,9 @@ import org.videolan.media.content.PlayerManager;
* This class allows BDJ to call various libbluray functions.
*/
public class Libbluray {
- protected static void init(long nativePointer, String discID, String discRoot,
+
+ /* called only from native code */
+ private static void init(long nativePointer, String discID, String discRoot,
String persistentRoot, String budaRoot) {
System.setProperty("dvb.persistent.root", persistentRoot);
@@ -146,7 +148,11 @@ public class Libbluray {
BDJSocketFactory.init();
}
- public static void shutdown() {
+ /* called only from native code */
+ private static void shutdown() {
+ if (nativePointer == 0) {
+ return;
+ }
try {
stopTitle(true);
BDJLoader.shutdown();
@@ -392,7 +398,8 @@ public class Libbluray {
}
}
- public static boolean processEvent(int event, int param) {
+ /* called only from native code */
+ private static boolean processEvent(int event, int param) {
boolean result = true;
int key = 0;
More information about the libbluray-devel
mailing list