This file is indexed.

/usr/include/af/backend.h is in libarrayfire-dev 3.3.2+dfsg1-4.

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
145
146
147
148
149
/*******************************************************
 * Copyright (c) 2014, ArrayFire
 * All rights reserved.
 *
 * This file is distributed under 3-clause BSD license.
 * The complete license agreement can be obtained at:
 * http://arrayfire.com/licenses/BSD-3-Clause
 ********************************************************/

#pragma once
#include <af/defines.h>

#ifdef __cplusplus
extern "C" {
#endif

#if AF_API_VERSION >= 32
/**
   \param[in] bknd takes one of the values of enum \ref af_backend
   \returns \ref af_err error code

   \ingroup unified_func_setbackend
 */
AFAPI af_err af_set_backend(const af_backend bknd);
#endif

#if AF_API_VERSION >= 32
/**
   \param[out] num_backends Number of available backends
   \returns \ref af_err error code

   \ingroup unified_func_getbackendcount
 */
AFAPI af_err af_get_backend_count(unsigned* num_backends);
#endif

#if AF_API_VERSION >= 32
/**
   \param[out] backends is the OR sum of the backends available.
   \returns \ref af_err error code

   \ingroup unified_func_getavailbackends
 */
AFAPI af_err af_get_available_backends(int* backends);
#endif

#if AF_API_VERSION >= 32
/**
   \param[out] backend takes one of the values of enum \ref af_backend
   \param[in] in is the array who's backend is to be queried
   \returns \ref af_err error code

   \ingroup unified_func_getbackendid
 */
AFAPI af_err af_get_backend_id(af_backend *backend, const af_array in);
#endif

#if AF_API_VERSION >= 33
/**
   \param[out] backend takes one of the values of enum \ref af_backend
   from the backend that is currently set to active
   \returns \ref af_err error code

   \ingroup unified_func_getactivebackend
 */
AFAPI af_err af_get_active_backend(af_backend *backend);
#endif

#if AF_API_VERSION >= 33
/**
   \param[out] device contains the device on which \p in was created.
   \param[in] in is the array who's device is to be queried.
   \returns \ref af_err error code

   \ingroup unified_func_getdeviceid
 */
AFAPI af_err af_get_device_id(int *device, const af_array in);
#endif


#ifdef __cplusplus
}
#endif

#ifdef __cplusplus
namespace af
{
class array;

#if AF_API_VERSION >= 32
/**
   \param[in] bknd takes one of the values of enum \ref af_backend

   \ingroup unified_func_setbackend
 */
AFAPI void setBackend(const Backend bknd);
#endif

#if AF_API_VERSION >= 32
/**
   \returns Number of available backends

   \ingroup unified_func_getbackendcount
 */
AFAPI unsigned getBackendCount();
#endif

#if AF_API_VERSION >= 32
/**
   \returns OR sum of the backends available

   \ingroup unified_func_getavailbackends
 */
AFAPI int getAvailableBackends();
#endif

#if AF_API_VERSION >= 32
/**
   \param[in] in is the array who's backend is to be queried
   \returns \ref af_backend which is the backend on which the array is created

   \ingroup unified_func_getbackendid
 */
AFAPI af::Backend getBackendId(const array &in);
#endif

#if AF_API_VERSION >= 33
/**
   \returns \ref af_backend which is the backend is currently active

   \ingroup unified_func_getctivebackend
 */
AFAPI af::Backend getActiveBackend();
#endif

#if AF_API_VERSION >= 33
/**
   \param[in] in is the array who's device is to be queried.
   \returns The id of the device on which this array was created.

   \note Device ID can be the same for arrays belonging to different backends.

   \ingroup unified_func_getdeviceid
 */
AFAPI int getDeviceId(const array &in);
#endif

}
#endif