This file is indexed.

/usr/include/libinstpatch-1.0/libinstpatch/IpatchSampleData.h is in libinstpatch-dev 1.0.0-6.

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
/*
 * libInstPatch
 * Copyright (C) 1999-2010 Joshua "Element" Green <jgreen@users.sourceforge.net>
 *
 * This program 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; version 2.1
 * of the License only.
 *
 * This library 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 this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA or on the web at http://www.gnu.org.
 */
/**
 * SECTION: IpatchSampleData
 * @short_description: Sample data proxy object.
 * @see_also: #IpatchSampleStore
 * @stability: Stable
 *
 * An object which acts as a proxy for sample data and one or more cached
 * versions of the same audio but potentially differing in sample format
 * and/or storage media.  #IpatchSampleStore is used instead of the
 * #IpatchSample interface, for increased performance.
 */
#ifndef __IPATCH_SAMPLE_DATA_H__
#define __IPATCH_SAMPLE_DATA_H__

#include <stdarg.h>
#include <glib.h>
#include <glib-object.h>

/* forward type declarations */

typedef struct _IpatchSampleData IpatchSampleData;
typedef struct _IpatchSampleDataClass IpatchSampleDataClass;

#include <libinstpatch/IpatchItem.h>
#include <libinstpatch/IpatchSampleStore.h>

#define IPATCH_TYPE_SAMPLE_DATA  (ipatch_sample_data_get_type ())
#define IPATCH_SAMPLE_DATA(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), IPATCH_TYPE_SAMPLE_DATA, IpatchSampleData))
#define IPATCH_SAMPLE_DATA_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), IPATCH_TYPE_SAMPLE_DATA, IpatchSampleDataClass))
#define IPATCH_IS_SAMPLE_DATA(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IPATCH_TYPE_SAMPLE_DATA))
#define IPATCH_IS_SAMPLE_DATA_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE ((klass), IPATCH_TYPE_SAMPLE_DATA))
#define IPATCH_SAMPLE_DATA_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS ((obj), IPATCH_TYPE_SAMPLE_DATA, IpatchSampleDataClass))

/* Sample data instance */
struct _IpatchSampleData
{
  IpatchItem parent_instance;
  GSList *samples;              /* list of IpatchSampleStore (1st is native sample) */
};

struct _IpatchSampleDataClass
{
  IpatchItemClass parent_class;
};

/* Reserve 3 item flags for expansion */
#define IPATCH_SAMPLE_DATA_UNUSED_FLAG_SHIFT \
  (IPATCH_CONTAINER_UNUSED_FLAG_SHIFT + 3)


IpatchList *ipatch_get_sample_data_list (void);

GType ipatch_sample_data_get_type (void);
IpatchSampleData *ipatch_sample_data_new (void);

void ipatch_sample_data_add (IpatchSampleData *sampledata, IpatchSampleStore *store);
void ipatch_sample_data_remove (IpatchSampleData *sampledata, IpatchSampleStore *store);
void ipatch_sample_data_replace_native_sample (IpatchSampleData *sampledata,
                                               IpatchSampleStore *store);

IpatchList *ipatch_sample_data_get_samples (IpatchSampleData *sampledata);
guint ipatch_sample_data_get_size (IpatchSampleData *sampledata);
IpatchSampleStore *ipatch_sample_data_get_native_sample (IpatchSampleData *sampledata);
int ipatch_sample_data_get_native_format (IpatchSampleData *sampledata);

gboolean ipatch_sample_data_open_native_sample (IpatchSampleData *sampledata,
                                                IpatchSampleHandle *handle, char mode,
                                                int format, guint32 channel_map,
                                                GError **err);

IpatchSampleStore *ipatch_sample_data_get_cache_sample (IpatchSampleData *sampledata,
                                                        int format, guint32 channel_map,
                                                        GError **err);
IpatchSampleStore *ipatch_sample_data_lookup_cache_sample (IpatchSampleData *sampledata,
                                                           int format, guint32 channel_map);
gboolean ipatch_sample_data_open_cache_sample (IpatchSampleData *sampledata,
                                               IpatchSampleHandle *handle,
                                               int format, guint32 channel_map,
                                               GError **err);
void ipatch_sample_cache_clean (guint64 max_unused_size, guint max_unused_age);
IpatchSampleData *ipatch_sample_data_get_blank (void);

#endif