public static void LogDefault(Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, Gst.DebugMessage message) { LogDefault(category, level, file, function, line, null, message, IntPtr.Zero); }
public static void LogDefault(Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, GLib.Object _object, Gst.DebugMessage message, IntPtr user_data) { IntPtr native_category = GLib.Marshaller.StructureToPtrAlloc(category); IntPtr native_file = GLib.Marshaller.StringToPtrGStrdup(file); IntPtr native_function = GLib.Marshaller.StringToPtrGStrdup(function); gst_debug_log_default(native_category, (int)level, native_file, native_function, line, _object == null ? IntPtr.Zero : _object.Handle, message == null ? IntPtr.Zero : message.Handle, user_data); Marshal.FreeHGlobal(native_category); GLib.Marshaller.Free(native_file); GLib.Marshaller.Free(native_function); }
public static string LogGetLine(Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, Gst.DebugMessage message) { return(LogGetLine(category, level, file, function, line, null, message)); }
void InvokeNative(Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, GLib.Object _object, Gst.DebugMessage message) { IntPtr native_category = GLib.Marshaller.StructureToPtrAlloc(category); IntPtr native_file = GLib.Marshaller.StringToPtrGStrdup(file); IntPtr native_function = GLib.Marshaller.StringToPtrGStrdup(function); native_cb(native_category, (int)level, native_file, native_function, line, _object == null ? IntPtr.Zero : _object.Handle, message == null ? IntPtr.Zero : message.Handle, __data); Marshal.FreeHGlobal(native_category); GLib.Marshaller.Free(native_file); GLib.Marshaller.Free(native_function); }
public static string LogGetLine(Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, GLib.Object _object, Gst.DebugMessage message) { IntPtr native_category = GLib.Marshaller.StructureToPtrAlloc(category); IntPtr native_file = GLib.Marshaller.StringToPtrGStrdup(file); IntPtr native_function = GLib.Marshaller.StringToPtrGStrdup(function); IntPtr raw_ret = gst_debug_log_get_line(native_category, (int)level, native_file, native_function, line, _object == null ? IntPtr.Zero : _object.Handle, message == null ? IntPtr.Zero : message.Handle); string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); Marshal.FreeHGlobal(native_category); GLib.Marshaller.Free(native_file); GLib.Marshaller.Free(native_function); return(ret); }