/usr/share/vala-0.22/vapi/taglib_c.vapi is in valac-0.22-vapi 0.22.1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | /* taglib_c.vapi
*
* Copyright (C) 2009 Andreas Brauchli
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Author:
* Andreas Brauchli <a.brauchli@elementarea.net>
*/
[CCode (cprefix = "TagLib_", lower_case_cprefix = "taglib_", cheader_filename = "tag_c.h")]
namespace TagLib
{
public static void set_strings_unicode (bool unicode);
/* TagLib can keep track of strings that are created when outputting tag values
* and clear them using taglib_tag_clear_strings(). This is enabled by default.
* However if you wish to do more fine grained management of strings, you can do
* so by setting a management to FALSE.
*/
public static void set_string_management_enabled (bool management);
[CCode (free_function = "taglib_file_free")]
[Compact]
public class File
{
public File (string filename);
public File.type (string filename, FileType type);
public bool is_valid ();
public unowned Tag tag {
[CCode (cname = "taglib_file_tag")]
get;
}
public unowned AudioProperties audioproperties {
[CCode (cname = "taglib_file_audioproperties")]
get;
}
public bool save ();
}
[CCode (free_function = "")]
[Compact]
public class Tag
{
public unowned string title {
[CCode (cname = "taglib_tag_title")]
get;
set;
}
public unowned string artist {
[CCode (cname = "taglib_tag_artist")]
get;
set;
}
public unowned string album {
[CCode (cname = "taglib_tag_album")]
get;
set;
}
public unowned string comment {
[CCode (cname = "taglib_tag_comment")]
get;
set;
}
public unowned string genre {
[CCode (cname = "taglib_tag_genre")]
get;
set;
}
public uint year {
[CCode (cname = "taglib_tag_year")]
get;
set;
}
public uint track {
[CCode (cname = "taglib_tag_track")]
get;
set;
}
public static void free_strings ();
}
[CCode (free_function = "", cname = "TagLib_AudioProperties")]
[Compact]
[Immutable]
public class AudioProperties
{
public int length {
[CCode (cname = "taglib_audioproperties_length")]
get;
}
public int bitrate {
[CCode (cname = "taglib_audioproperties_bitrate")]
get;
}
public int samplerate {
[CCode (cname = "taglib_audioproperties_samplerate")]
get;
}
public int channels {
[CCode (cname = "taglib_audioproperties_channels")]
get;
}
}
[CCode (cname = "TagLib_File_Type", cprefix = "TagLib_File_", has_type_id = false)]
public enum FileType
{
MPEG,
OggVorbis,
FLAC,
MPC,
OggFlac,
WavPack,
Speex,
TrueAudio
}
namespace ID3v2 {
[CCode (cname = "taglib_id3v2_set_default_text_encoding")]
public void set_default_text_encoding (Encoding encoding);
[CCode (cname = "TagLib_ID3v2_Encoding", cprefix = "TagLib_ID3v2_", has_type_id = false)]
public enum Encoding {
Latin1,
UTF16,
UTF16BE,
UTF8
}
}
}
|