private void OnHavePlaylistEntry(object o, TotemPlParser.EntryArgs args) { stream_uris.Add(new SafeUri(args.Uri)); }
public static string GetHumanReadableName(TotemPlParser.MediaType type) { IntPtr raw_ret = totem_cd_get_human_readable_name((int) type); string ret = GLib.Marshaller.Utf8PtrToString (raw_ret); return ret; }
public unsafe bool Write(Gtk.TreeModel model, TotemPlParser.IterFunc func, string output, TotemPlParser.Type type) { TotemPlParserSharp.IterFuncWrapper func_wrapper = new TotemPlParserSharp.IterFuncWrapper (func); IntPtr output_as_native = GLib.Marshaller.StringToPtrGStrdup (output); IntPtr error = IntPtr.Zero; bool raw_ret = totem_pl_parser_write(Handle, model == null ? IntPtr.Zero : model.Handle, func_wrapper.NativeDelegate, output_as_native, (int) type, IntPtr.Zero, out error); bool ret = raw_ret; GLib.Marshaller.Free (output_as_native); if (error != IntPtr.Zero) throw new GLib.GException (error); return ret; }
public IterFuncWrapper(TotemPlParser.IterFunc managed) { this.managed = managed; if (managed != null) NativeDelegate = new IterFuncNative (NativeCallback); }