|
|
|
@ -436,6 +436,8 @@ enum vlc_ml_list_queries |
|
|
|
VLC_ML_COUNT_HISTORY_BY_TYPE, /**< arg1 vlc_ml_media_type_t: the media type. arg2 (out): vlc_ml_media_list_t** */ |
|
|
|
VLC_ML_LIST_STREAM_HISTORY, /**< arg1 (out): vlc_ml_media_list_t** */ |
|
|
|
VLC_ML_COUNT_STREAM_HISTORY, /**< arg1 (out): size_t* */ |
|
|
|
VLC_ML_LIST_ENTRY_POINTS, /**< arg1 bool: list_banned; arg2 (out): vlc_ml_folder_list_t** */ |
|
|
|
VLC_ML_COUNT_ENTRY_POINTS, /**< arg1 bool: list_banned; arg2 (out): size_t* */ |
|
|
|
|
|
|
|
/* Album specific listings */ |
|
|
|
VLC_ML_LIST_ALBUM_TRACKS, /**< arg1: The album id. arg2 (out): vlc_ml_media_list_t** */ |
|
|
|
@ -501,7 +503,6 @@ enum vlc_ml_control |
|
|
|
VLC_ML_REMOVE_FOLDER, /**< arg1: mrl (const char*) res: can't fail */ |
|
|
|
VLC_ML_BAN_FOLDER, /**< arg1: mrl (const char*) res: can't fail */ |
|
|
|
VLC_ML_UNBAN_FOLDER, /**< arg1: mrl (const char*) res: can't fail */ |
|
|
|
VLC_ML_LIST_ENTRY_POINTS, /**< arg1: list_banned (bool) arg2: mrl (const char*) res: can't fail */ |
|
|
|
VLC_ML_IS_INDEXED, /**< arg1: mrl (const char*) arg2 (out): bool*; res: can fail */ |
|
|
|
/**
|
|
|
|
* Reload a specific folder, or all. |
|
|
|
@ -923,18 +924,6 @@ static inline int vlc_ml_unban_folder( vlc_medialibrary_t* p_ml, const char* psz |
|
|
|
return vlc_ml_control( p_ml, VLC_ML_UNBAN_FOLDER, psz_folder ); |
|
|
|
} |
|
|
|
|
|
|
|
static inline int vlc_ml_list_entry_points( vlc_medialibrary_t* p_ml, |
|
|
|
vlc_ml_folder_list_t** pp_entrypoints ) |
|
|
|
{ |
|
|
|
return vlc_ml_control( p_ml, VLC_ML_LIST_ENTRY_POINTS, (int)false, pp_entrypoints ); |
|
|
|
} |
|
|
|
|
|
|
|
static inline int vlc_ml_list_banned_entry_points( vlc_medialibrary_t* p_ml, |
|
|
|
vlc_ml_folder_list_t** pp_entrypoints ) |
|
|
|
{ |
|
|
|
return vlc_ml_control( p_ml, VLC_ML_LIST_ENTRY_POINTS, (int)true, pp_entrypoints ); |
|
|
|
} |
|
|
|
|
|
|
|
static inline int vlc_ml_is_indexed( vlc_medialibrary_t* p_ml, |
|
|
|
const char* psz_mrl, bool* p_res ) |
|
|
|
{ |
|
|
|
@ -1649,6 +1638,44 @@ static inline size_t vlc_ml_count_playlist_media( vlc_medialibrary_t* p_ml, cons |
|
|
|
return count; |
|
|
|
} |
|
|
|
|
|
|
|
static inline vlc_ml_folder_list_t* vlc_ml_list_entry_points( vlc_medialibrary_t* p_ml, const vlc_ml_query_params_t* params ) |
|
|
|
{ |
|
|
|
vlc_assert( p_ml != NULL ); |
|
|
|
vlc_ml_folder_list_t *res; |
|
|
|
if ( vlc_ml_list( p_ml, VLC_ML_LIST_ENTRY_POINTS, params, (int)false, &res ) != VLC_SUCCESS ) |
|
|
|
return NULL; |
|
|
|
return res; |
|
|
|
} |
|
|
|
|
|
|
|
static inline size_t vlc_ml_count_entry_points( vlc_medialibrary_t* p_ml, const vlc_ml_query_params_t* params ) |
|
|
|
{ |
|
|
|
vlc_assert( p_ml != NULL ); |
|
|
|
size_t res; |
|
|
|
if ( vlc_ml_list( p_ml, VLC_ML_COUNT_ENTRY_POINTS, params, (int)false, &res ) != VLC_SUCCESS ) |
|
|
|
return 0; |
|
|
|
return res; |
|
|
|
} |
|
|
|
|
|
|
|
static inline vlc_ml_folder_list_t* |
|
|
|
vlc_ml_list_banned_entry_points( vlc_medialibrary_t* p_ml, const vlc_ml_query_params_t* params ) |
|
|
|
{ |
|
|
|
vlc_assert( p_ml != NULL ); |
|
|
|
vlc_ml_folder_list_t* res; |
|
|
|
if ( vlc_ml_list( p_ml, VLC_ML_LIST_ENTRY_POINTS, params, (int)true, &res ) != VLC_SUCCESS ) |
|
|
|
return NULL; |
|
|
|
return res; |
|
|
|
} |
|
|
|
|
|
|
|
static inline size_t vlc_ml_count_banned_entry_points( vlc_medialibrary_t* p_ml, |
|
|
|
const vlc_ml_query_params_t* params ) |
|
|
|
{ |
|
|
|
vlc_assert( p_ml != NULL ); |
|
|
|
size_t res; |
|
|
|
if ( vlc_ml_list( p_ml, VLC_ML_COUNT_ENTRY_POINTS, params, (int)true, &res ) != VLC_SUCCESS ) |
|
|
|
return 0; |
|
|
|
return res; |
|
|
|
} |
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
} |
|
|
|
#endif /* C++ */ |
|
|
|
|