Commit 33f76453 authored by Martin Finkel's avatar Martin Finkel

MediaList: Add Retain() binding

(cherry picked from commit c9e7959f1b1c1d339bb8e71c0b92964def27eeca)
parent d4b5054c
......@@ -82,10 +82,13 @@ namespace LibVLCSharp.Shared
EntryPoint = "libvlc_media_list_unlock")]
internal static extern void LibVLCMediaListUnlock(IntPtr mediaList);
[DllImport(Constants.LibraryName, CallingConvention = CallingConvention.Cdecl,
EntryPoint = "libvlc_media_list_event_manager")]
internal static extern IntPtr LibVLCMediaListEventManager(IntPtr mediaList);
[DllImport(Constants.LibraryName, CallingConvention = CallingConvention.Cdecl,
EntryPoint = "libvlc_media_list_retain")]
internal static extern void LibVLCMediaListRetain(IntPtr mediaList);
}
/// <summary>
......@@ -251,6 +254,9 @@ namespace LibVLCSharp.Shared
}
}
/// <summary>Increments the native reference counter for this medialist instance</summary>
public void Retain() => Native.LibVLCMediaListRetain(NativeReference);
#region Events
public event EventHandler<MediaListItemAddedEventArgs> ItemAdded
......
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