This file is indexed.

/usr/include/getdata_legacy.h is in libgetdata-dev 0.7.3-6+b2.

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
/* Copyright (C) 2002-2005 C. Barth Netterfield
 * Copyright (C) 2003-2005 Theodore Kisner
 * Copyright (C) 2005-2010 D. V. Wiebe
 *
 ***************************************************************************
 *
 * This file is part of the GetData project.
 *
 * GetData 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.
 *
 * GetData 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 GetData; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
#ifndef GETDATA_LEGACY_H
#define GETDATA_LEGACY_H

/* Sanity check */
#ifndef GETDATA_H
#error "Never use <getdata_legacy.h> directly; include <getdata.h> instead."
#endif

extern const char *GD_ERROR_CODES[GD_N_ERROR_CODES] gd_deprecated;

struct RawEntryType {
  const char* field;
  char type;
  int size;
  int samples_per_frame;
};

struct LincomEntryType {
  const char *field;
  int n_fields;
  const char *in_fields[GD_MAX_LINCOM];
  double m[GD_MAX_LINCOM], b[GD_MAX_LINCOM];
};

struct LinterpEntryType {
  const char *field, *raw_field, *linterp_file;
  int n_interp;
  double *x, *y;
};

struct MultiplyEntryType {
  const char *field;
  const char *in_fields[2];
};

struct MPlexEntryType {
  const char *field, *cnt_field, *data_field;
  int i;
  int max_i;
};

struct BitEntryType {
  const char *field, *raw_field;
  int bitnum, numbits;
};

struct PhaseEntryType {
  const char *field, *raw_field;
  int shift;
};

/* The old Format type */
struct FormatType {
  const char* FileDirName;
  int frame_offset;
  struct RawEntryType first_field;
  struct RawEntryType *rawEntries;
  int n_raw;
  struct LincomEntryType *lincomEntries;
  int n_lincom;
  struct LinterpEntryType *linterpEntries;
  int n_linterp;
  struct MultiplyEntryType *multiplyEntries;
  int n_multiply;
  struct MplexEntryType *mplexEntries;
  int n_mplex;
  struct BitEntryType *bitEntries;
  int n_bit;
  struct PhaseEntryType *phaseEntries;
  int n_phase;
};

#ifdef __cplusplus
extern "C" {
#endif

extern struct FormatType *GetFormat(const char *filedir, int *error_code)
  gd_nothrow gd_nonnull ((1,2)) gd_deprecated;

/* legacy API for get_error_string() */
extern char* GetDataErrorString(char* buffer, size_t buflen) gd_nothrow
  gd_nonnull ((1)) gd_deprecated;

/* legacy API for getdata() */
extern int GetData(const char *dirfilename, const char *field_code,
    int first_frame, int first_samp, int num_frames, int num_samp,
    char return_type, void *data_out, int *error_code) gd_nonnull ((1,2,9))
  gd_deprecated;

/* legacy API for get_nframes() */
extern int GetNFrames(const char *dirfilename, int *error_code,
    const void *unused) gd_nonnull ((1,2)) gd_deprecated;

/* legacy API for get_spf() */
extern int GetSamplesPerFrame(const char *dirfilename, const char *field_code,
    int *error_code) gd_nothrow gd_nonnull ((1,2,3)) gd_deprecated;

/* legacy API for putdata() */
extern int PutData(const char *filename_in, const char *field_code,
    int first_frame, int first_samp, int num_frames, int num_samp,
    char data_type, const void *data_in, int *error_code)
gd_nonnull ((1,2,9)) gd_deprecated;

#ifdef __cplusplus
}
#endif

#endif