TagLib API Documentation
taglib.h
Go to the documentation of this file.
1/***************************************************************************
2 copyright : (C) 2002 - 2008 by Scott Wheeler
3 email : wheeler@kde.org
4 ***************************************************************************/
5
6/***************************************************************************
7 * This library is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU Lesser General Public License version *
9 * 2.1 as published by the Free Software Foundation. *
10 * *
11 * This library is distributed in the hope that it will be useful, but *
12 * WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14 * Lesser General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Lesser General Public *
17 * License along with this library; if not, write to the Free Software *
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
19 * 02110-1301 USA *
20 * *
21 * Alternatively, this file is available under the Mozilla Public *
22 * License Version 1.1. You may obtain a copy of the License at *
23 * http://www.mozilla.org/MPL/ *
24 ***************************************************************************/
25
26#ifndef TAGLIB_H
27#define TAGLIB_H
28
29#define TAGLIB_MAJOR_VERSION 2
30#define TAGLIB_MINOR_VERSION 0
31#define TAGLIB_PATCH_VERSION 2
32
33#if (defined(_MSC_VER) && _MSC_VER >= 1600)
34#define TAGLIB_CONSTRUCT_BITSET(x) static_cast<unsigned long long>(x)
35#else
36#define TAGLIB_CONSTRUCT_BITSET(x) static_cast<unsigned long>(x)
37#endif
38
39#define TAGLIB_DEPRECATED [[deprecated]]
40
41#ifndef _WIN32
42#include <sys/types.h>
43#endif
44
46
55namespace TagLib {
56
57 class String;
58
59 // Offset or length type for I/O streams.
60 // In Win32, always 64bit. Otherwise, equivalent to off_t.
61#ifdef _WIN32
62 using offset_t = long long;
63#elif !defined(__illumos__)
64 using offset_t = off_t;
65#endif
66
67} // namespace TagLib
68
217#endif
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
off_t offset_t
Definition: taglib.h:64