This file is indexed.

/usr/include/sweep/sweep_undo.h is in sweep-dev 0.9.3-8.

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
150
151
152
153
154
155
156
157
158
159
160
/*
 * Sweep, a sound wave editor.
 *
 * Copyright (C) 2000 Conrad Parker
 *
 * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef __SWEEP_UNDO_H__
#define __SWEEP_UNDO_H__

#include "sweep_types.h"

gint
update_edit_progress (gpointer data);

sw_op_instance *
sw_op_instance_new (sw_sample * sample, char * description,
		    sw_operation * operation);

void
schedule_operation (sw_sample * sample, char * description,
		    sw_operation * operation, void * do_data);

void
register_operation (sw_sample * s, sw_op_instance * inst);

void
trim_registered_ops (sw_sample * s, int length);

void
undo_current (sw_sample * s);

void
redo_current (sw_sample * s);

void
revert_op (sw_sample * sample, GList * op_gl);

void
set_active_op (sw_sample * s, sw_op_instance * inst);

void
cancel_active_op (sw_sample * s);

/* Stock undo functions */

#if 0
typedef struct _replace_data replace_data;

struct _replace_data {
  sw_sample * old_sample;
  sw_sample * new_sample;
};

replace_data *
replace_data_new (sw_sample * old_sample, sw_sample * new_sample);

void
undo_by_replace (replace_data * r);

void
redo_by_replace (replace_data * r);
#endif

typedef struct _sounddata_replace_data sounddata_replace_data;

struct _sounddata_replace_data {
  sw_sample * sample;
  sw_sounddata * old_sounddata;
  sw_sounddata * new_sounddata;
};

sounddata_replace_data *
sounddata_replace_data_new (sw_sample * sample,
			    sw_sounddata * old_sounddata,
			    sw_sounddata * new_sounddata);

void
sounddata_replace_data_destroy (sounddata_replace_data * sr);

void
undo_by_sounddata_replace (sw_sample * s, sounddata_replace_data * sr);

void
redo_by_sounddata_replace (sw_sample * s, sounddata_replace_data * sr);


typedef struct _paste_over_data paste_over_data;

struct _paste_over_data {
  sw_sample * sample;
  sw_edit_buffer * old_eb;
  sw_edit_buffer * new_eb;
};

paste_over_data *
paste_over_data_new (sw_edit_buffer * old_eb, sw_edit_buffer * new_eb);

void
paste_over_data_destroy (paste_over_data * p);

void
undo_by_paste_over (sw_sample * s, paste_over_data * p);

void
redo_by_paste_over (sw_sample * s, paste_over_data * p);


typedef struct _splice_data splice_data;

struct _splice_data {
  sw_sample * sample;
  sw_edit_buffer * eb;
  GList * sels; /* Previous sels of sounddata */
};

splice_data *
splice_data_new (sw_edit_buffer * eb, GList * sels);

void
splice_data_destroy (splice_data * s);

void
undo_by_splice_in (sw_sample * s, splice_data * sp);

void
redo_by_splice_out (sw_sample * s, splice_data * sp);

void
undo_by_splice_out (sw_sample * s, splice_data * sp);

void
redo_by_splice_in (sw_sample * s, splice_data * sp);

void
undo_by_splice_over (sw_sample * s, splice_data * sp);

void
redo_by_splice_over (sw_sample * s, splice_data * sp);

void
undo_by_crop_in (sw_sample * s, splice_data * sp);

void
redo_by_crop_out (sw_sample * s, splice_data * sp);

#endif /* __SWEEP_UNDO_H__ */