[Android] Implement new folders API
Duncan McNamara
git at videolan.org
Thu Feb 24 10:58:19 UTC 2022
vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Thu Jan 20 15:53:13 2022 +0100| [8aa80921cd38f1558309c0787c6b466c439ec2f7] | committer: Nicolas Pomepuy
Implement new folders API
> https://code.videolan.org/videolan/vlc-android/commit/8aa80921cd38f1558309c0787c6b466c439ec2f7
---
medialibrary/jni/AndroidMediaLibrary.cpp | 14 ++++++++++++++
medialibrary/jni/AndroidMediaLibrary.h | 4 ++++
medialibrary/jni/utils.h | 3 +++
3 files changed, 21 insertions(+)
diff --git a/medialibrary/jni/AndroidMediaLibrary.cpp b/medialibrary/jni/AndroidMediaLibrary.cpp
index 01ad235c9..64cb7f008 100644
--- a/medialibrary/jni/AndroidMediaLibrary.cpp
+++ b/medialibrary/jni/AndroidMediaLibrary.cpp
@@ -1150,3 +1150,17 @@ void
AndroidMediaLibrary::detachCurrentThread() {
myVm->DetachCurrentThread();
}
+
+void
+AndroidMediaLibrary::onFoldersAdded( std::vector<medialibrary::FolderPtr> )
+{
+}
+
+void
+AndroidMediaLibrary::onFoldersModified( std::set<int64_t> )
+{
+}
+
+void AndroidMediaLibrary::onFoldersDeleted( std::set<int64_t> )
+{
+}
diff --git a/medialibrary/jni/AndroidMediaLibrary.h b/medialibrary/jni/AndroidMediaLibrary.h
index acf143271..32f36a7cf 100644
--- a/medialibrary/jni/AndroidMediaLibrary.h
+++ b/medialibrary/jni/AndroidMediaLibrary.h
@@ -163,6 +163,10 @@ public:
void onGenresModified( std::set<int64_t> );
void onGenresDeleted( std::set<int64_t> );
+ void onFoldersAdded( std::vector<medialibrary::FolderPtr> );
+ void onFoldersModified( std::set<int64_t> );
+ void onFoldersDeleted( std::set<int64_t> );
+
void onDiscoveryStarted();
void onDiscoveryProgress( const std::string& entryPoint );
void onDiscoveryCompleted();
diff --git a/medialibrary/jni/utils.h b/medialibrary/jni/utils.h
index 4a2f668b4..f41f4316b 100644
--- a/medialibrary/jni/utils.h
+++ b/medialibrary/jni/utils.h
@@ -165,6 +165,9 @@ struct fields {
jmethodID onGenresAddedId;
jmethodID onGenresModifiedId;
jmethodID onGenresDeletedId;
+ jmethodID onFoldersAddedId;
+ jmethodID onFoldersModifiedId;
+ jmethodID onFoldersDeletedId;
jmethodID onPlaylistsAddedId;
jmethodID onPlaylistsModifiedId;
jmethodID onPlaylistsDeletedId;
More information about the Android
mailing list