[libbluray-devel] Use correct type instead of void*

hpi1 git at videolan.org
Wed Sep 12 22:03:46 CEST 2012


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Sep 12 22:07:46 2012 +0300| [c7a180533337211605fe8c7db6394b3105d29b52] | committer: hpi1

Use correct type instead of void*

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

 src/libbluray/bdj/bdj.c |    3 ++-
 src/libbluray/bdj/bdj.h |    6 +++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index c14c794..a236947 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -38,7 +38,8 @@ typedef jint (JNICALL * fptr_JNI_CreateJavaVM) (JavaVM **pvm, void **penv,void *
 int start_xlet(JNIEnv* env, const char* path, jobject bdjo, BDJAVA* bdjava);
 void* load_jvm();
 
-BDJAVA* bdj_open(const char *path, const char* start, void* bd, void* registers)
+BDJAVA* bdj_open(const char *path, const char *start,
+                 struct bluray *bd, struct bd_registers_s *registers)
 {
     // first load the jvm using dlopen
     void* jvm_lib = load_jvm();
diff --git a/src/libbluray/bdj/bdj.h b/src/libbluray/bdj/bdj.h
index ce6f65e..7b3e839 100644
--- a/src/libbluray/bdj/bdj.h
+++ b/src/libbluray/bdj/bdj.h
@@ -24,7 +24,11 @@
 
 typedef struct bdjava_s BDJAVA;
 
-BDJAVA* bdj_open(const char *path, const char *start, void* bd, void* registers);
+struct bluray;
+struct bd_registers_s;
+
+BDJAVA* bdj_open(const char *path, const char *start,
+                 struct bluray *bd, struct bd_registers_s *registers);
 void bdj_close(BDJAVA *bdjava);
 
 void bdj_send_event(BDJAVA *bdjava, int type, int keyCode);



More information about the libbluray-devel mailing list