This file is indexed.

/usr/include/kodi/kodi_audiodec_types.h is in kodi-addons-dev 2:17.1+dfsg1-3.

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
/*
 *      Copyright (C) 2005-2013 Team XBMC
 *      http://xbmc.org
 *
 *  This Program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2, or (at your option)
 *  any later version.
 *
 *  This Program 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 General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with XBMC; see the file COPYING.  If not, see
 *  <http://www.gnu.org/licenses/>.
 *
 */

#pragma once

#include <stdint.h>
#ifdef BUILD_KODI_ADDON
#include "AEChannelData.h"
#else
#include "cores/AudioEngine/Utils/AEChannelData.h"
#endif

extern "C"
{
  struct AUDIODEC_INFO
  {
    int dummy;
  };

  struct AUDIODEC_PROPS
  {
    int dummy;
  };

  struct AudioDecoder
  {
    //! \brief Initialize a decoder
    //! \param file The file to read
    //! \param filecache The file cache size
    //! \param channels Number of channels in output stream
    //! \param samplerate Samplerate of output stream
    //! \param bitspersample Bits per sample in output stream
    //! \param totaltime Total time for stream
    //! \param bitrate Average bitrate of input stream
    //! \param format Data format for output stream
    //! \param info Channel mapping for output stream
    //! \return Context of output stream
    //! \sa ICodec::Init
    void* (__cdecl* Init) (const char* file, unsigned int filecache,
                           int* channels, int* samplerate,
                           int* bitspersample, int64_t* totaltime,
                           int* bitrate, AEDataFormat* format,
                           const AEChannel** info);

    //! \brief Produce some noise
    //! \param context Context of output stream
    //! \param buffer Output buffer
    //! \param size Size of output buffer
    //! \param actualsize Actual number of bytes written to output buffer
    //! \return 0 on success, -1 on end of stream, 1 on failure
    //! \sa ICodec::ReadPCM
    int  (__cdecl* ReadPCM) (void* context, uint8_t* buffer, int size, int* actualsize);


    //! \brief Seek in output stream
    //! \param context Context of output stream
    //! \param time Time position to seek to in milliseconds
    //! \return Time position seek ended up on
    //! \sa ICodec::Seek
    int64_t  (__cdecl* Seek) (void* context, int64_t time);

    //! \brief Read tag of a file
    //! \param file File to read tag for
    //! \param title Title of file
    //! \param artist Artist of file
    //! \param length Length of file
    //! \return True on success, false on failure
    //! \sa IMusicInfoTagLoader::ReadTag
    bool (__cdecl* ReadTag)(const char* file, char* title,
                            char* artist, int* length);

    //! \brief Get number of tracks in a file
    //! \param file File to read tag for
    //! \return Number of tracks in file
    //! \sa CMusicFileDirectory
    int  (__cdecl* TrackCount) (const char* file);

    //! \brief Close down an output stream
    //! \param context Context of stream
    //! \return True on success, false on failure
    //! \sa ICodec::DeInit
    bool (__cdecl* DeInit)(void* context);
  };
}