[libbluray-devel] Add const

hpi1 git at videolan.org
Sun Feb 15 22:45:57 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Feb 15 22:09:34 2015 +0200| [113c3f12674ee0883fcc982074b873b112708514] | committer: hpi1

Add const

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

 src/libbluray/bdj/native/bdjo.c |   12 ++++++------
 src/libbluray/bdj/native/bdjo.h |    2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/libbluray/bdj/native/bdjo.c b/src/libbluray/bdj/native/bdjo.c
index 031f866..628fb7a 100644
--- a/src/libbluray/bdj/native/bdjo.c
+++ b/src/libbluray/bdj/native/bdjo.c
@@ -40,7 +40,7 @@
  *
  */
 
-static jobject _make_terminal_info(JNIEnv* env, BDJO_TERMINAL_INFO *p)
+static jobject _make_terminal_info(JNIEnv* env, const BDJO_TERMINAL_INFO *p)
 {
     jstring jdefault_font = (*env)->NewStringUTF(env, p->default_font);
     return bdj_make_object(env, "org/videolan/bdjo/TerminalInfo", "(Ljava/lang/String;IZZ)V",
@@ -48,7 +48,7 @@ static jobject _make_terminal_info(JNIEnv* env, BDJO_TERMINAL_INFO *p)
                            (jint)p->menu_call_mask, (jint)p->title_search_mask);
 }
 
-static jobject _make_app_cache_info(JNIEnv* env, BDJO_APP_CACHE_INFO *p)
+static jobject _make_app_cache_info(JNIEnv* env, const BDJO_APP_CACHE_INFO *p)
 {
     unsigned ii;
 
@@ -73,7 +73,7 @@ static jobject _make_app_cache_info(JNIEnv* env, BDJO_APP_CACHE_INFO *p)
     return app_cache_array;
 }
 
-static jobject _make_accessible_playlists(JNIEnv* env, BDJO_ACCESSIBLE_PLAYLISTS *p)
+static jobject _make_accessible_playlists(JNIEnv* env, const BDJO_ACCESSIBLE_PLAYLISTS *p)
 {
     unsigned ii;
 
@@ -92,7 +92,7 @@ static jobject _make_accessible_playlists(JNIEnv* env, BDJO_ACCESSIBLE_PLAYLISTS
                            playlists);
 }
 
-static jobject _make_app(JNIEnv* env, BDJO_APP *p)
+static jobject _make_app(JNIEnv* env, const BDJO_APP *p)
 {
     unsigned ii;
 
@@ -171,7 +171,7 @@ static jobject _make_app(JNIEnv* env, BDJO_APP *p)
     return entry;
 }
 
-static jobjectArray _make_app_management_table(JNIEnv* env, BDJO_APP_MANAGEMENT_TABLE *p)
+static jobjectArray _make_app_management_table(JNIEnv* env, const BDJO_APP_MANAGEMENT_TABLE *p)
 {
     unsigned ii;
 
@@ -188,7 +188,7 @@ static jobjectArray _make_app_management_table(JNIEnv* env, BDJO_APP_MANAGEMENT_
     return entries;
 }
 
-jobject bdjo_make_jobj(JNIEnv* env, BDJO *p)
+jobject bdjo_make_jobj(JNIEnv* env, const BDJO *p)
 {
     jobject terminal_info = _make_terminal_info(env, &p->terminal_info);
     JNICHK(terminal_info);
diff --git a/src/libbluray/bdj/native/bdjo.h b/src/libbluray/bdj/native/bdjo.h
index 556c6ce..4f35a60 100644
--- a/src/libbluray/bdj/native/bdjo.h
+++ b/src/libbluray/bdj/native/bdjo.h
@@ -26,6 +26,6 @@
 
 struct bdjo_data;
 
-BD_PRIVATE jobject bdjo_make_jobj(JNIEnv* env, struct bdjo_data *bdjo);
+BD_PRIVATE jobject bdjo_make_jobj(JNIEnv* env, const struct bdjo_data *bdjo);
 
 #endif /* BDJO_H_ */



More information about the libbluray-devel mailing list