This file is indexed.

/usr/include/gxw/GxIREdit.h is in libgxw-dev 0.35.2-2.

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
/*
 * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert
 *
 * 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 of the License, 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 this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef __GX_IR_EDIT_H__
#define __GX_IR_EDIT_H__

#include <gtk/gtk.h>
#include "gainpoints.h"

G_BEGIN_DECLS

#define GX_TYPE_IR_EDIT          (gx_ir_edit_get_type())
#define GX_IR_EDIT(obj)          (G_TYPE_CHECK_INSTANCE_CAST ((obj), GX_TYPE_IR_EDIT, GxIREdit))
#define GX_IR_EDIT_CLASS(klass)  (G_TYPE_CHECK_CLASS_CAST ((klass),  GX_TYPE_IR_EDIT, GxIREditClass))
#define GX_IS_IR_EDIT(obj)       (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GX_TYPE_IR_EDIT))
#define GX_IS_IR_EDIT_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((klass),  GX_TYPE_IR_EDIT))
#define GX_IR_EDIT_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GX_TYPE_IR_EDIT, GxIREditClass))

typedef struct _GxIREdit GxIREdit;
typedef struct _GxIREditClass GxIREditClass;

typedef void (*cairo_paint_function)(GxIREdit*,cairo_t*,GdkEventExpose*);

struct _GxIREdit {
	GtkDrawingArea parent;
	// wave file
	float *odata;
	gint odata_len;
	gint odata_chan;
	gint fs;
	// display configuration
	gint width;
	gint height;
	gint text_width;
	gint text_height;
	gdouble label_width;
	gchar *no_data_text;
	// drawing area
	gint x_off;
	gint y_off;
	gint graph_x;
	gint graph_y;
	gdouble scale_height;
	// mouse interface state variables
	gint button;
	gint mode;
	gint mode_arg;
	gint mode_arg2;
	GdkCursor *cursor[6]; //FIXME
	GdkPixmap *surface;
	gint scale_num;
	// coordinate axes
	gint y_border_top;
	gint y_border_bottom;
	gint x_border;
	gint label_sep;
	gdouble dot_diameter;
	gdouble segment_distance;
	gdouble limit;
	gdouble min_y;
	gdouble max_y;
	gint y_lines;
	const gchar *fmt_y;
	gchar *fmt;
	gdouble tick;
	gdouble scale_a[2];
	gdouble min_scale;
	gdouble max_scale_fact;
	gdouble scale;
	// intermediate data representation
	float *data; // odata_len samples
	float *bdata;
	gint bdata_len;
	cairo_paint_function locked;
	gboolean buffered;
	// output parameters
	gint cutoff_low;
	gint cutoff_high;
	gint offset;
	gain_points *gains;
	gint gains_len;
	// presentation parameters
	gint chan;
	gint current_offset;
	gboolean linear;
	gint scroll_center;
};

struct _GxIREditClass {
	GtkDrawingAreaClass parent_class;
};

GType gx_ir_edit_get_type(void);

void gx_ir_edit_set_ir_data(GxIREdit *ir_edit, float *data, int chan, int len, int samplerate);
void gx_ir_edit_set_state(
	GxIREdit *ir_edit, float *data, int chan, int data_len, int samplerate,
	int cutoff_low, int cutoff_high, int offset, const gain_points *gains, int gains_len);

void gx_ir_edit_home(GxIREdit *ir_edit);
void gx_ir_edit_jump_zoom_mark(GxIREdit *ir_edit);
void gx_ir_edit_set_channel(GxIREdit *ir_edit, int chan);
void gx_ir_edit_incr_scale(GxIREdit *ir_edit, gdouble f);
void gx_ir_edit_decr_scale(GxIREdit *ir_edit, gdouble f);
void gx_ir_edit_set_log(GxIREdit *ir_edit, gboolean m);

gint gx_ir_edit_get_delay(GxIREdit *ir_edit);
void gx_ir_edit_set_delay(GxIREdit *ir_edit, gint delay);
gint gx_ir_edit_get_offset(GxIREdit *ir_edit);
void gx_ir_edit_set_offset(GxIREdit *ir_edit, gint offset);
gint gx_ir_edit_get_length(GxIREdit *ir_edit);
void gx_ir_edit_set_length(GxIREdit *ir_edit, gint length);
void gx_ir_edit_get_gain(GxIREdit *ir_edit, gain_points **gains, gint *len);
void gx_ir_edit_set_gain(GxIREdit *ir_edit, const gain_points *gains, gint len);

G_END_DECLS

#endif /* __GX_IR_EDIT_H__ */