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 static unsafe TotemPlParser.MediaType DetectTypeWithUrl(string device, string url) { IntPtr device_as_native = GLib.Marshaller.StringToPtrGStrdup(device); IntPtr error = IntPtr.Zero; int raw_ret = totem_cd_detect_type_with_url(device_as_native, GLib.Marshaller.StringToPtrGStrdup(url), out error); TotemPlParser.MediaType ret = (TotemPlParser.MediaType)raw_ret; GLib.Marshaller.Free(device_as_native); if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }