[Android] medialibrary: Match API changes

Hugo Beauzée-Luyssen git at videolan.org
Tue Aug 21 11:53:43 CEST 2018


vlc-android | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Aug 17 14:29:27 2018 +0200| [f676edca4f55c204006f7e2b4a03b7cd0be5dc38] | committer: Hugo Beauzée-Luyssen

medialibrary: Match API changes

> https://code.videolan.org/videolan/vlc-android/commit/f676edca4f55c204006f7e2b4a03b7cd0be5dc38
---

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

diff --git a/medialibrary/jni/AndroidMediaLibrary.cpp b/medialibrary/jni/AndroidMediaLibrary.cpp
index 350fb9df7..e89d553cc 100644
--- a/medialibrary/jni/AndroidMediaLibrary.cpp
+++ b/medialibrary/jni/AndroidMediaLibrary.cpp
@@ -417,7 +417,7 @@ AndroidMediaLibrary::requestThumbnail( int64_t media_id )
 }
 
 void
-AndroidMediaLibrary::onMediaAdded( std::vector<medialibrary::MediaPtr> mediaList )
+AndroidMediaLibrary::onMediaAdded( const std::vector<medialibrary::MediaPtr>& mediaList )
 {
     if (m_mediaAddedType & FLAG_MEDIA_ADDED_AUDIO || m_mediaAddedType & FLAG_MEDIA_ADDED_VIDEO
             || m_mediaAddedType & FLAG_MEDIA_ADDED_AUDIO_EMPTY) {
@@ -461,7 +461,7 @@ AndroidMediaLibrary::onMediaAdded( std::vector<medialibrary::MediaPtr> mediaList
     }
 }
 
-void AndroidMediaLibrary::onMediaModified( std::vector<medialibrary::MediaPtr> mediaList )
+void AndroidMediaLibrary::onMediaModified( const std::vector<medialibrary::MediaPtr>& mediaList )
 {
     if (m_mediaUpdatedType & FLAG_MEDIA_UPDATED_AUDIO || m_mediaUpdatedType & FLAG_MEDIA_UPDATED_VIDEO
             || m_mediaUpdatedType & FLAG_MEDIA_UPDATED_AUDIO_EMPTY) {
@@ -504,12 +504,12 @@ void AndroidMediaLibrary::onMediaModified( std::vector<medialibrary::MediaPtr> m
     }
 }
 
-void AndroidMediaLibrary::onMediaDeleted( std::vector<int64_t> ids )
+void AndroidMediaLibrary::onMediaDeleted( const std::vector<int64_t>& ids )
 {
 
 }
 
-void AndroidMediaLibrary::onArtistsAdded( std::vector<medialibrary::ArtistPtr> artists )
+void AndroidMediaLibrary::onArtistsAdded( const std::vector<medialibrary::ArtistPtr>& artists )
 {
     if (m_mediaAddedType & (FLAG_MEDIA_ADDED_AUDIO_EMPTY|FLAG_MEDIA_ADDED_AUDIO))
     {
@@ -519,7 +519,7 @@ void AndroidMediaLibrary::onArtistsAdded( std::vector<medialibrary::ArtistPtr> a
     }
 }
 
-void AndroidMediaLibrary::onArtistsModified( std::vector<medialibrary::ArtistPtr> artist )
+void AndroidMediaLibrary::onArtistsModified( const std::vector<medialibrary::ArtistPtr>& artist )
 {
     if (m_mediaUpdatedType & FLAG_MEDIA_UPDATED_AUDIO_EMPTY)
     {
@@ -532,12 +532,12 @@ void AndroidMediaLibrary::onArtistsModified( std::vector<medialibrary::ArtistPtr
     }
 }
 
-void AndroidMediaLibrary::onArtistsDeleted( std::vector<int64_t> ids )
+void AndroidMediaLibrary::onArtistsDeleted( const std::vector<int64_t>& ids )
 {
 
 }
 
-void AndroidMediaLibrary::onAlbumsAdded( std::vector<medialibrary::AlbumPtr> albums )
+void AndroidMediaLibrary::onAlbumsAdded( const std::vector<medialibrary::AlbumPtr>& albums )
 {
     if (m_mediaAddedType & FLAG_MEDIA_ADDED_AUDIO)
     {
@@ -550,7 +550,7 @@ void AndroidMediaLibrary::onAlbumsAdded( std::vector<medialibrary::AlbumPtr> alb
     }
 }
 
-void AndroidMediaLibrary::onAlbumsModified( std::vector<medialibrary::AlbumPtr> albums )
+void AndroidMediaLibrary::onAlbumsModified( const std::vector<medialibrary::AlbumPtr>& albums )
 {
     if (m_mediaUpdatedType & FLAG_MEDIA_UPDATED_AUDIO)
     {
@@ -563,34 +563,34 @@ void AndroidMediaLibrary::onAlbumsModified( std::vector<medialibrary::AlbumPtr>
     }
 }
 
-void AndroidMediaLibrary::onPlaylistsAdded( std::vector<medialibrary::PlaylistPtr> playlists )
+void AndroidMediaLibrary::onPlaylistsAdded( const std::vector<medialibrary::PlaylistPtr>& playlists )
 {
 
 }
 
-void AndroidMediaLibrary::onPlaylistsModified( std::vector<medialibrary::PlaylistPtr> playlist )
+void AndroidMediaLibrary::onPlaylistsModified( const std::vector<medialibrary::PlaylistPtr>& playlist )
 {
 
 }
 
-void AndroidMediaLibrary::onPlaylistsDeleted( std::vector<int64_t> ids )
+void AndroidMediaLibrary::onPlaylistsDeleted( const std::vector<int64_t>& ids )
 {
 
 }
 
-void AndroidMediaLibrary::onGenresAdded( std::vector<medialibrary::GenrePtr> )
+void AndroidMediaLibrary::onGenresAdded( const std::vector<medialibrary::GenrePtr>& )
 {
 }
 
-void AndroidMediaLibrary::onGenresModified( std::vector<medialibrary::GenrePtr> )
+void AndroidMediaLibrary::onGenresModified( const std::vector<medialibrary::GenrePtr>& )
 {
 }
 
-void AndroidMediaLibrary::onGenresDeleted( std::vector<int64_t> )
+void AndroidMediaLibrary::onGenresDeleted( const std::vector<int64_t>& )
 {
 }
 
-void AndroidMediaLibrary::onAlbumsDeleted( std::vector<int64_t> ids )
+void AndroidMediaLibrary::onAlbumsDeleted( const std::vector<int64_t>& ids )
 {
 
 }
diff --git a/medialibrary/jni/AndroidMediaLibrary.h b/medialibrary/jni/AndroidMediaLibrary.h
index ae3f24947..1807751be 100644
--- a/medialibrary/jni/AndroidMediaLibrary.h
+++ b/medialibrary/jni/AndroidMediaLibrary.h
@@ -90,25 +90,25 @@ public:
 
     void requestThumbnail( int64_t media_id );
 
-    void onMediaAdded( std::vector<medialibrary::MediaPtr> media );
-    void onMediaModified( std::vector<medialibrary::MediaPtr> media ) ;
-    void onMediaDeleted( std::vector<int64_t> ids ) ;
+    void onMediaAdded( const std::vector<medialibrary::MediaPtr>& media );
+    void onMediaModified( const std::vector<medialibrary::MediaPtr>& media ) ;
+    void onMediaDeleted( const std::vector<int64_t>& ids ) ;
 
-    void onArtistsAdded( std::vector<medialibrary::ArtistPtr> artists ) ;
-    void onArtistsModified( std::vector<medialibrary::ArtistPtr> artist );
-    void onArtistsDeleted( std::vector<int64_t> ids );
+    void onArtistsAdded( const std::vector<medialibrary::ArtistPtr>& artists ) ;
+    void onArtistsModified( const std::vector<medialibrary::ArtistPtr>& artist );
+    void onArtistsDeleted( const std::vector<int64_t>& ids );
 
-    void onAlbumsAdded( std::vector<medialibrary::AlbumPtr> albums );
-    void onAlbumsModified( std::vector<medialibrary::AlbumPtr> albums );
-    void onAlbumsDeleted( std::vector<int64_t> ids );
+    void onAlbumsAdded( const std::vector<medialibrary::AlbumPtr>& albums );
+    void onAlbumsModified( const std::vector<medialibrary::AlbumPtr>& albums );
+    void onAlbumsDeleted( const std::vector<int64_t>& ids );
 
-    void onPlaylistsAdded( std::vector<medialibrary::PlaylistPtr> playlists );
-    void onPlaylistsModified( std::vector<medialibrary::PlaylistPtr> playlist );
-    void onPlaylistsDeleted( std::vector<int64_t> ids );
+    void onPlaylistsAdded( const std::vector<medialibrary::PlaylistPtr>& playlists );
+    void onPlaylistsModified( const std::vector<medialibrary::PlaylistPtr>& playlist );
+    void onPlaylistsDeleted( const std::vector<int64_t>& ids );
 
-    void onGenresAdded( std::vector<medialibrary::GenrePtr> );
-    void onGenresModified( std::vector<medialibrary::GenrePtr> );
-    void onGenresDeleted( std::vector<int64_t> );
+    void onGenresAdded( const std::vector<medialibrary::GenrePtr>& );
+    void onGenresModified( const std::vector<medialibrary::GenrePtr>& );
+    void onGenresDeleted( const std::vector<int64_t>& );
 
     void onDiscoveryStarted( const std::string& entryPoint );
     void onDiscoveryProgress( const std::string& entryPoint );



More information about the Android mailing list