This file is indexed.

/usr/include/kodi/xbmc_audioenc_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
102
103
104
105
106
107
108
109
#pragma once

/*
 *      Copyright (C) 2005-2015 Team Kodi
 *      http://kodi.tv
 *
 *  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 Kodi; see the file COPYING.  If not, see
 *  <http://www.gnu.org/licenses/>.
 *
 */

#ifdef TARGET_WINDOWS
#include <windows.h>
#else
#ifndef __cdecl
#define __cdecl
#endif
#ifndef __declspec
#define __declspec(X)
#endif
#endif

#include <stdint.h>

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

  struct AUDIOENC_PROPS
  {
    int dummy;
  };

  typedef int (*audioenc_write_callback)(void* opaque, uint8_t* data, int len);
  typedef int64_t (*audioenc_seek_callback)(void* opaque, int64_t pos, int whence);

  typedef struct
  {
    void*                   opaque;
    audioenc_write_callback write;
    audioenc_seek_callback  seek;
  } audioenc_callbacks;

  struct AudioEncoder
  {
    /*! \brief Create encoder context
     \param callbacks Pointer to audioenc_callbacks structure.
     \return opaque pointer to encoder context, to be passed to other methods.
     \sa IEncoder::Init
     */
    void (*(__cdecl *Create) (audioenc_callbacks* callbacks));

    /*! \brief Start encoder
     \param context Encoder context from Create.
     \param iInChannels Number of channels
     \param iInRate Sample rate of input data
     \param iInBits Bits per sample in input data
     \param title The title of the song
     \param artist The artist of the song
     \param albumartist The albumartist of the song
     \param year The year of the song
     \param track The track number of the song
     \param genre The genre of the song
     \param comment A comment to attach to the song
     \param iTrackLength Total track length in seconds
     \sa IEncoder::Init
     */
    bool (__cdecl* Start) (void* context, int iInChannels, int iInRate, int iInBits,
                           const char* title, const char* artist,
                           const char* albumartist, const char* album,
                           const char* year, const char* track,
                           const char* genre, const char* comment,
                           int iTrackLength);

    /*! \brief Encode a chunk of audio
     \param context Encoder context from Create.
     \param nNumBytesRead Number of bytes in input buffer
     \param pbtStream the input buffer
     \return Number of bytes consumed
     \sa IEncoder::Encode
     */
    int  (__cdecl* Encode) (void* context, int nNumBytesRead, uint8_t* pbtStream);

    /*! \brief Finalize encoding
     \param context Encoder context from Create.
     \return True on success, false on failure.
     */
    bool (__cdecl* Finish) (void* context);

    /*! \brief Free encoder context
     \param context Encoder context to free.
     */
    void (__cdecl* Free)(void* context);
  };
}