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

MediaLibrary items use int64_t as their identifiers

parent 01862762
......@@ -36,7 +36,7 @@ extern "C" {
typedef struct album_item {
LIBRARY_ITEM_COMMON
unsigned int i_id;
int64_t i_id;
char* psz_name;
char* psz_summary;
time_t i_release_date;
......
......@@ -40,7 +40,7 @@ typedef struct artist_item
char* psz_name;
char* psz_artwork;
uint32_t i_nb_albums;
uint32_t i_id;
int64_t i_id;
} artist_item;
artist_item*
......
......@@ -36,7 +36,7 @@ extern "C" {
typedef struct genre_item {
LIBRARY_ITEM_COMMON
unsigned int i_id;
int64_t i_id;
char* psz_name;
} genre_item;
......
......@@ -358,7 +358,7 @@ media_library_get_playlists( media_library* p_ml, media_library_list_cb cb, void
}
void
media_library_get_artist_albums( media_library* p_ml, unsigned int i_artist_id, media_library_list_cb cb, void* p_user_data )
media_library_get_artist_albums( media_library* p_ml, int64_t i_artist_id, media_library_list_cb cb, void* p_user_data )
{
ArtistPtr artist = p_ml->ml->artist( i_artist_id );
if (artist == nullptr)
......@@ -372,7 +372,7 @@ media_library_get_artist_albums( media_library* p_ml, unsigned int i_artist_id,
}
void
media_library_get_album_songs(media_library* p_ml, unsigned int i_album_id, media_library_list_cb cb, void* p_user_data)
media_library_get_album_songs(media_library* p_ml, int64_t i_album_id, media_library_list_cb cb, void* p_user_data)
{
auto album = p_ml->ml->album(i_album_id);
if (album == nullptr)
......@@ -386,7 +386,7 @@ media_library_get_album_songs(media_library* p_ml, unsigned int i_album_id, medi
}
void
media_library_get_artist_songs(media_library* p_ml, unsigned int i_artist_id, media_library_list_cb cb, void* p_user_data)
media_library_get_artist_songs(media_library* p_ml, int64_t i_artist_id, media_library_list_cb cb, void* p_user_data)
{
ArtistPtr artist = p_ml->ml->artist(i_artist_id);
if (artist == nullptr)
......@@ -400,7 +400,7 @@ media_library_get_artist_songs(media_library* p_ml, unsigned int i_artist_id, me
}
void
media_library_get_genres_songs(media_library* p_ml, unsigned int i_genre_id, media_library_list_cb cb, void* p_user_data)
media_library_get_genres_songs(media_library* p_ml, int64_t i_genre_id, media_library_list_cb cb, void* p_user_data)
{
GenrePtr genre = p_ml->ml->genre(i_genre_id);
if ( genre == nullptr )
......@@ -412,7 +412,7 @@ media_library_get_genres_songs(media_library* p_ml, unsigned int i_genre_id, med
}
void
media_library_get_playlist_songs(media_library* p_ml, unsigned int i_playlist_id, media_library_list_cb cb, void* p_user_data)
media_library_get_playlist_songs(media_library* p_ml, int64_t i_playlist_id, media_library_list_cb cb, void* p_user_data)
{
PlaylistPtr playlist = p_ml->ml->playlist(i_playlist_id);
if ( playlist == nullptr )
......
......@@ -68,7 +68,7 @@ void
media_library_get_audio_files( media_library* p_ml, media_library_list_cb cb, void* p_user_data );
void
media_library_get_artist_albums( media_library* p_ml, unsigned int i_artist_id, media_library_list_cb cb, void* p_user_data );
media_library_get_artist_albums( media_library* p_ml, int64_t i_artist_id, media_library_list_cb cb, void* p_user_data );
void
media_library_get_albums( media_library* p_ml, media_library_list_cb cb, void* p_user_data );
......@@ -83,16 +83,16 @@ void
media_library_get_playlists( media_library* p_ml, media_library_list_cb cb, void* p_user_data );
void
media_library_get_album_songs(media_library* p_ml, unsigned int i_album_id, media_library_list_cb cb, void* p_user_data);
media_library_get_album_songs(media_library* p_ml, int64_t i_album_id, media_library_list_cb cb, void* p_user_data);
void
media_library_get_artist_songs(media_library* p_ml, unsigned int i_artist_id, media_library_list_cb cb, void* p_user_data);
media_library_get_artist_songs(media_library* p_ml, int64_t i_artist_id, media_library_list_cb cb, void* p_user_data);
void
media_library_get_genres_songs(media_library* p_ml, unsigned int i_genre_id, media_library_list_cb cb, void* p_user_data);
media_library_get_genres_songs(media_library* p_ml, int64_t i_genre_id, media_library_list_cb cb, void* p_user_data);
void
media_library_get_playlist_songs(media_library* p_ml, unsigned int i_playlist_id, media_library_list_cb cb, void* p_user_data);
media_library_get_playlist_songs(media_library* p_ml, int64_t i_playlist_id, media_library_list_cb cb, void* p_user_data);
void
media_library_register_on_change(media_library* ml, media_library_file_list_changed_cb cb, void* p_data);
......
......@@ -65,7 +65,7 @@ typedef struct media_item {
int i_w, i_h; /* in pixels */
char* psz_snapshot; /* Path to a snapshot file */
uint32_t i_id; /* Opaque file type specific ID, provided by the media library */
int64_t i_id; /* Opaque file type specific ID, provided by the media library */
uint16_t i_track_number; /* Track number, or 0 if unknown or not part of an album */
} media_item;
......
......@@ -36,7 +36,7 @@ extern "C" {
typedef struct playlist_item {
LIBRARY_ITEM_COMMON
unsigned int i_id;
int64_t i_id;
char* psz_name;
} playlist_item;
......
......@@ -33,7 +33,7 @@
struct list_sys
{
LIST_VIEW_COMMON
unsigned int i_artist_id;
int64_t i_artist_id;
};
struct list_view_item
......
......@@ -36,10 +36,10 @@
struct list_sys
{
LIST_VIEW_COMMON
unsigned int i_artist_id;
unsigned int i_album_id;
unsigned int i_genre_id;
unsigned int i_playlist_id;
int64_t i_artist_id;
int64_t i_album_id;
int64_t i_genre_id;
int64_t i_playlist_id;
};
struct list_view_item
......
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