示例#1
0
        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);
        }
        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);
        }
示例#3
0
        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);
        }
示例#4
0
 static void ReadNative(IntPtr native, ref Gst.DebugCategory target)
 {
     target = New(native);
 }
示例#5
0
 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);
 }
示例#6
0
 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));
 }