[Android] medialibrary: Add genre modification callbacks

Hugo Beauzée-Luyssen git at videolan.org
Tue Aug 14 17:46:34 CEST 2018


vlc-android | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Aug 14 17:43:55 2018 +0200| [7ca97666e5e32a10663dac9686f9b0979922fcae] | committer: Hugo Beauzée-Luyssen

medialibrary: Add genre modification callbacks

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

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

diff --git a/medialibrary/jni/AndroidMediaLibrary.cpp b/medialibrary/jni/AndroidMediaLibrary.cpp
index a3471ae07..a826f8300 100644
--- a/medialibrary/jni/AndroidMediaLibrary.cpp
+++ b/medialibrary/jni/AndroidMediaLibrary.cpp
@@ -578,6 +578,18 @@ void AndroidMediaLibrary::onPlaylistsDeleted( std::vector<int64_t> ids )
 
 }
 
+void AndroidMediaLibrary::onGenresAdded( std::vector<medialibrary::GenrePtr> )
+{
+}
+
+void AndroidMediaLibrary::onGenresModified( std::vector<medialibrary::GenrePtr> )
+{
+}
+
+void AndroidMediaLibrary::onGenresDeleted( std::vector<int64_t> )
+{
+}
+
 void AndroidMediaLibrary::onAlbumsDeleted( std::vector<int64_t> ids )
 {
 
diff --git a/medialibrary/jni/AndroidMediaLibrary.h b/medialibrary/jni/AndroidMediaLibrary.h
index 3dd731234..d3e7c51d5 100644
--- a/medialibrary/jni/AndroidMediaLibrary.h
+++ b/medialibrary/jni/AndroidMediaLibrary.h
@@ -109,6 +109,10 @@ public:
     void onPlaylistsModified( std::vector<medialibrary::PlaylistPtr> playlist );
     void onPlaylistsDeleted( std::vector<int64_t> ids );
 
+    void onGenresAdded( std::vector<medialibrary::GenrePtr> );
+    void onGenresModified( std::vector<medialibrary::GenrePtr> );
+    void onGenresDeleted( std::vector<int64_t> );
+
     void onDiscoveryStarted( const std::string& entryPoint );
     void onDiscoveryProgress( const std::string& entryPoint );
     void onDiscoveryCompleted( const std::string& entryPoint, bool success );



More information about the Android mailing list