[Android] [PATCH] update to match Medialib api

Duncan McNamara dcn.mcnamara at gmail.com
Tue Aug 14 13:12:37 CEST 2018


---
 medialibrary/jni/AndroidMediaLibrary.cpp | 4 ++--
 medialibrary/jni/AndroidMediaLibrary.h   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/medialibrary/jni/AndroidMediaLibrary.cpp b/medialibrary/jni/AndroidMediaLibrary.cpp
index 45c645035..a3471ae07 100644
--- a/medialibrary/jni/AndroidMediaLibrary.cpp
+++ b/medialibrary/jni/AndroidMediaLibrary.cpp
@@ -618,7 +618,7 @@ void AndroidMediaLibrary::onDiscoveryProgress( const std::string& entryPoint )
 
 }
 
-void AndroidMediaLibrary::onDiscoveryCompleted( const std::string& entryPoint )
+void AndroidMediaLibrary::onDiscoveryCompleted( const std::string& entryPoint, bool success )
 {
     --m_nbDiscovery;
     JNIEnv *env = getEnv();
@@ -646,7 +646,7 @@ void AndroidMediaLibrary::onReloadStarted( const std::string& entryPoint )
     env->DeleteLocalRef(ep);
 }
 
-void AndroidMediaLibrary::onReloadCompleted( const std::string& entryPoint )
+void AndroidMediaLibrary::onReloadCompleted( const std::string& entryPoint, bool success )
 {
     JNIEnv *env = getEnv();
     if (env == NULL) return;
diff --git a/medialibrary/jni/AndroidMediaLibrary.h b/medialibrary/jni/AndroidMediaLibrary.h
index 398eee166..3dd731234 100644
--- a/medialibrary/jni/AndroidMediaLibrary.h
+++ b/medialibrary/jni/AndroidMediaLibrary.h
@@ -111,9 +111,9 @@ public:
 
     void onDiscoveryStarted( const std::string& entryPoint );
     void onDiscoveryProgress( const std::string& entryPoint );
-    void onDiscoveryCompleted( const std::string& entryPoint );
+    void onDiscoveryCompleted( const std::string& entryPoint, bool success );
     void onReloadStarted( const std::string& entryPoint );
-    void onReloadCompleted( const std::string& entryPoint );
+    void onReloadCompleted( const std::string& entryPoint, bool success );
     void onEntryPointBanned( const std::string& entryPoint, bool success );
     void onEntryPointUnbanned( const std::string& entryPoint, bool success );
     void onEntryPointRemoved( const std::string& entryPoint, bool success );
-- 
2.18.0



More information about the Android mailing list