Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* taglib-vala.vapi generated by valac 0.18.1, do not modify. */
- namespace Taglib {
- namespace Ape {
- [CCode (cheader_filename = "taglib-vala.h")]
- public class File : Taglib.NonContainer.File {
- public File (string filename);
- protected override void read_end (long end);
- protected override void read_start (long start);
- protected override void save ();
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class Footer {
- public const string identifier;
- public const uint size;
- public Footer (Taglib.ByteVector data);
- public Taglib.ByteVector render_footer ();
- public Taglib.ByteVector render_header ();
- public uint complete_tag_size { get; }
- public Taglib.Ape.FooterFlags flags { get; private set; }
- public uint item_count { get; private set; }
- public uint tag_size { get; private set; }
- public uint version { get; private set; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class Item {
- public Item (string k, string[] vals);
- public Item.from_data (Taglib.ByteVector d, int offset = 0);
- protected void parse (Taglib.ByteVector d, int offset);
- public Taglib.ByteVector render ();
- public string to_string ();
- public string[] to_string_array ();
- public bool is_empty { get; }
- public Taglib.Ape.ItemType item_type { get; private set; }
- public string key { get; set; }
- public bool read_only { get; set; }
- public int size { get; private set; }
- public Taglib.ByteVector value { get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class StreamHeader : GLib.Object, Taglib.ICodec, Taglib.IAudioCodec, Taglib.ILosslessAudioCodec {
- public const string identifier;
- public const uint size;
- public StreamHeader (Taglib.ByteVector data, long length);
- public double version { get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class Tag : Taglib.Tag {
- public Tag (Taglib.File file, long position);
- public override void clear ();
- public new Taglib.Ape.Item @get (string key);
- public new void @set (Taglib.Ape.Item i);
- public override Taglib.TagTypes tag_types { get; }
- public override string title { owned get; set; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public enum CompressionLevel {
- None,
- Fast,
- Normal,
- High,
- ExtraHigh,
- Insane
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- [Flags]
- public enum FooterFlags {
- FooterAbsent,
- IsHeader,
- HeaderPresent
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public enum ItemType {
- Text,
- Binary,
- Locator
- }
- }
- namespace Id3v2 {
- namespace FrameFactory {
- [CCode (cheader_filename = "taglib-vala.h")]
- public static Taglib.Id3v2.Frame create_frame (Taglib.ByteVector data, ref int offset, uint8 version, bool already_unsynched);
- }
- namespace SynchData {
- [CCode (cheader_filename = "taglib-vala.h")]
- public static Taglib.ByteVector from_uint (uint value);
- [CCode (cheader_filename = "taglib-vala.h")]
- public static void resynch_bytevector (Taglib.ByteVector data);
- [CCode (cheader_filename = "taglib-vala.h")]
- public static uint to_uint (Taglib.ByteVector data);
- [CCode (cheader_filename = "taglib-vala.h")]
- public static void unsynch_bytevector (Taglib.ByteVector data);
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class AttachedPictureFrame : Taglib.Id3v2.Frame, Taglib.IPicture {
- public AttachedPictureFrame (Taglib.ByteVector data, int offset, Taglib.Id3v2.FrameHeader header, uint8 version);
- protected override void parse_fields (Taglib.ByteVector bv, uint8 version);
- protected void parse_raw_data ();
- protected override Taglib.ByteVector render_fields (uint8 version);
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class ExtendedHeader {
- public ExtendedHeader (Taglib.ByteVector data, uint8 version);
- public uint size { get; private set; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class Footer {
- public uint8 revision_number;
- public uint tag_size;
- public const string identifier;
- public const uint size;
- public Footer (Taglib.ByteVector data);
- public Taglib.ByteVector render ();
- public uint complete_tag_size { get; }
- public Taglib.Id3v2.HeaderFlags flags { get; set; }
- public uint8 major_version { get; set; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public abstract class Frame {
- protected Frame (Taglib.ByteVector data, uint8 version);
- protected static Taglib.StringType correct_encoding (Taglib.StringType type, uint8 version);
- protected Taglib.ByteVector field_data (Taglib.ByteVector frameData, int offset, uint8 version);
- protected Frame.header (Taglib.Id3v2.FrameHeader h);
- protected abstract void parse_fields (Taglib.ByteVector data, uint8 version);
- protected abstract Taglib.ByteVector render_fields (uint8 version);
- protected void set_data (Taglib.ByteVector data, int offset, uint8 version, bool readHeader);
- public Taglib.Id3v2.FrameFlags flags { get; }
- public Taglib.ByteVector frame_id { get; }
- public uint size { get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class FrameHeader {
- public FrameHeader (Taglib.ByteVector data, uint8 version);
- public Taglib.ByteVector render (uint8 version);
- public static uint size (uint8 version);
- public Taglib.Id3v2.FrameFlags flags { get; set; }
- public Taglib.ByteVector frame_id { get; }
- public uint frame_size { get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class FrameType {
- public static Taglib.ByteVector APIC;
- public static Taglib.ByteVector COMM;
- public static Taglib.ByteVector EQUA;
- public static Taglib.ByteVector GEOB;
- public static Taglib.ByteVector MCDI;
- public static Taglib.ByteVector PCNT;
- public static Taglib.ByteVector POPM;
- public static Taglib.ByteVector PRIV;
- public static Taglib.ByteVector RVA2;
- public static Taglib.ByteVector RVAD;
- public static Taglib.ByteVector SYLT;
- public static Taglib.ByteVector TALB;
- public static Taglib.ByteVector TBPM;
- public static Taglib.ByteVector TCMP;
- public static Taglib.ByteVector TCOM;
- public static Taglib.ByteVector TCON;
- public static Taglib.ByteVector TCOP;
- public static Taglib.ByteVector TDAT;
- public static Taglib.ByteVector TDRC;
- public static Taglib.ByteVector TEXT;
- public static Taglib.ByteVector TIME;
- public static Taglib.ByteVector TIT1;
- public static Taglib.ByteVector TIT2;
- public static Taglib.ByteVector TOLY;
- public static Taglib.ByteVector TOPE;
- public static Taglib.ByteVector TPE1;
- public static Taglib.ByteVector TPE2;
- public static Taglib.ByteVector TPE3;
- public static Taglib.ByteVector TPE4;
- public static Taglib.ByteVector TPOS;
- public static Taglib.ByteVector TRCK;
- public static Taglib.ByteVector TRDA;
- public static Taglib.ByteVector TSIZ;
- public static Taglib.ByteVector TSO2;
- public static Taglib.ByteVector TSOA;
- public static Taglib.ByteVector TSOC;
- public static Taglib.ByteVector TSOP;
- public static Taglib.ByteVector TSOT;
- public static Taglib.ByteVector TXXX;
- public static Taglib.ByteVector TYER;
- public static Taglib.ByteVector UFID;
- public static Taglib.ByteVector USER;
- public static Taglib.ByteVector USLT;
- public FrameType ();
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class Header {
- public uint8 revision_number;
- public uint tag_size;
- public const string identifier;
- public const uint size;
- public Header (Taglib.ByteVector data);
- public Taglib.ByteVector render ();
- public uint complete_tag_size { get; }
- public Taglib.Id3v2.HeaderFlags flags { get; set; }
- public uint8 major_version { get; set; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class Tag : Taglib.Tag {
- public const uint8 default_version;
- public Tag (Taglib.File file, long position);
- public override void clear ();
- public static Taglib.StringType default_encoding { get; set; }
- public static bool force_default_encoding { get; set; }
- public override Taglib.TagTypes tag_types { get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class TextInformationFrame : Taglib.Id3v2.Frame {
- public TextInformationFrame (Taglib.ByteVector data, int offset, Taglib.Id3v2.FrameHeader header, uint8 version);
- protected override void parse_fields (Taglib.ByteVector data, uint8 version);
- protected void parse_raw_data ();
- protected override Taglib.ByteVector render_fields (uint8 version);
- public virtual string[] text { owned get; }
- public Taglib.StringType text_encoding { get; set; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class UnknownFrame : Taglib.Id3v2.Frame {
- public UnknownFrame (Taglib.ByteVector data, int offset, Taglib.Id3v2.FrameHeader header, uint8 version);
- protected override void parse_fields (Taglib.ByteVector data, uint8 version);
- protected override Taglib.ByteVector render_fields (uint8 version);
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- [Flags]
- public enum FrameFlags {
- None,
- TagAlterPreservation,
- FileAlterPreservation,
- ReadOnly,
- GroupingIdentity,
- Compression,
- Encryption,
- Unsynchronisation,
- DataLengthIndicator
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- [Flags]
- public enum HeaderFlags {
- None,
- Unsynchronisation,
- ExtendedHeader,
- ExperimentalIndicator,
- FooterPresent
- }
- }
- namespace Mpeg {
- [CCode (cheader_filename = "taglib-vala.h")]
- public class AudioFile : Taglib.NonContainer.File {
- public AudioFile (string filename);
- public override void read_end (long end);
- public override void read_start (long start);
- public override void save ();
- public override Taglib.Tag tag { owned get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class File : Taglib.File {
- public File (string filename);
- public override void save ();
- public override Taglib.Tag tag { owned get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public enum Marker {
- Corrupt,
- Zero,
- SystemSyncPacket,
- VideoSyncPacket,
- SystemPacket,
- PaddingPacket,
- AudioPacket,
- VideoPacket,
- EndOfStream
- }
- }
- namespace NonContainer {
- [CCode (cheader_filename = "taglib-vala.h")]
- public abstract class File : Taglib.File {
- public File (string filename);
- protected abstract void read_end (long end);
- protected abstract void read_start (long start);
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class StartTag : Taglib.CombinedTag {
- public StartTag (Taglib.File f);
- public long read ();
- public void remove_tags (Taglib.TagTypes types);
- }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class ByteVector : Gee.ArrayList<uint8> {
- public ByteVector (string init = "");
- public void add_range (uint8[] data);
- public void add_string (string str);
- public void add_vector (Taglib.ByteVector bv);
- public bool equal (Taglib.ByteVector bv);
- public int find (Taglib.ByteVector pattern, int offset = 0, int byteAlign = 1);
- public static Taglib.ByteVector from_string (string text, Taglib.StringType type, int length = int.MAX);
- public static Taglib.ByteVector from_uint (uint value, bool dir = true);
- public static Taglib.ByteVector from_ulong (ulong value, bool dir = true);
- public static Taglib.ByteVector from_ushort (ushort value, bool dir = true);
- public Taglib.ByteVector mid (int start, int length);
- public ByteVector.sized (int length, uint8 nb = 0);
- public bool start_with (Taglib.ByteVector bv);
- public static Taglib.ByteVector text_delimiter (Taglib.StringType type);
- public string to_string (Taglib.StringType type = StringType.UTF8, int offset = 0, int count = -1);
- public string[] to_strings (Taglib.StringType type, int offset, int count = int.MAX);
- public uint to_uint (bool dir = true);
- public ushort to_ushort (bool dir = true);
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class CombinedTag : Taglib.Tag {
- public CombinedTag (Taglib.Tag tag, ...);
- protected void add_tag (Taglib.Tag tag);
- public override void clear ();
- protected void clear_tags ();
- public CombinedTag.empty ();
- protected void insert_tag (int index, Taglib.Tag tag);
- protected void remove_tag (Taglib.Tag tag);
- public override string album { owned get; set; }
- public override string[] album_artists { owned get; set; }
- public override string[] album_artists_sort { owned get; set; }
- public override string album_sort { owned get; set; }
- public override string amazon_id { owned get; set; }
- public override uint beats_per_minute { get; set; }
- public override string comment { owned get; set; }
- public override string[] composers { owned get; set; }
- public override string[] composers_sort { owned get; set; }
- public override string conductor { owned get; set; }
- public override string copyright { owned get; set; }
- public override uint disc { get; set; }
- public override uint disc_count { get; set; }
- public override string[] genres { owned get; set; }
- public override string grouping { owned get; set; }
- public override bool is_empty { get; }
- public override string lyrics { owned get; set; }
- public override string music_brainz_artist_id { owned get; set; }
- public override string music_brainz_disc_id { owned get; set; }
- public override string music_brainz_release_artist_id { owned get; set; }
- public override string music_brainz_release_country { owned get; set; }
- public override string music_brainz_release_id { owned get; set; }
- public override string music_brainz_release_status { owned get; set; }
- public override string music_brainz_release_type { owned get; set; }
- public override string music_brainz_track_id { owned get; set; }
- public override string music_ip_id { owned get; set; }
- public override string[] performers { owned get; set; }
- public override string[] performers_sort { owned get; set; }
- public override Taglib.Picture[] pictures { owned get; set; }
- public override Taglib.TagTypes tag_types { get; }
- public virtual Taglib.Tag[] tags { owned get; set; }
- public override string title { owned get; set; }
- public override string title_sort { owned get; set; }
- public override uint track { get; set; }
- public override uint track_count { get; set; }
- public override uint year { get; set; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public abstract class File {
- protected File (string filename);
- public static Taglib.File create (string filename);
- public Taglib.ByteVector read_block (int size);
- public abstract void save ();
- public void seek (long offset);
- public long tell ();
- public void write_block (Taglib.ByteVector data);
- public string mime_type { get; protected set; }
- public string name { get; protected set; }
- public long position { get; set; }
- public long size { get; }
- public virtual Taglib.Tag tag { owned get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class Picture : Taglib.IPicture {
- public Picture (string path);
- public Picture.from_data (Taglib.ByteVector bv);
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public class Properties : GLib.Object, Taglib.ICodec, Taglib.IAudioCodec, Taglib.IVideoCodec, Taglib.IPhotoCodec {
- public Properties (GLib.TimeSpan span, Gee.ArrayList<Taglib.ICodec> cds);
- public int bits_per_sample { get; }
- public Taglib.ICodec[] codecs { get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public abstract class Tag {
- public Tag ();
- public abstract void clear ();
- public virtual string album { owned get; set; }
- public virtual string[] album_artists { owned get; set; }
- public virtual string[] album_artists_sort { owned get; set; }
- public virtual string album_sort { owned get; set; }
- public virtual string amazon_id { owned get; set; }
- public virtual uint beats_per_minute { get; set; }
- public virtual string comment { owned get; set; }
- public virtual string[] composers { owned get; set; }
- public virtual string[] composers_sort { owned get; set; }
- public virtual string conductor { owned get; set; }
- public virtual string copyright { owned get; set; }
- public virtual uint disc { get; set; }
- public virtual uint disc_count { get; set; }
- public string first_album_artists { owned get; }
- public string first_album_artists_sort { owned get; }
- public string first_composer { owned get; }
- public string first_composer_sort { owned get; }
- public string first_genre { owned get; }
- public string first_performer { owned get; }
- public string first_performer_sort { owned get; }
- public virtual string[] genres { owned get; set; }
- public virtual string grouping { owned get; set; }
- public virtual bool is_empty { get; }
- public string joined_album_artists { owned get; }
- public string joined_album_artists_sort { owned get; }
- public string joined_composers { owned get; }
- public string joined_genres { owned get; }
- public string joined_performers { owned get; }
- public string joined_performers_sort { owned get; }
- public virtual string lyrics { owned get; set; }
- public virtual string music_brainz_artist_id { owned get; set; }
- public virtual string music_brainz_disc_id { owned get; set; }
- public virtual string music_brainz_release_artist_id { owned get; set; }
- public virtual string music_brainz_release_country { owned get; set; }
- public virtual string music_brainz_release_id { owned get; set; }
- public virtual string music_brainz_release_status { owned get; set; }
- public virtual string music_brainz_release_type { owned get; set; }
- public virtual string music_brainz_track_id { owned get; set; }
- public virtual string music_ip_id { owned get; set; }
- public virtual string[] performers { owned get; set; }
- public virtual string[] performers_sort { owned get; set; }
- public virtual Taglib.Picture[] pictures { owned get; set; }
- public abstract Taglib.TagTypes tag_types { get; }
- public virtual string title { owned get; set; }
- public virtual string title_sort { owned get; set; }
- public virtual uint track { get; set; }
- public virtual uint track_count { get; set; }
- public virtual uint year { get; set; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public interface IAudioCodec : Taglib.ICodec {
- public abstract int audio_bitrate { get; }
- public abstract int audio_channels { get; }
- public abstract int audio_sample_rate { get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public interface ICodec : GLib.Object {
- public abstract string description { owned get; }
- public abstract GLib.TimeSpan duration { get; }
- public abstract Taglib.MediaTypes media_types { get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public interface ILosslessAudioCodec : Taglib.ICodec {
- public abstract int bits_per_sample { get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public interface IPhotoCodec : Taglib.ICodec {
- public abstract int photo_height { get; }
- public abstract int photo_quality { get; }
- public abstract int photo_width { get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public interface IPicture {
- public abstract Taglib.ByteVector data { get; set; }
- public abstract string description { get; set; }
- public abstract string mime_type { get; set; }
- public abstract Taglib.PictureType picture_type { get; set; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public interface IVideoCodec : Taglib.ICodec {
- public abstract int video_height { get; }
- public abstract int video_width { get; }
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- [Flags]
- public enum MediaTypes {
- None,
- Audio,
- Video,
- Photo,
- Text
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public enum PictureType {
- Other,
- FileIcon,
- OtherFileIcon,
- FrontCover,
- BackCover,
- LeafletPage,
- Media,
- LeadArtist,
- Artist,
- Conductor,
- Band,
- Composer,
- Lyricist,
- RecordingLocation,
- DuringRecording,
- DuringPerformance,
- MovieScreenCapture,
- ColoredFish,
- Illustration,
- BandLogo,
- PublisherLogo
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public enum StringType {
- Latin1,
- UTF16,
- UTF16BE,
- UTF8,
- UTF16LE
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- [Flags]
- public enum TagTypes {
- None,
- Xiph,
- Id3v1,
- Id3v2,
- Ape,
- Apple,
- Asf,
- RiffInfo,
- MovieId,
- DivX,
- FlacMetadata,
- TiffIFD,
- XMP,
- JpegComment,
- GifComment,
- Png,
- AllTags
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public errordomain ArgumentError {
- Null,
- Length,
- OutOfRange
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public errordomain Error {
- Null,
- NotImplemented
- }
- [CCode (cheader_filename = "taglib-vala.h")]
- public errordomain FileError {
- Null,
- Length,
- Corrupt
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement