Commit 8514106f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

medialibrary: Bump version & reflect API changes

parent 0630bfa0
MEDIALIBRARY_HASH := cc76d54fd87e9376e6fb9dfbdc10b86762256006
MEDIALIBRARY_HASH := bc1399bf5c3d131596c3e54f6b88e2d983d1e2d8
MEDIALIBRARY_VERSION := git-$(MEDIALIBRARY_HASH)
MEDIALIBRARY_GITURL := https://code.videolan.org/videolan/medialibrary.git
......
......@@ -108,77 +108,77 @@ void wrapEntityDeletedEventCallback( vlc_medialibrary_module_t* ml,
} // end of anonymous namespace
void MediaLibrary::onMediaAdded( std::vector<medialibrary::MediaPtr> media )
void MediaLibrary::onMediaAdded( const std::vector<medialibrary::MediaPtr>& media )
{
wrapEntityEventCallback<vlc_ml_media_t>( m_vlc_ml, media, VLC_ML_EVENT_MEDIA_ADDED );
}
void MediaLibrary::onMediaModified( std::vector<medialibrary::MediaPtr> media )
void MediaLibrary::onMediaModified( const std::vector<medialibrary::MediaPtr>& media )
{
wrapEntityEventCallback<vlc_ml_media_t>( m_vlc_ml, media, VLC_ML_EVENT_MEDIA_UPDATED );
}
void MediaLibrary::onMediaDeleted( std::vector<int64_t> mediaIds )
void MediaLibrary::onMediaDeleted( const std::vector<int64_t>& mediaIds )
{
wrapEntityDeletedEventCallback( m_vlc_ml, mediaIds, VLC_ML_EVENT_MEDIA_DELETED );
}
void MediaLibrary::onArtistsAdded( std::vector<medialibrary::ArtistPtr> artists )
void MediaLibrary::onArtistsAdded( const std::vector<medialibrary::ArtistPtr>& artists )
{
wrapEntityEventCallback<vlc_ml_artist_t>( m_vlc_ml, artists, VLC_ML_EVENT_ARTIST_ADDED );
}
void MediaLibrary::onArtistsModified( std::vector<medialibrary::ArtistPtr> artists )
void MediaLibrary::onArtistsModified( const std::vector<medialibrary::ArtistPtr>& artists )
{
wrapEntityEventCallback<vlc_ml_artist_t>( m_vlc_ml, artists, VLC_ML_EVENT_ARTIST_UPDATED );
}
void MediaLibrary::onArtistsDeleted( std::vector<int64_t> artistIds )
void MediaLibrary::onArtistsDeleted( const std::vector<int64_t>& artistIds )
{
wrapEntityDeletedEventCallback( m_vlc_ml, artistIds, VLC_ML_EVENT_ARTIST_DELETED );
}
void MediaLibrary::onAlbumsAdded( std::vector<medialibrary::AlbumPtr> albums )
void MediaLibrary::onAlbumsAdded( const std::vector<medialibrary::AlbumPtr>& albums )
{
wrapEntityEventCallback<vlc_ml_album_t>( m_vlc_ml, albums, VLC_ML_EVENT_ALBUM_ADDED );
}
void MediaLibrary::onAlbumsModified( std::vector<medialibrary::AlbumPtr> albums )
void MediaLibrary::onAlbumsModified( const std::vector<medialibrary::AlbumPtr>& albums )
{
wrapEntityEventCallback<vlc_ml_album_t>( m_vlc_ml, albums, VLC_ML_EVENT_ALBUM_UPDATED );
}
void MediaLibrary::onAlbumsDeleted( std::vector<int64_t> albumIds )
void MediaLibrary::onAlbumsDeleted( const std::vector<int64_t>& albumIds )
{
wrapEntityDeletedEventCallback( m_vlc_ml, albumIds, VLC_ML_EVENT_ALBUM_DELETED );
}
void MediaLibrary::onPlaylistsAdded( std::vector<medialibrary::PlaylistPtr> playlists )
void MediaLibrary::onPlaylistsAdded( const std::vector<medialibrary::PlaylistPtr>& playlists )
{
wrapEntityEventCallback<vlc_ml_playlist_t>( m_vlc_ml, playlists, VLC_ML_EVENT_PLAYLIST_ADDED );
}
void MediaLibrary::onPlaylistsModified( std::vector<medialibrary::PlaylistPtr> playlists )
void MediaLibrary::onPlaylistsModified( const std::vector<medialibrary::PlaylistPtr>& playlists )
{
wrapEntityEventCallback<vlc_ml_playlist_t>( m_vlc_ml, playlists, VLC_ML_EVENT_PLAYLIST_UPDATED );
}
void MediaLibrary::onPlaylistsDeleted( std::vector<int64_t> playlistIds )
void MediaLibrary::onPlaylistsDeleted( const std::vector<int64_t>& playlistIds )
{
wrapEntityDeletedEventCallback( m_vlc_ml, playlistIds, VLC_ML_EVENT_PLAYLIST_DELETED );
}
void MediaLibrary::onGenresAdded( std::vector<medialibrary::GenrePtr> genres )
void MediaLibrary::onGenresAdded( const std::vector<medialibrary::GenrePtr>& genres )
{
wrapEntityEventCallback<vlc_ml_genre_t>( m_vlc_ml, genres, VLC_ML_EVENT_GENRE_ADDED );
}
void MediaLibrary::onGenresModified( std::vector<medialibrary::GenrePtr> genres )
void MediaLibrary::onGenresModified( const std::vector<medialibrary::GenrePtr>& genres )
{
wrapEntityEventCallback<vlc_ml_genre_t>( m_vlc_ml, genres, VLC_ML_EVENT_GENRE_UPDATED );
}
void MediaLibrary::onGenresDeleted( std::vector<int64_t> genreIds )
void MediaLibrary::onGenresDeleted( const std::vector<int64_t>& genreIds )
{
wrapEntityDeletedEventCallback( m_vlc_ml, genreIds, VLC_ML_EVENT_GENRE_DELETED );
}
......
......@@ -125,21 +125,21 @@ private:
// IMediaLibraryCb interface
public:
virtual void onMediaAdded(std::vector<medialibrary::MediaPtr> media) override;
virtual void onMediaModified(std::vector<medialibrary::MediaPtr> media) override;
virtual void onMediaDeleted(std::vector<int64_t> mediaIds) override;
virtual void onArtistsAdded(std::vector<medialibrary::ArtistPtr> artists) override;
virtual void onArtistsModified(std::vector<medialibrary::ArtistPtr> artists) override;
virtual void onArtistsDeleted(std::vector<int64_t> artistsIds) override;
virtual void onAlbumsAdded(std::vector<medialibrary::AlbumPtr> albums) override;
virtual void onAlbumsModified(std::vector<medialibrary::AlbumPtr> albums) override;
virtual void onAlbumsDeleted(std::vector<int64_t> albumsIds) override;
virtual void onPlaylistsAdded(std::vector<medialibrary::PlaylistPtr> playlists) override;
virtual void onPlaylistsModified(std::vector<medialibrary::PlaylistPtr> playlists) override;
virtual void onPlaylistsDeleted(std::vector<int64_t> playlistIds) override;
virtual void onGenresAdded(std::vector<medialibrary::GenrePtr> genres) override;
virtual void onGenresModified(std::vector<medialibrary::GenrePtr> genres) override;
virtual void onGenresDeleted(std::vector<int64_t> genreIds) override;
virtual void onMediaAdded( const std::vector<medialibrary::MediaPtr>& media) override;
virtual void onMediaModified( const std::vector<medialibrary::MediaPtr>& media) override;
virtual void onMediaDeleted( const std::vector<int64_t>& mediaIds) override;
virtual void onArtistsAdded( const std::vector<medialibrary::ArtistPtr>& artists) override;
virtual void onArtistsModified( const std::vector<medialibrary::ArtistPtr>& artists) override;
virtual void onArtistsDeleted( const std::vector<int64_t>& artistsIds) override;
virtual void onAlbumsAdded( const std::vector<medialibrary::AlbumPtr>& albums) override;
virtual void onAlbumsModified( const std::vector<medialibrary::AlbumPtr>& albums) override;
virtual void onAlbumsDeleted( const std::vector<int64_t>& albumsIds) override;
virtual void onPlaylistsAdded( const std::vector<medialibrary::PlaylistPtr>& playlists) override;
virtual void onPlaylistsModified( const std::vector<medialibrary::PlaylistPtr>& playlists) override;
virtual void onPlaylistsDeleted( const std::vector<int64_t>& playlistIds) override;
virtual void onGenresAdded( const std::vector<medialibrary::GenrePtr>& genres) override;
virtual void onGenresModified( const std::vector<medialibrary::GenrePtr>& genres) override;
virtual void onGenresDeleted( const std::vector<int64_t>& genreIds) override;
virtual void onDiscoveryStarted(const std::string& entryPoint) override;
virtual void onDiscoveryProgress(const std::string& entryPoint) override;
virtual void onDiscoveryCompleted(const std::string& entryPoint, bool success) override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment