Commit 9951b9c2 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/Framework/VLCMediaList.m: Implement -isReadOnly.

parent f3dc4d98
......@@ -63,6 +63,8 @@ extern NSString * VLCMediaListItemDeleted;
- (int)indexOfMedia:(VLCMedia *)media;
- (int)count;
- (BOOL)isReadOnly;
/* Media list aspect */
- (VLCMediaListAspect *)hierarchicalAspect;
- (VLCMediaListAspect *)flatAspect;
......
......@@ -208,6 +208,16 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
return result;
}
- (BOOL)isReadOnly
{
libvlc_exception_t p_e;
libvlc_exception_init( &p_e );
BOOL isReadOnly = libvlc_media_list_is_readonly( p_mlist );
quit_on_exception( &p_e );
return isReadOnly;
}
/* Media list aspect */
- (VLCMediaListAspect *)hierarchicalAspect
{
......
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