Commit c68490b3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Centralize run-time library name/path

parent 2c3c94bd
......@@ -101,14 +101,9 @@ namespace VideoLAN.LibVLC
int code;
IntPtr message;
[DllImport ("libvlc.dll", EntryPoint="libvlc_exception_init")]
private static extern void Init (NativeException e);
[DllImport ("libvlc.dll", EntryPoint="libvlc_exception_clear")]
private static extern void Clear (NativeException e);
public NativeException ()
{
Init (this);
LibVLC.ExceptionInit (this);
}
/**
......@@ -130,7 +125,7 @@ namespace VideoLAN.LibVLC
}
finally
{
Clear (this);
LibVLC.ExceptionClear (this);
}
}
......@@ -148,7 +143,7 @@ namespace VideoLAN.LibVLC
private void Dispose (bool disposing)
{
Clear (this);
LibVLC.ExceptionClear (this);
}
};
};
This diff is collapsed.
......@@ -98,15 +98,12 @@ namespace VideoLAN.LibVLC
*/
internal class MemoryHandle : NonNullHandle
{
[DllImport ("libvlc.dll", EntryPoint="libvlc_free")]
private static extern void Free (IntPtr ptr);
/**
* NonNullHandle.Destroy
*/
protected override void Destroy ()
{
Free (handle);
LibVLC.Free (handle);
}
};
......
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