27#ifndef VLC_MEDIA_LIBRARY_H
28# define VLC_MEDIA_LIBRARY_H
901#define vlc_ml_instance_get(x) vlc_ml_instance_get( VLC_OBJECT(x) )
988 const char* psz_mrl,
bool* p_res )
1074 uint32_t i_desired_width,
1075 uint32_t i_desired_height,
1079 size_type, i_desired_width, i_desired_height, position );
1108 int64_t i_media_id )
1110 assert( p_ml != NULL );
1121 assert( p_ml != NULL );
1128 assert( p_ml != NULL );
1135 const char* psz_desc )
1137 assert( p_ml != NULL );
1145 assert( p_ml != NULL );
1152 assert( p_ml != NULL );
1165 assert( p_ml != NULL );
1173 assert( p_ml != NULL );
1180 uint32_t i_position )
1182 assert( p_ml != NULL );
1189 int64_t i_playlist_id, uint32_t i_from, uint32_t i_to )
1191 assert( p_ml != NULL );
1199 assert( p_ml != NULL );
1207 assert( p_ml != NULL );
1218 const char* psz_mrl )
1229 const char* psz_mrl )
1289 int i_parent_type, int64_t i_parent_id )
1296 params, i_parent_type, i_parent_id, &res ) !=
VLC_SUCCESS )
1304 int i_parent_type, int64_t i_parent_id )
1311 params, i_parent_type, i_parent_id, &res ) !=
VLC_SUCCESS )
1319 int i_parent_type, int64_t i_parent_id )
1326 params, i_parent_type, i_parent_id, &res ) !=
VLC_SUCCESS )
1334 int i_parent_type, int64_t i_parent_id )
1341 params, i_parent_type, i_parent_id, &res ) !=
VLC_SUCCESS )
1892 int64_t i_folder_id)
1906 int64_t i_folder_id)
1923# define vlc_ml_release( OBJ ) _Generic( ( OBJ ), \
1924 vlc_ml_show_t*: vlc_ml_show_release, \
1925 vlc_ml_artist_t*: vlc_ml_artist_release, \
1926 vlc_ml_album_t*: vlc_ml_album_release, \
1927 vlc_ml_genre_t*: vlc_ml_genre_release, \
1928 vlc_ml_media_t*: vlc_ml_media_release, \
1929 vlc_ml_group_t*: vlc_ml_group_release, \
1930 vlc_ml_folder_t*: vlc_ml_folder_release, \
1931 vlc_ml_playlist_t*: vlc_ml_playlist_release, \
1932 vlc_ml_label_list_t*: vlc_ml_label_list_release, \
1933 vlc_ml_file_list_t*: vlc_ml_file_list_release, \
1934 vlc_ml_artist_list_t*: vlc_ml_artist_list_release, \
1935 vlc_ml_media_list_t*: vlc_ml_media_list_release, \
1936 vlc_ml_album_list_t*: vlc_ml_album_list_release, \
1937 vlc_ml_show_list_t*: vlc_ml_show_list_release, \
1938 vlc_ml_genre_list_t*: vlc_ml_genre_list_release, \
1939 vlc_ml_group_list_t*: vlc_ml_group_list_release, \
1940 vlc_ml_playlist_list_t*: vlc_ml_playlist_list_release, \
1941 vlc_ml_folder_list_t*: vlc_ml_folder_list_release, \
1942 vlc_ml_playback_states_all*: vlc_ml_playback_states_all_release, \
1943 vlc_ml_bookmark_t*: vlc_ml_bookmark_release, \
1944 vlc_ml_bookmark_list_t*: vlc_ml_bookmark_list_release \
struct vlc_param ** list
Definition: core.c:402
size_t count
Definition: core.c:403
#define VLC_USED
Definition: fourcc_gen.c:32
#define VLC_API
Definition: fourcc_gen.c:31
#define vlc_assert(pred)
Run-time assertion.
Definition: vlc_common.h:301
#define VLC_SUCCESS
No error.
Definition: vlc_common.h:503
const char name[16]
Definition: httpd.c:1281
int i_type
Definition: httpd.c:1282
Definition: vlc_objects.h:91
Internal module descriptor.
Definition: modules.h:76
Definition: vlc_media_library.h:339
size_t i_nb_items
Definition: vlc_media_library.h:340
vlc_ml_album_t p_items[]
Definition: vlc_media_library.h:341
Definition: vlc_media_library.h:309
vlc_ml_thumbnail_t thumbnails[VLC_ML_THUMBNAIL_SIZE_COUNT]
Definition: vlc_media_library.h:313
int64_t i_duration
Definition: vlc_media_library.h:320
char * psz_summary
Definition: vlc_media_library.h:312
int64_t i_artist_id
Definition: vlc_media_library.h:315
unsigned int i_year
Definition: vlc_media_library.h:321
char * psz_title
Definition: vlc_media_library.h:311
uint32_t i_nb_tracks
Definition: vlc_media_library.h:317
uint32_t i_nb_present_tracks
Definition: vlc_media_library.h:318
char * psz_artist
Definition: vlc_media_library.h:314
uint32_t i_nb_discs
Definition: vlc_media_library.h:319
int64_t i_id
Definition: vlc_media_library.h:310
Definition: vlc_media_library.h:304
size_t i_nb_items
Definition: vlc_media_library.h:305
vlc_ml_artist_t p_items[]
Definition: vlc_media_library.h:306
Definition: vlc_media_library.h:291
char * psz_mb_id
Definition: vlc_media_library.h:296
char * psz_shortbio
Definition: vlc_media_library.h:294
int64_t i_id
Definition: vlc_media_library.h:292
unsigned int i_nb_album
Definition: vlc_media_library.h:298
char * psz_name
Definition: vlc_media_library.h:293
uint32_t i_nb_present_tracks
Definition: vlc_media_library.h:300
vlc_ml_thumbnail_t thumbnails[VLC_ML_THUMBNAIL_SIZE_COUNT]
Definition: vlc_media_library.h:295
unsigned int i_nb_tracks
Definition: vlc_media_library.h:299
Definition: vlc_media_library.h:387
int64_t i_time
The bookmark time.
Definition: vlc_media_library.h:389
char * psz_name
The bookmark name.
Definition: vlc_media_library.h:390
int64_t i_media_id
The associated media ID.
Definition: vlc_media_library.h:388
char * psz_description
The bookmark description.
Definition: vlc_media_library.h:391
Definition: vlc_media_library.h:395
size_t i_nb_items
Definition: vlc_media_library.h:396
vlc_ml_bookmark_t p_items[]
Definition: vlc_media_library.h:397
Definition: medialibrary.c:35
Definition: vlc_media_library.h:782
struct vlc_ml_event_t::@247::@251 entry_point_added
struct vlc_ml_event_t::@247::@252 entry_point_removed
struct vlc_ml_event_t::@247::@259 background_idle_changed
struct vlc_ml_event_t::@247::@260 media_thumbnail_generated
union vlc_ml_event_t::@247::@256 creation
uint8_t i_percent
Definition: vlc_media_library.h:816
int64_t i_entity_id
Definition: vlc_media_library.h:831
bool b_success
Definition: vlc_media_library.h:797
struct vlc_ml_event_t::@247::@250 discovery_failed
struct vlc_ml_event_t::@247::@254 entry_point_unbanned
struct vlc_ml_event_t::@247::@257 modification
struct vlc_ml_event_t::@247::@253 entry_point_banned
const vlc_ml_artist_t * p_artist
Definition: vlc_media_library.h:821
vlc_ml_history_type_t history_type
Definition: vlc_media_library.h:849
const char * psz_entry_point
Definition: vlc_media_library.h:788
struct vlc_ml_event_t::@247::@255 parsing_progress
int i_type
Definition: vlc_media_library.h:783
const vlc_ml_album_t * p_album
Definition: vlc_media_library.h:822
const vlc_ml_playlist_t * p_playlist
Definition: vlc_media_library.h:824
const vlc_ml_folder_t * p_folder
Definition: vlc_media_library.h:827
const vlc_ml_genre_t * p_genre
Definition: vlc_media_library.h:825
const vlc_ml_media_t * p_media
Definition: vlc_media_library.h:820
vlc_ml_thumbnail_size_t i_size
Definition: vlc_media_library.h:844
struct vlc_ml_event_t::@247::@258 deletion
bool b_idle
Definition: vlc_media_library.h:839
const vlc_ml_group_t * p_group
Definition: vlc_media_library.h:823
struct vlc_ml_event_t::@247::@261 history_changed
const vlc_ml_bookmark_t * p_bookmark
Definition: vlc_media_library.h:826
struct vlc_ml_event_t::@247::@249 discovery_progress
Definition: vlc_media_library.h:160
size_t i_nb_items
Definition: vlc_media_library.h:161
vlc_ml_file_t p_items[]
Definition: vlc_media_library.h:162
Definition: vlc_media_library.h:149
int64_t i_size
Definition: vlc_media_library.h:151
bool b_present
Definition: vlc_media_library.h:156
time_t i_last_modification_date
Definition: vlc_media_library.h:152
bool b_external
Definition: vlc_media_library.h:154
vlc_ml_file_type_t i_type
Definition: vlc_media_library.h:153
char * psz_mrl
Definition: vlc_media_library.h:150
bool b_removable
Definition: vlc_media_library.h:155
Definition: vlc_media_library.h:381
vlc_ml_folder_t p_items[]
Definition: vlc_media_library.h:383
size_t i_nb_items
Definition: vlc_media_library.h:382
Definition: vlc_media_library.h:369
char * psz_mrl
The folder's MRL.
Definition: vlc_media_library.h:372
bool b_present
The folder's presence state.
Definition: vlc_media_library.h:376
bool b_banned
Will be true if the user required this folder to be excluded.
Definition: vlc_media_library.h:377
char * psz_name
The folder's name.
Definition: vlc_media_library.h:371
unsigned int i_nb_audio
The number of audio for this volder.
Definition: vlc_media_library.h:375
int64_t i_id
The folder's MRL.
Definition: vlc_media_library.h:370
unsigned int i_nb_media
The media count.
Definition: vlc_media_library.h:373
unsigned int i_nb_video
The number of video for this folder.
Definition: vlc_media_library.h:374
Definition: vlc_media_library.h:351
vlc_ml_genre_t p_items[]
Definition: vlc_media_library.h:353
size_t i_nb_items
Definition: vlc_media_library.h:352
Definition: vlc_media_library.h:325
vlc_ml_thumbnail_t thumbnails[VLC_ML_THUMBNAIL_SIZE_COUNT]
Definition: vlc_media_library.h:329
size_t i_nb_tracks
Definition: vlc_media_library.h:328
char * psz_name
Definition: vlc_media_library.h:327
int64_t i_id
Definition: vlc_media_library.h:326
Definition: vlc_media_library.h:357
size_t i_nb_items
Definition: vlc_media_library.h:358
vlc_ml_group_t p_items[]
Definition: vlc_media_library.h:359
Definition: vlc_media_library.h:239
uint32_t i_nb_video
Definition: vlc_media_library.h:245
uint32_t i_nb_seen
Definition: vlc_media_library.h:253
time_t i_creation_date
Definition: vlc_media_library.h:258
int64_t i_id
Definition: vlc_media_library.h:240
uint32_t i_nb_present_video
Definition: vlc_media_library.h:249
uint32_t i_nb_present_audio
Definition: vlc_media_library.h:250
char * psz_name
Definition: vlc_media_library.h:242
uint32_t i_nb_unknown
Definition: vlc_media_library.h:247
int64_t i_duration
Definition: vlc_media_library.h:256
uint32_t i_nb_total_media
Definition: vlc_media_library.h:244
uint32_t i_nb_present_media
Definition: vlc_media_library.h:248
uint32_t i_nb_present_seen
Definition: vlc_media_library.h:254
time_t i_last_modification_date
Definition: vlc_media_library.h:259
uint32_t i_nb_present_unknown
Definition: vlc_media_library.h:251
uint32_t i_nb_audio
Definition: vlc_media_library.h:246
Definition: vlc_media_library.h:143
size_t i_nb_items
Definition: vlc_media_library.h:144
vlc_ml_label_t p_items[]
Definition: vlc_media_library.h:145
Definition: vlc_media_library.h:137
int64_t i_id
Definition: vlc_media_library.h:138
char * psz_name
Definition: vlc_media_library.h:139
Definition: vlc_media_library.h:111
char * psz_imdb_id
Definition: vlc_media_library.h:113
char * psz_summary
Definition: vlc_media_library.h:112
Definition: vlc_media_library.h:640
char * deinterlace
Definition: vlc_media_library.h:649
char * current_audio_track
Definition: vlc_media_library.h:645
char * current_video_track
Definition: vlc_media_library.h:644
float zoom
Definition: vlc_media_library.h:642
int current_title
Definition: vlc_media_library.h:643
char * aspect_ratio
Definition: vlc_media_library.h:647
char * crop
Definition: vlc_media_library.h:648
float rate
Definition: vlc_media_library.h:641
char * current_subtitle_track
Definition: vlc_media_library.h:646
char * video_filter
Definition: vlc_media_library.h:650
Definition: vlc_media_library.h:363
size_t i_nb_items
Definition: vlc_media_library.h:364
vlc_ml_playlist_t p_items[]
Definition: vlc_media_library.h:365
Definition: vlc_media_library.h:263
unsigned int i_nb_media
Definition: vlc_media_library.h:272
int64_t i_duration
Definition: vlc_media_library.h:284
char * psz_artwork_mrl
Definition: vlc_media_library.h:270
char * psz_mrl
Definition: vlc_media_library.h:268
uint32_t i_nb_unknown
Definition: vlc_media_library.h:275
uint32_t i_nb_present_audio
Definition: vlc_media_library.h:279
unsigned int i_nb_present_media
Definition: vlc_media_library.h:277
char * psz_name
Definition: vlc_media_library.h:266
uint32_t i_nb_present_video
Definition: vlc_media_library.h:278
uint32_t i_nb_duration_unknown
Definition: vlc_media_library.h:285
bool b_is_read_only
Definition: vlc_media_library.h:287
uint32_t i_nb_audio
Definition: vlc_media_library.h:274
uint32_t i_nb_present_unknown
Definition: vlc_media_library.h:280
int64_t i_id
Definition: vlc_media_library.h:264
uint32_t i_creation_date
Definition: vlc_media_library.h:282
uint32_t i_nb_video
Definition: vlc_media_library.h:273
Definition: vlc_media_library.h:430
const char * psz_pattern
Definition: vlc_media_library.h:431
bool b_desc
Definition: vlc_media_library.h:435
vlc_ml_sorting_criteria_t i_sort
Definition: vlc_media_library.h:434
uint32_t i_offset
Definition: vlc_media_library.h:433
uint32_t i_nbResults
Definition: vlc_media_library.h:432
Definition: vlc_media_library.h:117
char * psz_summary
Definition: vlc_media_library.h:118
uint32_t i_season_number
Definition: vlc_media_library.h:121
uint32_t i_episode_nb
Definition: vlc_media_library.h:120
char * psz_tvdb_id
Definition: vlc_media_library.h:119
Definition: vlc_media_library.h:345
vlc_ml_show_t p_items[]
Definition: vlc_media_library.h:347
size_t i_nb_items
Definition: vlc_media_library.h:346
Definition: vlc_media_library.h:125
unsigned int i_release_year
Definition: vlc_media_library.h:131
char * psz_tvdb_id
Definition: vlc_media_library.h:130
uint32_t i_nb_episodes
Definition: vlc_media_library.h:132
char * psz_artwork_mrl
Definition: vlc_media_library.h:129
uint32_t i_nb_seasons
Definition: vlc_media_library.h:133
char * psz_name
Definition: vlc_media_library.h:127
int64_t i_id
Definition: vlc_media_library.h:126
char * psz_summary
Definition: vlc_media_library.h:128
Definition: vlc_media_library.h:101
char * psz_mrl
Definition: vlc_media_library.h:102
vlc_ml_thumbnail_status_t i_status
True if a thumbnail is available, or if thumbnail generation was attempted but failed.
Definition: vlc_media_library.h:107
VLC object common members.
Definition: vlc_objects.h:45
const char * psz_name
Definition: text_style.c:33
This file is a collection of common definitions and types.
char psz_value[8]
Definition: vout_intf.c:99