...
 
Commits (2)
......@@ -14,7 +14,7 @@ namespace Bindings.Tests
{
var instance = new Instance(0, null);
instance.Dispose();
Assert.AreEqual(IntPtr.Zero, instance.NativeReference);
Assert.AreEqual(IntPtr.Zero, instance.__Instance);
}
[Test]
......
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using CppSharp;
using CppSharp.AST;
using CppSharp.Generators;
using CppSharp.Parser;
using ASTContext = CppSharp.AST.ASTContext;
namespace libvlcsharp
{
......@@ -34,6 +35,19 @@ namespace libvlcsharp
RenameClasses(ctx);
RenameEnums(ctx);
// Do not generate the vlc.h file
ctx.TranslationUnits.Single(u =>
{
try
{
return u.FileName == "vlc.h";
}
catch (Exception)
{
return false;
}
}).Ignore = true;
ctx.SetClassAsValueType("Event");
}
......@@ -65,7 +79,7 @@ namespace libvlcsharp
Rename("LibvlcMediaSlaveT", "MediaSlave");
Rename("LibvlcTitleDescriptionT", "TitleDescription");
Rename("LibvlcChapterDescriptionT", "ChapterDescription");
Rename("LibvlcAudioOutputT", "AudioOutput");
Rename("LibvlcAudioOutputT", "AudioOutputDescription");
Rename("LibvlcAudioOutputDeviceT", "AudioOutputDevice");
Rename("LibvlcVideoViewpointT", "VideoViewpoint");
Rename("LibvlcMediaDiscovererT", "MediaDiscoverer");
......@@ -142,7 +156,7 @@ namespace libvlcsharp
options.GenerateSingleCSharpFile = false;
//options.CheckSymbols = true;
var module = options.AddModule("VideoLAN.LibVLC.Generated");
var module = options.AddModule("VideoLAN.LibVLC");
module.SharedLibraryName = "libvlc";
module.Headers.Add("vlc\\vlc.h");
module.LibraryDirs.Add(libFolder);
......
using System.Linq;
using CppSharp.AST;
using CppSharp.Passes;
using ASTContext = CppSharp.AST.ASTContext;
namespace libvlcsharp
{
......
#include <vlc\vlc.h>
extern "C" { void VideoLAN_LibVLC_symbols1(void* instance) { new (instance) libvlc_module_description_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols2(void* instance, const libvlc_module_description_t& _0) { new (instance) libvlc_module_description_t(_0); } }
libvlc_module_description_t& (libvlc_module_description_t::*VideoLAN_LibVLC_symbols3)(const libvlc_module_description_t&) = &libvlc_module_description_t::operator=;
libvlc_module_description_t& (libvlc_module_description_t::*VideoLAN_LibVLC_symbols4)(libvlc_module_description_t&&) = &libvlc_module_description_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols5(libvlc_module_description_t* instance) { instance->~libvlc_module_description_t(); } }
::int64_t (*VideoLAN_LibVLC_symbols6)(::int64_t) = &libvlc_delay;
extern "C" { void VideoLAN_LibVLC_symbols7(void* instance) { new (instance) libvlc_rd_description_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols8(void* instance, const libvlc_rd_description_t& _0) { new (instance) libvlc_rd_description_t(_0); } }
libvlc_rd_description_t& (libvlc_rd_description_t::*VideoLAN_LibVLC_symbols9)(const libvlc_rd_description_t&) = &libvlc_rd_description_t::operator=;
libvlc_rd_description_t& (libvlc_rd_description_t::*VideoLAN_LibVLC_symbols10)(libvlc_rd_description_t&&) = &libvlc_rd_description_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols11(libvlc_rd_description_t* instance) { instance->~libvlc_rd_description_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols12(void* instance) { new (instance) libvlc_media_stats_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols13(void* instance, const libvlc_media_stats_t& _0) { new (instance) libvlc_media_stats_t(_0); } }
libvlc_media_stats_t& (libvlc_media_stats_t::*VideoLAN_LibVLC_symbols14)(const libvlc_media_stats_t&) = &libvlc_media_stats_t::operator=;
libvlc_media_stats_t& (libvlc_media_stats_t::*VideoLAN_LibVLC_symbols15)(libvlc_media_stats_t&&) = &libvlc_media_stats_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols16(libvlc_media_stats_t* instance) { instance->~libvlc_media_stats_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols17(void* instance) { new (instance) libvlc_media_track_info_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols18(void* instance, const libvlc_media_track_info_t& _0) { new (instance) libvlc_media_track_info_t(_0); } }
libvlc_media_track_info_t& (libvlc_media_track_info_t::*VideoLAN_LibVLC_symbols19)(const libvlc_media_track_info_t&) = &libvlc_media_track_info_t::operator=;
libvlc_media_track_info_t& (libvlc_media_track_info_t::*VideoLAN_LibVLC_symbols20)(libvlc_media_track_info_t&&) = &libvlc_media_track_info_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols21(libvlc_media_track_info_t* instance) { instance->~libvlc_media_track_info_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols22(void* instance) { new (instance) libvlc_audio_track_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols23(void* instance, const libvlc_audio_track_t& _0) { new (instance) libvlc_audio_track_t(_0); } }
libvlc_audio_track_t& (libvlc_audio_track_t::*VideoLAN_LibVLC_symbols24)(const libvlc_audio_track_t&) = &libvlc_audio_track_t::operator=;
libvlc_audio_track_t& (libvlc_audio_track_t::*VideoLAN_LibVLC_symbols25)(libvlc_audio_track_t&&) = &libvlc_audio_track_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols26(libvlc_audio_track_t* instance) { instance->~libvlc_audio_track_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols27(void* instance) { new (instance) libvlc_video_track_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols28(void* instance, const libvlc_video_track_t& _0) { new (instance) libvlc_video_track_t(_0); } }
libvlc_video_track_t& (libvlc_video_track_t::*VideoLAN_LibVLC_symbols29)(const libvlc_video_track_t&) = &libvlc_video_track_t::operator=;
libvlc_video_track_t& (libvlc_video_track_t::*VideoLAN_LibVLC_symbols30)(libvlc_video_track_t&&) = &libvlc_video_track_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols31(libvlc_video_track_t* instance) { instance->~libvlc_video_track_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols32(void* instance) { new (instance) libvlc_subtitle_track_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols33(void* instance, const libvlc_subtitle_track_t& _0) { new (instance) libvlc_subtitle_track_t(_0); } }
libvlc_subtitle_track_t& (libvlc_subtitle_track_t::*VideoLAN_LibVLC_symbols34)(const libvlc_subtitle_track_t&) = &libvlc_subtitle_track_t::operator=;
libvlc_subtitle_track_t& (libvlc_subtitle_track_t::*VideoLAN_LibVLC_symbols35)(libvlc_subtitle_track_t&&) = &libvlc_subtitle_track_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols36(libvlc_subtitle_track_t* instance) { instance->~libvlc_subtitle_track_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols37(void* instance) { new (instance) libvlc_media_track_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols38(void* instance, const libvlc_media_track_t& _0) { new (instance) libvlc_media_track_t(_0); } }
libvlc_media_track_t& (libvlc_media_track_t::*VideoLAN_LibVLC_symbols39)(const libvlc_media_track_t&) = &libvlc_media_track_t::operator=;
libvlc_media_track_t& (libvlc_media_track_t::*VideoLAN_LibVLC_symbols40)(libvlc_media_track_t&&) = &libvlc_media_track_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols41(libvlc_media_track_t* instance) { instance->~libvlc_media_track_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols42(void* instance) { new (instance) libvlc_media_slave_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols43(void* instance, const libvlc_media_slave_t& _0) { new (instance) libvlc_media_slave_t(_0); } }
libvlc_media_slave_t& (libvlc_media_slave_t::*VideoLAN_LibVLC_symbols44)(const libvlc_media_slave_t&) = &libvlc_media_slave_t::operator=;
libvlc_media_slave_t& (libvlc_media_slave_t::*VideoLAN_LibVLC_symbols45)(libvlc_media_slave_t&&) = &libvlc_media_slave_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols46(libvlc_media_slave_t* instance) { instance->~libvlc_media_slave_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols47(void* instance) { new (instance) libvlc_track_description_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols48(void* instance, const libvlc_track_description_t& _0) { new (instance) libvlc_track_description_t(_0); } }
libvlc_track_description_t& (libvlc_track_description_t::*VideoLAN_LibVLC_symbols49)(const libvlc_track_description_t&) = &libvlc_track_description_t::operator=;
libvlc_track_description_t& (libvlc_track_description_t::*VideoLAN_LibVLC_symbols50)(libvlc_track_description_t&&) = &libvlc_track_description_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols51(libvlc_track_description_t* instance) { instance->~libvlc_track_description_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols52(void* instance) { new (instance) libvlc_title_description_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols53(void* instance, const libvlc_title_description_t& _0) { new (instance) libvlc_title_description_t(_0); } }
libvlc_title_description_t& (libvlc_title_description_t::*VideoLAN_LibVLC_symbols54)(const libvlc_title_description_t&) = &libvlc_title_description_t::operator=;
libvlc_title_description_t& (libvlc_title_description_t::*VideoLAN_LibVLC_symbols55)(libvlc_title_description_t&&) = &libvlc_title_description_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols56(libvlc_title_description_t* instance) { instance->~libvlc_title_description_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols57(void* instance) { new (instance) libvlc_chapter_description_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols58(void* instance, const libvlc_chapter_description_t& _0) { new (instance) libvlc_chapter_description_t(_0); } }
libvlc_chapter_description_t& (libvlc_chapter_description_t::*VideoLAN_LibVLC_symbols59)(const libvlc_chapter_description_t&) = &libvlc_chapter_description_t::operator=;
libvlc_chapter_description_t& (libvlc_chapter_description_t::*VideoLAN_LibVLC_symbols60)(libvlc_chapter_description_t&&) = &libvlc_chapter_description_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols61(libvlc_chapter_description_t* instance) { instance->~libvlc_chapter_description_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols62(void* instance) { new (instance) libvlc_audio_output_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols63(void* instance, const libvlc_audio_output_t& _0) { new (instance) libvlc_audio_output_t(_0); } }
libvlc_audio_output_t& (libvlc_audio_output_t::*VideoLAN_LibVLC_symbols64)(const libvlc_audio_output_t&) = &libvlc_audio_output_t::operator=;
libvlc_audio_output_t& (libvlc_audio_output_t::*VideoLAN_LibVLC_symbols65)(libvlc_audio_output_t&&) = &libvlc_audio_output_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols66(libvlc_audio_output_t* instance) { instance->~libvlc_audio_output_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols67(void* instance) { new (instance) libvlc_audio_output_device_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols68(void* instance, const libvlc_audio_output_device_t& _0) { new (instance) libvlc_audio_output_device_t(_0); } }
libvlc_audio_output_device_t& (libvlc_audio_output_device_t::*VideoLAN_LibVLC_symbols69)(const libvlc_audio_output_device_t&) = &libvlc_audio_output_device_t::operator=;
libvlc_audio_output_device_t& (libvlc_audio_output_device_t::*VideoLAN_LibVLC_symbols70)(libvlc_audio_output_device_t&&) = &libvlc_audio_output_device_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols71(libvlc_audio_output_device_t* instance) { instance->~libvlc_audio_output_device_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols72(void* instance) { new (instance) libvlc_video_viewpoint_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols73(void* instance, const libvlc_video_viewpoint_t& _0) { new (instance) libvlc_video_viewpoint_t(_0); } }
libvlc_video_viewpoint_t& (libvlc_video_viewpoint_t::*VideoLAN_LibVLC_symbols74)(const libvlc_video_viewpoint_t&) = &libvlc_video_viewpoint_t::operator=;
libvlc_video_viewpoint_t& (libvlc_video_viewpoint_t::*VideoLAN_LibVLC_symbols75)(libvlc_video_viewpoint_t&&) = &libvlc_video_viewpoint_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols76(libvlc_video_viewpoint_t* instance) { instance->~libvlc_video_viewpoint_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols77(void* instance) { new (instance) libvlc_media_discoverer_description_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols78(void* instance, const libvlc_media_discoverer_description_t& _0) { new (instance) libvlc_media_discoverer_description_t(_0); } }
libvlc_media_discoverer_description_t& (libvlc_media_discoverer_description_t::*VideoLAN_LibVLC_symbols79)(const libvlc_media_discoverer_description_t&) = &libvlc_media_discoverer_description_t::operator=;
libvlc_media_discoverer_description_t& (libvlc_media_discoverer_description_t::*VideoLAN_LibVLC_symbols80)(libvlc_media_discoverer_description_t&&) = &libvlc_media_discoverer_description_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols81(libvlc_media_discoverer_description_t* instance) { instance->~libvlc_media_discoverer_description_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols82(void* instance) { new (instance) libvlc_event_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols83(void* instance, const libvlc_event_t& _0) { new (instance) libvlc_event_t(_0); } }
libvlc_event_t& (libvlc_event_t::*VideoLAN_LibVLC_symbols84)(const libvlc_event_t&) = &libvlc_event_t::operator=;
libvlc_event_t& (libvlc_event_t::*VideoLAN_LibVLC_symbols85)(libvlc_event_t&&) = &libvlc_event_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols86(libvlc_event_t* instance) { instance->~libvlc_event_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols87(void* instance) { new (instance) libvlc_dialog_cbs(); } }
extern "C" { void VideoLAN_LibVLC_symbols88(void* instance, const libvlc_dialog_cbs& _0) { new (instance) libvlc_dialog_cbs(_0); } }
libvlc_dialog_cbs& (libvlc_dialog_cbs::*VideoLAN_LibVLC_symbols89)(const libvlc_dialog_cbs&) = &libvlc_dialog_cbs::operator=;
libvlc_dialog_cbs& (libvlc_dialog_cbs::*VideoLAN_LibVLC_symbols90)(libvlc_dialog_cbs&&) = &libvlc_dialog_cbs::operator=;
extern "C" { void VideoLAN_LibVLC_symbols91(libvlc_dialog_cbs* instance) { instance->~libvlc_dialog_cbs(); } }
extern "C" { void VideoLAN_LibVLC_symbols92(void* instance) { new (instance) libvlc_log_message_t(); } }
extern "C" { void VideoLAN_LibVLC_symbols93(void* instance, const libvlc_log_message_t& _0) { new (instance) libvlc_log_message_t(_0); } }
libvlc_log_message_t& (libvlc_log_message_t::*VideoLAN_LibVLC_symbols94)(const libvlc_log_message_t&) = &libvlc_log_message_t::operator=;
libvlc_log_message_t& (libvlc_log_message_t::*VideoLAN_LibVLC_symbols95)(libvlc_log_message_t&&) = &libvlc_log_message_t::operator=;
extern "C" { void VideoLAN_LibVLC_symbols96(libvlc_log_message_t* instance) { instance->~libvlc_log_message_t(); } }
This diff is collapsed.
......@@ -8,7 +8,7 @@ using System;
using System.Runtime.InteropServices;
using System.Security;
namespace VideoLAN.LibVLC.Generated
namespace VideoLAN.LibVLC
{
/// <summary>This structure is opaque. It represents a libvlc log iterator</summary>
public unsafe partial class LogIterator
......@@ -21,29 +21,29 @@ namespace VideoLAN.LibVLC.Generated
public global::System.IntPtr __Instance { get; protected set; }
protected int __PointerAdjustment;
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Generated.LogIterator> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Generated.LogIterator>();
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.LogIterator> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.LogIterator>();
protected void*[] __OriginalVTables;
protected bool __ownsNativeInstance;
internal static global::VideoLAN.LibVLC.Generated.LogIterator __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
internal static global::VideoLAN.LibVLC.LogIterator __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.Generated.LogIterator(native.ToPointer(), skipVTables);
return new global::VideoLAN.LibVLC.LogIterator(native.ToPointer(), skipVTables);
}
internal static global::VideoLAN.LibVLC.Generated.LogIterator __CreateInstance(global::VideoLAN.LibVLC.Generated.LogIterator.__Internal native, bool skipVTables = false)
internal static global::VideoLAN.LibVLC.LogIterator __CreateInstance(global::VideoLAN.LibVLC.LogIterator.__Internal native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.Generated.LogIterator(native, skipVTables);
return new global::VideoLAN.LibVLC.LogIterator(native, skipVTables);
}
private static void* __CopyValue(global::VideoLAN.LibVLC.Generated.LogIterator.__Internal native)
private static void* __CopyValue(global::VideoLAN.LibVLC.LogIterator.__Internal native)
{
var ret = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Generated.LogIterator.__Internal));
*(global::VideoLAN.LibVLC.Generated.LogIterator.__Internal*) ret = native;
var ret = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.LogIterator.__Internal));
*(global::VideoLAN.LibVLC.LogIterator.__Internal*) ret = native;
return ret.ToPointer();
}
private LogIterator(global::VideoLAN.LibVLC.Generated.LogIterator.__Internal native, bool skipVTables = false)
private LogIterator(global::VideoLAN.LibVLC.LogIterator.__Internal native, bool skipVTables = false)
: this(__CopyValue(native), skipVTables)
{
__ownsNativeInstance = true;
......@@ -87,29 +87,29 @@ namespace VideoLAN.LibVLC.Generated
public global::System.IntPtr __Instance { get; protected set; }
protected int __PointerAdjustment;
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Generated.LogMessage> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Generated.LogMessage>();
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.LogMessage> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.LogMessage>();
protected void*[] __OriginalVTables;
protected bool __ownsNativeInstance;
internal static global::VideoLAN.LibVLC.Generated.LogMessage __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
internal static global::VideoLAN.LibVLC.LogMessage __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.Generated.LogMessage(native.ToPointer(), skipVTables);
return new global::VideoLAN.LibVLC.LogMessage(native.ToPointer(), skipVTables);
}
internal static global::VideoLAN.LibVLC.Generated.LogMessage __CreateInstance(global::VideoLAN.LibVLC.Generated.LogMessage.__Internal native, bool skipVTables = false)
internal static global::VideoLAN.LibVLC.LogMessage __CreateInstance(global::VideoLAN.LibVLC.LogMessage.__Internal native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.Generated.LogMessage(native, skipVTables);
return new global::VideoLAN.LibVLC.LogMessage(native, skipVTables);
}
private static void* __CopyValue(global::VideoLAN.LibVLC.Generated.LogMessage.__Internal native)
private static void* __CopyValue(global::VideoLAN.LibVLC.LogMessage.__Internal native)
{
var ret = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Generated.LogMessage.__Internal));
*(global::VideoLAN.LibVLC.Generated.LogMessage.__Internal*) ret = native;
var ret = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.LogMessage.__Internal));
*(global::VideoLAN.LibVLC.LogMessage.__Internal*) ret = native;
return ret.ToPointer();
}
private LogMessage(global::VideoLAN.LibVLC.Generated.LogMessage.__Internal native, bool skipVTables = false)
private LogMessage(global::VideoLAN.LibVLC.LogMessage.__Internal native, bool skipVTables = false)
: this(__CopyValue(native), skipVTables)
{
__ownsNativeInstance = true;
......@@ -125,17 +125,17 @@ namespace VideoLAN.LibVLC.Generated
public LogMessage()
{
__Instance = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Generated.LogMessage.__Internal));
__Instance = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.LogMessage.__Internal));
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
public LogMessage(global::VideoLAN.LibVLC.Generated.LogMessage _0)
public LogMessage(global::VideoLAN.LibVLC.LogMessage _0)
{
__Instance = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Generated.LogMessage.__Internal));
__Instance = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.LogMessage.__Internal));
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
*((global::VideoLAN.LibVLC.Generated.LogMessage.__Internal*) __Instance) = *((global::VideoLAN.LibVLC.Generated.LogMessage.__Internal*) _0.__Instance);
*((global::VideoLAN.LibVLC.LogMessage.__Internal*) __Instance) = *((global::VideoLAN.LibVLC.LogMessage.__Internal*) _0.__Instance);
}
public void Dispose()
......@@ -147,7 +147,7 @@ namespace VideoLAN.LibVLC.Generated
{
if (__Instance == IntPtr.Zero)
return;
global::VideoLAN.LibVLC.Generated.LogMessage __dummy;
global::VideoLAN.LibVLC.LogMessage __dummy;
NativeToManagedMap.TryRemove(__Instance, out __dummy);
if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance);
......@@ -158,12 +158,12 @@ namespace VideoLAN.LibVLC.Generated
{
get
{
return ((global::VideoLAN.LibVLC.Generated.LogMessage.__Internal*) __Instance)->i_severity;
return ((global::VideoLAN.LibVLC.LogMessage.__Internal*) __Instance)->i_severity;
}
set
{
((global::VideoLAN.LibVLC.Generated.LogMessage.__Internal*) __Instance)->i_severity = value;
((global::VideoLAN.LibVLC.LogMessage.__Internal*) __Instance)->i_severity = value;
}
}
......@@ -171,12 +171,12 @@ namespace VideoLAN.LibVLC.Generated
{
get
{
return Marshal.PtrToStringAnsi(((global::VideoLAN.LibVLC.Generated.LogMessage.__Internal*) __Instance)->psz_type);
return Marshal.PtrToStringAnsi(((global::VideoLAN.LibVLC.LogMessage.__Internal*) __Instance)->psz_type);
}
set
{
((global::VideoLAN.LibVLC.Generated.LogMessage.__Internal*) __Instance)->psz_type = Marshal.StringToHGlobalAnsi(value);
((global::VideoLAN.LibVLC.LogMessage.__Internal*) __Instance)->psz_type = Marshal.StringToHGlobalAnsi(value);
}
}
......@@ -184,12 +184,12 @@ namespace VideoLAN.LibVLC.Generated
{
get
{
return Marshal.PtrToStringAnsi(((global::VideoLAN.LibVLC.Generated.LogMessage.__Internal*) __Instance)->psz_name);
return Marshal.PtrToStringAnsi(((global::VideoLAN.LibVLC.LogMessage.__Internal*) __Instance)->psz_name);
}
set
{
((global::VideoLAN.LibVLC.Generated.LogMessage.__Internal*) __Instance)->psz_name = Marshal.StringToHGlobalAnsi(value);
((global::VideoLAN.LibVLC.LogMessage.__Internal*) __Instance)->psz_name = Marshal.StringToHGlobalAnsi(value);
}
}
......@@ -197,12 +197,12 @@ namespace VideoLAN.LibVLC.Generated
{
get
{
return Marshal.PtrToStringAnsi(((global::VideoLAN.LibVLC.Generated.LogMessage.__Internal*) __Instance)->psz_header);
return Marshal.PtrToStringAnsi(((global::VideoLAN.LibVLC.LogMessage.__Internal*) __Instance)->psz_header);
}
set
{
((global::VideoLAN.LibVLC.Generated.LogMessage.__Internal*) __Instance)->psz_header = Marshal.StringToHGlobalAnsi(value);
((global::VideoLAN.LibVLC.LogMessage.__Internal*) __Instance)->psz_header = Marshal.StringToHGlobalAnsi(value);
}
}
......@@ -210,12 +210,12 @@ namespace VideoLAN.LibVLC.Generated
{
get
{
return Marshal.PtrToStringAnsi(((global::VideoLAN.LibVLC.Generated.LogMessage.__Internal*) __Instance)->psz_message);
return Marshal.PtrToStringAnsi(((global::VideoLAN.LibVLC.LogMessage.__Internal*) __Instance)->psz_message);
}
set
{
((global::VideoLAN.LibVLC.Generated.LogMessage.__Internal*) __Instance)->psz_message = Marshal.StringToHGlobalAnsi(value);
((global::VideoLAN.LibVLC.LogMessage.__Internal*) __Instance)->psz_message = Marshal.StringToHGlobalAnsi(value);
}
}
}
......@@ -409,7 +409,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>if the file format did not convey the frame rate explicitly.</para>
/// <para>Consider using libvlc_media_tracks_get() instead.</para>
/// </remarks>
public static float LibvlcMediaPlayerGetFps(global::VideoLAN.LibVLC.Generated.MediaPlayer p_mi)
public static float LibvlcMediaPlayerGetFps(global::VideoLAN.LibVLC.MediaPlayer p_mi)
{
var __arg0 = ReferenceEquals(p_mi, null) ? global::System.IntPtr.Zero : p_mi.__Instance;
var __ret = __Internal.LibvlcMediaPlayerGetFps(__arg0);
......@@ -417,14 +417,14 @@ namespace VideoLAN.LibVLC.Generated
}
/// <remarks>Use libvlc_media_player_set_nsobject() instead</remarks>
public static void LibvlcMediaPlayerSetAgl(global::VideoLAN.LibVLC.Generated.MediaPlayer p_mi, uint drawable)
public static void LibvlcMediaPlayerSetAgl(global::VideoLAN.LibVLC.MediaPlayer p_mi, uint drawable)
{
var __arg0 = ReferenceEquals(p_mi, null) ? global::System.IntPtr.Zero : p_mi.__Instance;
__Internal.LibvlcMediaPlayerSetAgl(__arg0, drawable);
}
/// <remarks>Use libvlc_media_player_get_nsobject() instead</remarks>
public static uint LibvlcMediaPlayerGetAgl(global::VideoLAN.LibVLC.Generated.MediaPlayer p_mi)
public static uint LibvlcMediaPlayerGetAgl(global::VideoLAN.LibVLC.MediaPlayer p_mi)
{
var __arg0 = ReferenceEquals(p_mi, null) ? global::System.IntPtr.Zero : p_mi.__Instance;
var __ret = __Internal.LibvlcMediaPlayerGetAgl(__arg0);
......@@ -432,7 +432,7 @@ namespace VideoLAN.LibVLC.Generated
}
/// <remarks>Use libvlc_track_description_list_release() instead</remarks>
public static void LibvlcTrackDescriptionRelease(global::VideoLAN.LibVLC.Generated.TrackDescription p_track_description)
public static void LibvlcTrackDescriptionRelease(global::VideoLAN.LibVLC.TrackDescription p_track_description)
{
var __arg0 = ReferenceEquals(p_track_description, null) ? global::System.IntPtr.Zero : p_track_description.__Instance;
__Internal.LibvlcTrackDescriptionRelease(__arg0);
......@@ -442,7 +442,7 @@ namespace VideoLAN.LibVLC.Generated
/// <param name="p_mi">the media player</param>
/// <returns>the video pixel height or 0 if not applicable</returns>
/// <remarks>Use libvlc_video_get_size() instead.</remarks>
public static int LibvlcVideoGetHeight(global::VideoLAN.LibVLC.Generated.MediaPlayer p_mi)
public static int LibvlcVideoGetHeight(global::VideoLAN.LibVLC.MediaPlayer p_mi)
{
var __arg0 = ReferenceEquals(p_mi, null) ? global::System.IntPtr.Zero : p_mi.__Instance;
var __ret = __Internal.LibvlcVideoGetHeight(__arg0);
......@@ -453,7 +453,7 @@ namespace VideoLAN.LibVLC.Generated
/// <param name="p_mi">the media player</param>
/// <returns>the video pixel width or 0 if not applicable</returns>
/// <remarks>Use libvlc_video_get_size() instead.</remarks>
public static int LibvlcVideoGetWidth(global::VideoLAN.LibVLC.Generated.MediaPlayer p_mi)
public static int LibvlcVideoGetWidth(global::VideoLAN.LibVLC.MediaPlayer p_mi)
{
var __arg0 = ReferenceEquals(p_mi, null) ? global::System.IntPtr.Zero : p_mi.__Instance;
var __ret = __Internal.LibvlcVideoGetWidth(__arg0);
......@@ -466,15 +466,15 @@ namespace VideoLAN.LibVLC.Generated
/// <para>list containing description of available titles.</para>
/// <para>It must be freed with libvlc_track_description_list_release()</para>
/// </returns>
public static global::VideoLAN.LibVLC.Generated.TrackDescription LibvlcVideoGetTitleDescription(global::VideoLAN.LibVLC.Generated.MediaPlayer p_mi)
public static global::VideoLAN.LibVLC.TrackDescription LibvlcVideoGetTitleDescription(global::VideoLAN.LibVLC.MediaPlayer p_mi)
{
var __arg0 = ReferenceEquals(p_mi, null) ? global::System.IntPtr.Zero : p_mi.__Instance;
var __ret = __Internal.LibvlcVideoGetTitleDescription(__arg0);
global::VideoLAN.LibVLC.Generated.TrackDescription __result0;
global::VideoLAN.LibVLC.TrackDescription __result0;
if (__ret == IntPtr.Zero) __result0 = null;
else if (global::VideoLAN.LibVLC.Generated.TrackDescription.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.Generated.TrackDescription) global::VideoLAN.LibVLC.Generated.TrackDescription.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.Generated.TrackDescription.__CreateInstance(__ret);
else if (global::VideoLAN.LibVLC.TrackDescription.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.TrackDescription) global::VideoLAN.LibVLC.TrackDescription.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.TrackDescription.__CreateInstance(__ret);
return __result0;
}
......@@ -485,15 +485,15 @@ namespace VideoLAN.LibVLC.Generated
/// <para>list containing description of available chapter for title i_title.</para>
/// <para>It must be freed with libvlc_track_description_list_release()</para>
/// </returns>
public static global::VideoLAN.LibVLC.Generated.TrackDescription LibvlcVideoGetChapterDescription(global::VideoLAN.LibVLC.Generated.MediaPlayer p_mi, int i_title)
public static global::VideoLAN.LibVLC.TrackDescription LibvlcVideoGetChapterDescription(global::VideoLAN.LibVLC.MediaPlayer p_mi, int i_title)
{
var __arg0 = ReferenceEquals(p_mi, null) ? global::System.IntPtr.Zero : p_mi.__Instance;
var __ret = __Internal.LibvlcVideoGetChapterDescription(__arg0, i_title);
global::VideoLAN.LibVLC.Generated.TrackDescription __result0;
global::VideoLAN.LibVLC.TrackDescription __result0;
if (__ret == IntPtr.Zero) __result0 = null;
else if (global::VideoLAN.LibVLC.Generated.TrackDescription.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.Generated.TrackDescription) global::VideoLAN.LibVLC.Generated.TrackDescription.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.Generated.TrackDescription.__CreateInstance(__ret);
else if (global::VideoLAN.LibVLC.TrackDescription.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.TrackDescription) global::VideoLAN.LibVLC.TrackDescription.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.TrackDescription.__CreateInstance(__ret);
return __result0;
}
......@@ -502,7 +502,7 @@ namespace VideoLAN.LibVLC.Generated
/// <param name="psz_subtitle">new video subtitle file</param>
/// <returns>the success status (boolean)</returns>
/// <remarks>Use libvlc_media_player_add_slave() instead.</remarks>
public static int LibvlcVideoSetSubtitleFile(global::VideoLAN.LibVLC.Generated.MediaPlayer p_mi, string psz_subtitle)
public static int LibvlcVideoSetSubtitleFile(global::VideoLAN.LibVLC.MediaPlayer p_mi, string psz_subtitle)
{
var __arg0 = ReferenceEquals(p_mi, null) ? global::System.IntPtr.Zero : p_mi.__Instance;
var __ret = __Internal.LibvlcVideoSetSubtitleFile(__arg0, psz_subtitle);
......@@ -512,7 +512,7 @@ namespace VideoLAN.LibVLC.Generated
/// <summary>Toggle teletext transparent status on video output.</summary>
/// <param name="p_mi">the media player</param>
/// <remarks>use libvlc_video_set_teletext() instead.</remarks>
public static void LibvlcToggleTeletext(global::VideoLAN.LibVLC.Generated.MediaPlayer p_mi)
public static void LibvlcToggleTeletext(global::VideoLAN.LibVLC.MediaPlayer p_mi)
{
var __arg0 = ReferenceEquals(p_mi, null) ? global::System.IntPtr.Zero : p_mi.__Instance;
__Internal.LibvlcToggleTeletext(__arg0);
......@@ -521,7 +521,7 @@ namespace VideoLAN.LibVLC.Generated
/// <summary>Backward compatibility stub. Do not use in new code.</summary>
/// <returns>always 0.</returns>
/// <remarks>Use libvlc_audio_output_device_list_get() instead.</remarks>
public static int LibvlcAudioOutputDeviceCount(global::VideoLAN.LibVLC.Generated.Instance p_instance, string psz_audio_output)
public static int LibvlcAudioOutputDeviceCount(global::VideoLAN.LibVLC.Instance p_instance, string psz_audio_output)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
var __ret = __Internal.LibvlcAudioOutputDeviceCount(__arg0, psz_audio_output);
......@@ -531,7 +531,7 @@ namespace VideoLAN.LibVLC.Generated
/// <summary>Backward compatibility stub. Do not use in new code.</summary>
/// <returns>always NULL.</returns>
/// <remarks>Use libvlc_audio_output_device_list_get() instead.</remarks>
public static sbyte* LibvlcAudioOutputDeviceLongname(global::VideoLAN.LibVLC.Generated.Instance p_instance, string psz_output, int i_device)
public static sbyte* LibvlcAudioOutputDeviceLongname(global::VideoLAN.LibVLC.Instance p_instance, string psz_output, int i_device)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
var __ret = __Internal.LibvlcAudioOutputDeviceLongname(__arg0, psz_output, i_device);
......@@ -541,7 +541,7 @@ namespace VideoLAN.LibVLC.Generated
/// <summary>Backward compatibility stub. Do not use in new code.</summary>
/// <returns>always NULL.</returns>
/// <remarks>Use libvlc_audio_output_device_list_get() instead.</remarks>
public static sbyte* LibvlcAudioOutputDeviceId(global::VideoLAN.LibVLC.Generated.Instance p_instance, string psz_audio_output, int i_device)
public static sbyte* LibvlcAudioOutputDeviceId(global::VideoLAN.LibVLC.Instance p_instance, string psz_audio_output, int i_device)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
var __ret = __Internal.LibvlcAudioOutputDeviceId(__arg0, psz_audio_output, i_device);
......@@ -550,7 +550,7 @@ namespace VideoLAN.LibVLC.Generated
/// <summary>Stub for backward compatibility.</summary>
/// <returns>always -1.</returns>
public static int LibvlcAudioOutputGetDeviceType(global::VideoLAN.LibVLC.Generated.MediaPlayer p_mi)
public static int LibvlcAudioOutputGetDeviceType(global::VideoLAN.LibVLC.MediaPlayer p_mi)
{
var __arg0 = ReferenceEquals(p_mi, null) ? global::System.IntPtr.Zero : p_mi.__Instance;
var __ret = __Internal.LibvlcAudioOutputGetDeviceType(__arg0);
......@@ -558,7 +558,7 @@ namespace VideoLAN.LibVLC.Generated
}
/// <summary>Stub for backward compatibility.</summary>
public static void LibvlcAudioOutputSetDeviceType(global::VideoLAN.LibVLC.Generated.MediaPlayer p_mp, int device_type)
public static void LibvlcAudioOutputSetDeviceType(global::VideoLAN.LibVLC.MediaPlayer p_mp, int device_type)
{
var __arg0 = ReferenceEquals(p_mp, null) ? global::System.IntPtr.Zero : p_mp.__Instance;
__Internal.LibvlcAudioOutputSetDeviceType(__arg0, device_type);
......@@ -575,7 +575,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>libvlc_media_get_meta</para>
/// <para>libvlc_media_get_tracks_info</para>
/// </remarks>
public static void LibvlcMediaParse(global::VideoLAN.LibVLC.Generated.Media p_md)
public static void LibvlcMediaParse(global::VideoLAN.LibVLC.Media p_md)
{
var __arg0 = ReferenceEquals(p_md, null) ? global::System.IntPtr.Zero : p_md.__Instance;
__Internal.LibvlcMediaParse(__arg0);
......@@ -597,7 +597,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>libvlc_media_get_meta</para>
/// <para>libvlc_media_get_tracks_info</para>
/// </remarks>
public static void LibvlcMediaParseAsync(global::VideoLAN.LibVLC.Generated.Media p_md)
public static void LibvlcMediaParseAsync(global::VideoLAN.LibVLC.Media p_md)
{
var __arg0 = ReferenceEquals(p_md, null) ? global::System.IntPtr.Zero : p_md.__Instance;
__Internal.LibvlcMediaParseAsync(__arg0);
......@@ -611,7 +611,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>Use libvlc_media_get_parsed_status() instead</para>
/// <para>libvlc_MediaParsedChanged</para>
/// </remarks>
public static int LibvlcMediaIsParsed(global::VideoLAN.LibVLC.Generated.Media p_md)
public static int LibvlcMediaIsParsed(global::VideoLAN.LibVLC.Media p_md)
{
var __arg0 = ReferenceEquals(p_md, null) ? global::System.IntPtr.Zero : p_md.__Instance;
var __ret = __Internal.LibvlcMediaIsParsed(__arg0);
......@@ -631,7 +631,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>Not doing this will result in an empty array.</para>
/// <para>Use libvlc_media_tracks_get() instead</para>
/// </remarks>
public static int LibvlcMediaGetTracksInfo(global::VideoLAN.LibVLC.Generated.Media p_md, global::VideoLAN.LibVLC.Generated.MediaTrackInfo tracks)
public static int LibvlcMediaGetTracksInfo(global::VideoLAN.LibVLC.Media p_md, global::VideoLAN.LibVLC.MediaTrackInfo tracks)
{
var __arg0 = ReferenceEquals(p_md, null) ? global::System.IntPtr.Zero : p_md.__Instance;
var __arg1 = ReferenceEquals(tracks, null) ? global::System.IntPtr.Zero : tracks.__Instance;
......@@ -640,7 +640,7 @@ namespace VideoLAN.LibVLC.Generated
}
/// <summary>@{</summary>
public static int LibvlcMediaListAddFileContent(global::VideoLAN.LibVLC.Generated.MediaList p_ml, string psz_uri)
public static int LibvlcMediaListAddFileContent(global::VideoLAN.LibVLC.MediaList p_ml, string psz_uri)
{
var __arg0 = ReferenceEquals(p_ml, null) ? global::System.IntPtr.Zero : p_ml.__Instance;
var __ret = __Internal.LibvlcMediaListAddFileContent(__arg0, psz_uri);
......@@ -648,15 +648,15 @@ namespace VideoLAN.LibVLC.Generated
}
/// <remarks>Use libvlc_media_discoverer_new() and libvlc_media_discoverer_start().</remarks>
public static global::VideoLAN.LibVLC.Generated.MediaDiscoverer LibvlcMediaDiscovererNewFromName(global::VideoLAN.LibVLC.Generated.Instance p_inst, string psz_name)
public static global::VideoLAN.LibVLC.MediaDiscoverer LibvlcMediaDiscovererNewFromName(global::VideoLAN.LibVLC.Instance p_inst, string psz_name)
{
var __arg0 = ReferenceEquals(p_inst, null) ? global::System.IntPtr.Zero : p_inst.__Instance;
var __ret = __Internal.LibvlcMediaDiscovererNewFromName(__arg0, psz_name);
global::VideoLAN.LibVLC.Generated.MediaDiscoverer __result0;
global::VideoLAN.LibVLC.MediaDiscoverer __result0;
if (__ret == IntPtr.Zero) __result0 = null;
else if (global::VideoLAN.LibVLC.Generated.MediaDiscoverer.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.Generated.MediaDiscoverer) global::VideoLAN.LibVLC.Generated.MediaDiscoverer.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.Generated.MediaDiscoverer.__CreateInstance(__ret);
else if (global::VideoLAN.LibVLC.MediaDiscoverer.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.MediaDiscoverer) global::VideoLAN.LibVLC.MediaDiscoverer.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.MediaDiscoverer.__CreateInstance(__ret);
return __result0;
}
......@@ -667,7 +667,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>Useless, use libvlc_media_discoverer_list_get() to get the</para>
/// <para>longname of the service discovery.</para>
/// </remarks>
public static sbyte* LibvlcMediaDiscovererLocalizedName(global::VideoLAN.LibVLC.Generated.MediaDiscoverer p_mdis)
public static sbyte* LibvlcMediaDiscovererLocalizedName(global::VideoLAN.LibVLC.MediaDiscoverer p_mdis)
{
var __arg0 = ReferenceEquals(p_mdis, null) ? global::System.IntPtr.Zero : p_mdis.__Instance;
var __ret = __Internal.LibvlcMediaDiscovererLocalizedName(__arg0);
......@@ -681,15 +681,15 @@ namespace VideoLAN.LibVLC.Generated
/// <para>Useless, media_discoverer events are only triggered when calling</para>
/// <para>libvlc_media_discoverer_start() and libvlc_media_discoverer_stop().</para>
/// </remarks>
public static global::VideoLAN.LibVLC.Generated.EventManager LibvlcMediaDiscovererEventManager(global::VideoLAN.LibVLC.Generated.MediaDiscoverer p_mdis)
public static global::VideoLAN.LibVLC.EventManager LibvlcMediaDiscovererEventManager(global::VideoLAN.LibVLC.MediaDiscoverer p_mdis)
{
var __arg0 = ReferenceEquals(p_mdis, null) ? global::System.IntPtr.Zero : p_mdis.__Instance;
var __ret = __Internal.LibvlcMediaDiscovererEventManager(__arg0);
global::VideoLAN.LibVLC.Generated.EventManager __result0;
global::VideoLAN.LibVLC.EventManager __result0;
if (__ret == IntPtr.Zero) __result0 = null;
else if (global::VideoLAN.LibVLC.Generated.EventManager.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.Generated.EventManager) global::VideoLAN.LibVLC.Generated.EventManager.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.Generated.EventManager.__CreateInstance(__ret);
else if (global::VideoLAN.LibVLC.EventManager.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.EventManager) global::VideoLAN.LibVLC.EventManager.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.EventManager.__CreateInstance(__ret);
return __result0;
}
......@@ -702,7 +702,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>This function wastes one thread doing basically nothing.</para>
/// <para>libvlc_set_exit_handler() should be used instead.</para>
/// </remarks>
public static void LibvlcWait(global::VideoLAN.LibVLC.Generated.Instance p_instance)
public static void LibvlcWait(global::VideoLAN.LibVLC.Instance p_instance)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
__Internal.LibvlcWait(__arg0);
......@@ -714,7 +714,7 @@ namespace VideoLAN.LibVLC.Generated
/// </summary>
/// <param name="p_instance">ignored</param>
/// <returns>always -1</returns>
public static uint LibvlcGetLogVerbosity(global::VideoLAN.LibVLC.Generated.Instance p_instance)
public static uint LibvlcGetLogVerbosity(global::VideoLAN.LibVLC.Instance p_instance)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
var __ret = __Internal.LibvlcGetLogVerbosity(__arg0);
......@@ -727,7 +727,7 @@ namespace VideoLAN.LibVLC.Generated
/// </summary>
/// <param name="p_instance">ignored</param>
/// <param name="level">ignored</param>
public static void LibvlcSetLogVerbosity(global::VideoLAN.LibVLC.Generated.Instance p_instance, uint level)
public static void LibvlcSetLogVerbosity(global::VideoLAN.LibVLC.Instance p_instance, uint level)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
__Internal.LibvlcSetLogVerbosity(__arg0, level);
......@@ -739,21 +739,21 @@ namespace VideoLAN.LibVLC.Generated
/// </summary>
/// <param name="p_instance">libvlc instance</param>
/// <returns>an unique pointer or NULL on error</returns>
public static global::VideoLAN.LibVLC.Generated.Log LibvlcLogOpen(global::VideoLAN.LibVLC.Generated.Instance p_instance)
public static global::VideoLAN.LibVLC.Log LibvlcLogOpen(global::VideoLAN.LibVLC.Instance p_instance)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
var __ret = __Internal.LibvlcLogOpen(__arg0);
global::VideoLAN.LibVLC.Generated.Log __result0;
global::VideoLAN.LibVLC.Log __result0;
if (__ret == IntPtr.Zero) __result0 = null;
else if (global::VideoLAN.LibVLC.Generated.Log.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.Generated.Log) global::VideoLAN.LibVLC.Generated.Log.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.Generated.Log.__CreateInstance(__ret);
else if (global::VideoLAN.LibVLC.Log.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.Log) global::VideoLAN.LibVLC.Log.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.Log.__CreateInstance(__ret);
return __result0;
}
/// <summary>Frees memory allocated by libvlc_log_open().</summary>
/// <param name="p_log">libvlc log instance or NULL</param>
public static void LibvlcLogClose(global::VideoLAN.LibVLC.Generated.Log p_log)
public static void LibvlcLogClose(global::VideoLAN.LibVLC.Log p_log)
{
var __arg0 = ReferenceEquals(p_log, null) ? global::System.IntPtr.Zero : p_log.__Instance;
__Internal.LibvlcLogClose(__arg0);
......@@ -765,7 +765,7 @@ namespace VideoLAN.LibVLC.Generated
/// </summary>
/// <param name="p_log">ignored</param>
/// <returns>always zero</returns>
public static uint LibvlcLogCount(global::VideoLAN.LibVLC.Generated.Log p_log)
public static uint LibvlcLogCount(global::VideoLAN.LibVLC.Log p_log)
{
var __arg0 = ReferenceEquals(p_log, null) ? global::System.IntPtr.Zero : p_log.__Instance;
var __ret = __Internal.LibvlcLogCount(__arg0);
......@@ -777,7 +777,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>It is only provided for backward compatibility.</para>
/// </summary>
/// <param name="p_log">ignored</param>
public static void LibvlcLogClear(global::VideoLAN.LibVLC.Generated.Log p_log)
public static void LibvlcLogClear(global::VideoLAN.LibVLC.Log p_log)
{
var __arg0 = ReferenceEquals(p_log, null) ? global::System.IntPtr.Zero : p_log.__Instance;
__Internal.LibvlcLogClear(__arg0);
......@@ -789,21 +789,21 @@ namespace VideoLAN.LibVLC.Generated
/// </summary>
/// <param name="p_log">ignored</param>
/// <returns>an unique pointer or NULL on error or if the parameter was NULL</returns>
public static global::VideoLAN.LibVLC.Generated.LogIterator LibvlcLogGetIterator(global::VideoLAN.LibVLC.Generated.Log p_log)
public static global::VideoLAN.LibVLC.LogIterator LibvlcLogGetIterator(global::VideoLAN.LibVLC.Log p_log)
{
var __arg0 = ReferenceEquals(p_log, null) ? global::System.IntPtr.Zero : p_log.__Instance;
var __ret = __Internal.LibvlcLogGetIterator(__arg0);
global::VideoLAN.LibVLC.Generated.LogIterator __result0;
global::VideoLAN.LibVLC.LogIterator __result0;
if (__ret == IntPtr.Zero) __result0 = null;
else if (global::VideoLAN.LibVLC.Generated.LogIterator.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.Generated.LogIterator) global::VideoLAN.LibVLC.Generated.LogIterator.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.Generated.LogIterator.__CreateInstance(__ret);
else if (global::VideoLAN.LibVLC.LogIterator.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.LogIterator) global::VideoLAN.LibVLC.LogIterator.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.LogIterator.__CreateInstance(__ret);
return __result0;
}
/// <summary>Frees memory allocated by libvlc_log_get_iterator().</summary>
/// <param name="p_iter">libvlc log iterator or NULL</param>
public static void LibvlcLogIteratorFree(global::VideoLAN.LibVLC.Generated.LogIterator p_iter)
public static void LibvlcLogIteratorFree(global::VideoLAN.LibVLC.LogIterator p_iter)
{
var __arg0 = ReferenceEquals(p_iter, null) ? global::System.IntPtr.Zero : p_iter.__Instance;
__Internal.LibvlcLogIteratorFree(__arg0);
......@@ -815,7 +815,7 @@ namespace VideoLAN.LibVLC.Generated
/// </summary>
/// <param name="p_iter">ignored</param>
/// <returns>always zero</returns>
public static int LibvlcLogIteratorHasNext(global::VideoLAN.LibVLC.Generated.LogIterator p_iter)
public static int LibvlcLogIteratorHasNext(global::VideoLAN.LibVLC.LogIterator p_iter)
{
var __arg0 = ReferenceEquals(p_iter, null) ? global::System.IntPtr.Zero : p_iter.__Instance;
var __ret = __Internal.LibvlcLogIteratorHasNext(__arg0);
......@@ -829,16 +829,16 @@ namespace VideoLAN.LibVLC.Generated
/// <param name="p_iter">libvlc log iterator or NULL</param>
/// <param name="p_buf">ignored</param>
/// <returns>always NULL</returns>
public static global::VideoLAN.LibVLC.Generated.LogMessage LibvlcLogIteratorNext(global::VideoLAN.LibVLC.Generated.LogIterator p_iter, global::VideoLAN.LibVLC.Generated.LogMessage p_buf)
public static global::VideoLAN.LibVLC.LogMessage LibvlcLogIteratorNext(global::VideoLAN.LibVLC.LogIterator p_iter, global::VideoLAN.LibVLC.LogMessage p_buf)
{
var __arg0 = ReferenceEquals(p_iter, null) ? global::System.IntPtr.Zero : p_iter.__Instance;
var __arg1 = ReferenceEquals(p_buf, null) ? global::System.IntPtr.Zero : p_buf.__Instance;
var __ret = __Internal.LibvlcLogIteratorNext(__arg0, __arg1);
global::VideoLAN.LibVLC.Generated.LogMessage __result0;
global::VideoLAN.LibVLC.LogMessage __result0;
if (__ret == IntPtr.Zero) __result0 = null;
else if (global::VideoLAN.LibVLC.Generated.LogMessage.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.Generated.LogMessage) global::VideoLAN.LibVLC.Generated.LogMessage.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.Generated.LogMessage.__CreateInstance(__ret);
else if (global::VideoLAN.LibVLC.LogMessage.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.LogMessage) global::VideoLAN.LibVLC.LogMessage.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.LogMessage.__CreateInstance(__ret);
return __result0;
}
......@@ -855,7 +855,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>Additionnal playlist item options can be specified for addition to the</para>
/// <para>item before it is played.</para>
/// </remarks>
public static void LibvlcPlaylistPlay(global::VideoLAN.LibVLC.Generated.Instance p_instance, int i_id, int i_options, sbyte** ppsz_options)
public static void LibvlcPlaylistPlay(global::VideoLAN.LibVLC.Instance p_instance, int i_id, int i_options, sbyte** ppsz_options)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
__Internal.LibvlcPlaylistPlay(__arg0, i_id, i_options, ppsz_options);
......
......@@ -8,7 +8,7 @@ using System;
using System.Runtime.InteropServices;
using System.Security;
namespace VideoLAN.LibVLC.Generated
namespace VideoLAN.LibVLC
{
/// <summary>Logging messages level.</summary>
/// <remarks>Future LibVLC versions may define new levels.</remarks>
......@@ -49,29 +49,29 @@ namespace VideoLAN.LibVLC.Generated
public global::System.IntPtr __Instance { get; protected set; }
protected int __PointerAdjustment;
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Generated.Instance> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Generated.Instance>();
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Instance> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Instance>();
protected void*[] __OriginalVTables;
protected bool __ownsNativeInstance;
internal static global::VideoLAN.LibVLC.Generated.Instance __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
internal static global::VideoLAN.LibVLC.Instance __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.Generated.Instance(native.ToPointer(), skipVTables);
return new global::VideoLAN.LibVLC.Instance(native.ToPointer(), skipVTables);
}
internal static global::VideoLAN.LibVLC.Generated.Instance __CreateInstance(global::VideoLAN.LibVLC.Generated.Instance.__Internal native, bool skipVTables = false)
internal static global::VideoLAN.LibVLC.Instance __CreateInstance(global::VideoLAN.LibVLC.Instance.__Internal native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.Generated.Instance(native, skipVTables);
return new global::VideoLAN.LibVLC.Instance(native, skipVTables);
}
private static void* __CopyValue(global::VideoLAN.LibVLC.Generated.Instance.__Internal native)
private static void* __CopyValue(global::VideoLAN.LibVLC.Instance.__Internal native)
{
var ret = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Generated.Instance.__Internal));
*(global::VideoLAN.LibVLC.Generated.Instance.__Internal*) ret = native;
var ret = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Instance.__Internal));
*(global::VideoLAN.LibVLC.Instance.__Internal*) ret = native;
return ret.ToPointer();
}
private Instance(global::VideoLAN.LibVLC.Generated.Instance.__Internal native, bool skipVTables = false)
private Instance(global::VideoLAN.LibVLC.Instance.__Internal native, bool skipVTables = false)
: this(__CopyValue(native), skipVTables)
{
__ownsNativeInstance = true;
......@@ -129,7 +129,7 @@ namespace VideoLAN.LibVLC.Generated
/// </remarks>
internal Instance(int argc, sbyte** argv)
{
__Instance = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Generated.Instance.__Internal));
__Instance = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Instance.__Internal));
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
__Internal.ctor((__Instance + __PointerAdjustment), argc, argv);
......@@ -146,29 +146,29 @@ namespace VideoLAN.LibVLC.Generated
public global::System.IntPtr __Instance { get; protected set; }
protected int __PointerAdjustment;
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Generated.EventManager> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Generated.EventManager>();
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.EventManager> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.EventManager>();
protected void*[] __OriginalVTables;
protected bool __ownsNativeInstance;
internal static global::VideoLAN.LibVLC.Generated.EventManager __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
internal static global::VideoLAN.LibVLC.EventManager __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.Generated.EventManager(native.ToPointer(), skipVTables);
return new global::VideoLAN.LibVLC.EventManager(native.ToPointer(), skipVTables);
}
internal static global::VideoLAN.LibVLC.Generated.EventManager __CreateInstance(global::VideoLAN.LibVLC.Generated.EventManager.__Internal native, bool skipVTables = false)
internal static global::VideoLAN.LibVLC.EventManager __CreateInstance(global::VideoLAN.LibVLC.EventManager.__Internal native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.Generated.EventManager(native, skipVTables);
return new global::VideoLAN.LibVLC.EventManager(native, skipVTables);
}
private static void* __CopyValue(global::VideoLAN.LibVLC.Generated.EventManager.__Internal native)
private static void* __CopyValue(global::VideoLAN.LibVLC.EventManager.__Internal native)
{
var ret = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Generated.EventManager.__Internal));
*(global::VideoLAN.LibVLC.Generated.EventManager.__Internal*) ret = native;
var ret = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.EventManager.__Internal));
*(global::VideoLAN.LibVLC.EventManager.__Internal*) ret = native;
return ret.ToPointer();
}
private EventManager(global::VideoLAN.LibVLC.Generated.EventManager.__Internal native, bool skipVTables = false)
private EventManager(global::VideoLAN.LibVLC.EventManager.__Internal native, bool skipVTables = false)
: this(__CopyValue(native), skipVTables)
{
__ownsNativeInstance = true;
......@@ -193,29 +193,29 @@ namespace VideoLAN.LibVLC.Generated
public global::System.IntPtr __Instance { get; protected set; }
protected int __PointerAdjustment;
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Generated.Log> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Generated.Log>();
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Log> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Log>();
protected void*[] __OriginalVTables;
protected bool __ownsNativeInstance;
internal static global::VideoLAN.LibVLC.Generated.Log __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
internal static global::VideoLAN.LibVLC.Log __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.Generated.Log(native.ToPointer(), skipVTables);
return new global::VideoLAN.LibVLC.Log(native.ToPointer(), skipVTables);
}
internal static global::VideoLAN.LibVLC.Generated.Log __CreateInstance(global::VideoLAN.LibVLC.Generated.Log.__Internal native, bool skipVTables = false)
internal static global::VideoLAN.LibVLC.Log __CreateInstance(global::VideoLAN.LibVLC.Log.__Internal native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.Generated.Log(native, skipVTables);
return new global::VideoLAN.LibVLC.Log(native, skipVTables);
}
private static void* __CopyValue(global::VideoLAN.LibVLC.Generated.Log.__Internal native)
private static void* __CopyValue(global::VideoLAN.LibVLC.Log.__Internal native)
{
var ret = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Generated.Log.__Internal));
*(global::VideoLAN.LibVLC.Generated.Log.__Internal*) ret = native;
var ret = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Log.__Internal));
*(global::VideoLAN.LibVLC.Log.__Internal*) ret = native;
return ret.ToPointer();
}
private Log(global::VideoLAN.LibVLC.Generated.Log.__Internal native, bool skipVTables = false)
private Log(global::VideoLAN.LibVLC.Log.__Internal native, bool skipVTables = false)
: this(__CopyValue(native), skipVTables)
{
__ownsNativeInstance = true;
......@@ -260,29 +260,29 @@ namespace VideoLAN.LibVLC.Generated
public global::System.IntPtr __Instance { get; protected set; }
protected int __PointerAdjustment;
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Generated.ModuleDescription> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.Generated.ModuleDescription>();
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.ModuleDescription> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.ModuleDescription>();
protected void*[] __OriginalVTables;
protected bool __ownsNativeInstance;
internal static global::VideoLAN.LibVLC.Generated.ModuleDescription __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
internal static global::VideoLAN.LibVLC.ModuleDescription __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.Generated.ModuleDescription(native.ToPointer(), skipVTables);
return new global::VideoLAN.LibVLC.ModuleDescription(native.ToPointer(), skipVTables);
}
internal static global::VideoLAN.LibVLC.Generated.ModuleDescription __CreateInstance(global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal native, bool skipVTables = false)
internal static global::VideoLAN.LibVLC.ModuleDescription __CreateInstance(global::VideoLAN.LibVLC.ModuleDescription.__Internal native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.Generated.ModuleDescription(native, skipVTables);
return new global::VideoLAN.LibVLC.ModuleDescription(native, skipVTables);
}
private static void* __CopyValue(global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal native)
private static void* __CopyValue(global::VideoLAN.LibVLC.ModuleDescription.__Internal native)
{
var ret = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal));
*(global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) ret = native;
var ret = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.ModuleDescription.__Internal));
*(global::VideoLAN.LibVLC.ModuleDescription.__Internal*) ret = native;
return ret.ToPointer();
}
private ModuleDescription(global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal native, bool skipVTables = false)
private ModuleDescription(global::VideoLAN.LibVLC.ModuleDescription.__Internal native, bool skipVTables = false)
: this(__CopyValue(native), skipVTables)
{
__ownsNativeInstance = true;
......@@ -298,17 +298,17 @@ namespace VideoLAN.LibVLC.Generated
public ModuleDescription()
{
__Instance = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal));
__Instance = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.ModuleDescription.__Internal));
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
public ModuleDescription(global::VideoLAN.LibVLC.Generated.ModuleDescription _0)
public ModuleDescription(global::VideoLAN.LibVLC.ModuleDescription _0)
{
__Instance = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal));
__Instance = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.ModuleDescription.__Internal));
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
*((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance) = *((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) _0.__Instance);
*((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance) = *((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) _0.__Instance);
}
public void Dispose()
......@@ -320,7 +320,7 @@ namespace VideoLAN.LibVLC.Generated
{
if (__Instance == IntPtr.Zero)
return;
global::VideoLAN.LibVLC.Generated.ModuleDescription __dummy;
global::VideoLAN.LibVLC.ModuleDescription __dummy;
NativeToManagedMap.TryRemove(__Instance, out __dummy);
if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance);
......@@ -331,12 +331,12 @@ namespace VideoLAN.LibVLC.Generated
{
get
{
return (sbyte*) ((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance)->psz_name;
return (sbyte*) ((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance)->psz_name;
}
set
{
((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance)->psz_name = (global::System.IntPtr) value;
((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance)->psz_name = (global::System.IntPtr) value;
}
}
......@@ -344,12 +344,12 @@ namespace VideoLAN.LibVLC.Generated
{
get
{
return (sbyte*) ((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance)->psz_shortname;
return (sbyte*) ((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance)->psz_shortname;
}
set
{
((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance)->psz_shortname = (global::System.IntPtr) value;
((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance)->psz_shortname = (global::System.IntPtr) value;
}
}
......@@ -357,12 +357,12 @@ namespace VideoLAN.LibVLC.Generated
{
get
{
return (sbyte*) ((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance)->psz_longname;
return (sbyte*) ((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance)->psz_longname;
}
set
{
((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance)->psz_longname = (global::System.IntPtr) value;
((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance)->psz_longname = (global::System.IntPtr) value;
}
}
......@@ -370,30 +370,30 @@ namespace VideoLAN.LibVLC.Generated
{
get
{
return (sbyte*) ((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance)->psz_help;
return (sbyte*) ((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance)->psz_help;
}
set
{
((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance)->psz_help = (global::System.IntPtr) value;
((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance)->psz_help = (global::System.IntPtr) value;
}
}
public global::VideoLAN.LibVLC.Generated.ModuleDescription PNext
public global::VideoLAN.LibVLC.ModuleDescription PNext
{
get
{
global::VideoLAN.LibVLC.Generated.ModuleDescription __result0;
if (((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance)->p_next == IntPtr.Zero) __result0 = null;
else if (global::VideoLAN.LibVLC.Generated.ModuleDescription.NativeToManagedMap.ContainsKey(((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance)->p_next))
__result0 = (global::VideoLAN.LibVLC.Generated.ModuleDescription) global::VideoLAN.LibVLC.Generated.ModuleDescription.NativeToManagedMap[((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance)->p_next];
else __result0 = global::VideoLAN.LibVLC.Generated.ModuleDescription.__CreateInstance(((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance)->p_next);
global::VideoLAN.LibVLC.ModuleDescription __result0;
if (((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance)->p_next == IntPtr.Zero) __result0 = null;
else if (global::VideoLAN.LibVLC.ModuleDescription.NativeToManagedMap.ContainsKey(((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance)->p_next))
__result0 = (global::VideoLAN.LibVLC.ModuleDescription) global::VideoLAN.LibVLC.ModuleDescription.NativeToManagedMap[((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance)->p_next];
else __result0 = global::VideoLAN.LibVLC.ModuleDescription.__CreateInstance(((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance)->p_next);
return __result0;
}
set
{
((global::VideoLAN.LibVLC.Generated.ModuleDescription.__Internal*) __Instance)->p_next = ReferenceEquals(value, null) ? global::System.IntPtr.Zero : value.__Instance;
((global::VideoLAN.LibVLC.ModuleDescription.__Internal*) __Instance)->p_next = ReferenceEquals(value, null) ? global::System.IntPtr.Zero : value.__Instance;
}
}
}
......@@ -568,7 +568,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>if it reaches zero.</para>
/// </summary>
/// <param name="p_instance">the instance to destroy</param>
public static void LibvlcRelease(global::VideoLAN.LibVLC.Generated.Instance p_instance)
public static void LibvlcRelease(global::VideoLAN.LibVLC.Instance p_instance)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
__Internal.LibvlcRelease(__arg0);
......@@ -579,7 +579,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>The initial reference count is 1 after libvlc_new() returns.</para>
/// </summary>
/// <param name="p_instance">the instance to reference</param>
public static void LibvlcRetain(global::VideoLAN.LibVLC.Generated.Instance p_instance)
public static void LibvlcRetain(global::VideoLAN.LibVLC.Instance p_instance)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
__Internal.LibvlcRetain(__arg0);
......@@ -589,7 +589,7 @@ namespace VideoLAN.LibVLC.Generated
/// <param name="p_instance">the instance</param>
/// <param name="name">interface name, or NULL for default</param>
/// <returns>0 on success, -1 on error.</returns>
public static int LibvlcAddIntf(global::VideoLAN.LibVLC.Generated.Instance p_instance, string name)
public static int LibvlcAddIntf(global::VideoLAN.LibVLC.Instance p_instance, string name)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
var __ret = __Internal.LibvlcAddIntf(__arg0, name);
......@@ -615,7 +615,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>be raised before the handler is registered.</para>
/// <para>This function and libvlc_wait() cannot be used at the same time.</para>
/// </remarks>
public static void LibvlcSetExitHandler(global::VideoLAN.LibVLC.Generated.Instance p_instance, global::VideoLAN.LibVLC.Generated.Delegates.Action_IntPtr cb, global::System.IntPtr opaque)
public static void LibvlcSetExitHandler(global::VideoLAN.LibVLC.Instance p_instance, global::VideoLAN.LibVLC.Delegates.Action_IntPtr cb, global::System.IntPtr opaque)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
var __arg1 = cb == null ? global::System.IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(cb);
......@@ -630,7 +630,7 @@ namespace VideoLAN.LibVLC.Generated
/// <param name="name">human-readable application name, e.g. &quot;FooBar player 1.2.3&quot;</param>
/// <param name="http">HTTP User Agent, e.g. &quot;FooBar/1.2.3 Python/2.6.0&quot;</param>
/// <remarks>LibVLC 1.1.1 or later</remarks>
public static void LibvlcSetUserAgent(global::VideoLAN.LibVLC.Generated.Instance p_instance, string name, string http)
public static void LibvlcSetUserAgent(global::VideoLAN.LibVLC.Instance p_instance, string name, string http)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
__Internal.LibvlcSetUserAgent(__arg0, name, http);
......@@ -645,7 +645,7 @@ namespace VideoLAN.LibVLC.Generated
/// <param name="version">application version numbers, e.g. &quot;1.2.3&quot;</param>
/// <param name="icon">application icon name, e.g. &quot;foobar&quot;</param>
/// <remarks>LibVLC 2.1.0 or later.</remarks>
public static void LibvlcSetAppId(global::VideoLAN.LibVLC.Generated.Instance p_instance, string id, string version, string icon)
public static void LibvlcSetAppId(global::VideoLAN.LibVLC.Instance p_instance, string id, string version, string icon)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
__Internal.LibvlcSetAppId(__arg0, id, version, icon);
......@@ -699,7 +699,7 @@ namespace VideoLAN.LibVLC.Generated
/// <param name="f_callback">the function to call when i_event_type occurs</param>
/// <param name="user_data">user provided data to carry with the event</param>
/// <returns>0 on success, ENOMEM on error</returns>
public static int LibvlcEventAttach(global::VideoLAN.LibVLC.Generated.EventManager p_event_manager, int i_event_type, global::VideoLAN.LibVLC.Generated.LibvlcCallbackT f_callback, global::System.IntPtr user_data)
public static int LibvlcEventAttach(global::VideoLAN.LibVLC.EventManager p_event_manager, int i_event_type, global::VideoLAN.LibVLC.LibvlcCallbackT f_callback, global::System.IntPtr user_data)
{
var __arg0 = ReferenceEquals(p_event_manager, null) ? global::System.IntPtr.Zero : p_event_manager.__Instance;
var __arg2 = f_callback == null ? global::System.IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(f_callback);
......@@ -712,7 +712,7 @@ namespace VideoLAN.LibVLC.Generated
/// <param name="i_event_type">the desired event to which we want to unregister</param>
/// <param name="f_callback">the function to call when i_event_type occurs</param>
/// <param name="p_user_data">user provided data to carry with the event</param>
public static void LibvlcEventDetach(global::VideoLAN.LibVLC.Generated.EventManager p_event_manager, int i_event_type, global::VideoLAN.LibVLC.Generated.LibvlcCallbackT f_callback, global::System.IntPtr p_user_data)
public static void LibvlcEventDetach(global::VideoLAN.LibVLC.EventManager p_event_manager, int i_event_type, global::VideoLAN.LibVLC.LibvlcCallbackT f_callback, global::System.IntPtr p_user_data)
{
var __arg0 = ReferenceEquals(p_event_manager, null) ? global::System.IntPtr.Zero : p_event_manager.__Instance;
var __arg2 = f_callback == null ? global::System.IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(f_callback);
......@@ -743,7 +743,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>are only valid until the logging callback returns.</para>
/// <para>LibVLC 2.1.0 or later</para>
/// </remarks>
public static void LibvlcLogGetContext(global::VideoLAN.LibVLC.Generated.Log ctx, sbyte** module, sbyte** file, ref uint line)
public static void LibvlcLogGetContext(global::VideoLAN.LibVLC.Log ctx, sbyte** module, sbyte** file, ref uint line)
{
var __arg0 = ReferenceEquals(ctx, null) ? global::System.IntPtr.Zero : ctx.__Instance;
fixed (uint* __refParamPtr3 = &line)
......@@ -773,7 +773,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>are only valid until the logging callback returns.</para>
/// <para>LibVLC 2.1.0 or later</para>
/// </remarks>
public static void LibvlcLogGetObject(global::VideoLAN.LibVLC.Generated.Log ctx, sbyte** name, sbyte** header, ref ulong id)
public static void LibvlcLogGetObject(global::VideoLAN.LibVLC.Log ctx, sbyte** name, sbyte** header, ref ulong id)
{
var __arg0 = ReferenceEquals(ctx, null) ? global::System.IntPtr.Zero : ctx.__Instance;
fixed (ulong* __refParamPtr3 = &id)
......@@ -793,7 +793,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>complete (causing a deadlock if called from within the callback).</para>
/// <para>LibVLC 2.1.0 or later</para>
/// </remarks>
public static void LibvlcLogUnset(global::VideoLAN.LibVLC.Generated.Instance p_instance)
public static void LibvlcLogUnset(global::VideoLAN.LibVLC.Instance p_instance)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
__Internal.LibvlcLogUnset(__arg0);
......@@ -806,7 +806,7 @@ namespace VideoLAN.LibVLC.Generated
/// <para>(the FILE pointer must remain valid until libvlc_log_unset())</para>
/// </param>
/// <remarks>LibVLC 2.1.0 or later</remarks>
public static void LibvlcLogSetFile(global::VideoLAN.LibVLC.Generated.Instance p_instance, global::System.IntPtr stream)
public static void LibvlcLogSetFile(global::VideoLAN.LibVLC.Instance p_instance, global::System.IntPtr stream)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
__Internal.LibvlcLogSetFile(__arg0, stream);
......@@ -814,7 +814,7 @@ namespace VideoLAN.LibVLC.Generated
/// <summary>Release a list of module descriptions.</summary>
/// <param name="p_list">the list to be released</param>
public static void LibvlcModuleDescriptionListRelease(global::VideoLAN.LibVLC.Generated.ModuleDescription p_list)
public static void LibvlcModuleDescriptionListRelease(global::VideoLAN.LibVLC.ModuleDescription p_list)
{
var __arg0 = ReferenceEquals(p_list, null) ? global::System.IntPtr.Zero : p_list.__Instance;
__Internal.LibvlcModuleDescriptionListRelease(__arg0);
......@@ -830,15 +830,15 @@ namespace VideoLAN.LibVLC.Generated
/// <para>libvlc_module_description_t</para>
/// <para>libvlc_module_description_list_release</para>
/// </remarks>
public static global::VideoLAN.LibVLC.Generated.ModuleDescription LibvlcAudioFilterListGet(global::VideoLAN.LibVLC.Generated.Instance p_instance)
public static global::VideoLAN.LibVLC.ModuleDescription LibvlcAudioFilterListGet(global::VideoLAN.LibVLC.Instance p_instance)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
var __ret = __Internal.LibvlcAudioFilterListGet(__arg0);
global::VideoLAN.LibVLC.Generated.ModuleDescription __result0;
global::VideoLAN.LibVLC.ModuleDescription __result0;
if (__ret == IntPtr.Zero) __result0 = null;
else if (global::VideoLAN.LibVLC.Generated.ModuleDescription.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.Generated.ModuleDescription) global::VideoLAN.LibVLC.Generated.ModuleDescription.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.Generated.ModuleDescription.__CreateInstance(__ret);
else if (global::VideoLAN.LibVLC.ModuleDescription.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.ModuleDescription) global::VideoLAN.LibVLC.ModuleDescription.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.ModuleDescription.__CreateInstance(__ret);
return __result0;
}
......@@ -852,15 +852,15 @@ namespace VideoLAN.LibVLC.Generated
/// <para>libvlc_module_description_t</para>
/// <para>libvlc_module_description_list_release</para>
/// </remarks>
public static global::VideoLAN.LibVLC.Generated.ModuleDescription LibvlcVideoFilterListGet(global::VideoLAN.LibVLC.Generated.Instance p_instance)
public static global::VideoLAN.LibVLC.ModuleDescription LibvlcVideoFilterListGet(global::VideoLAN.LibVLC.Instance p_instance)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.__Instance;
var __ret = __Internal.LibvlcVideoFilterListGet(__arg0);
global::VideoLAN.LibVLC.Generated.ModuleDescription __result0;
global::VideoLAN.LibVLC.ModuleDescription __result0;
if (__ret == IntPtr.Zero) __result0 = null;
else if (global::VideoLAN.LibVLC.Generated.ModuleDescription.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.Generated.ModuleDescription) global::VideoLAN.LibVLC.Generated.ModuleDescription.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.Generated.ModuleDescription.__CreateInstance(__ret);
else if (global::VideoLAN.LibVLC.ModuleDescription.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.ModuleDescription) global::VideoLAN.LibVLC.ModuleDescription.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.ModuleDescription.__CreateInstance(__ret);
return __result0;
}
......