This file is indexed.

/usr/include/libinstpatch-1.0/libinstpatch/IpatchDLSWriter.h is in libinstpatch-dev 1.0.0-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
/*
 * 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: IpatchDLSWriter
 * @short_description: DLS instrument file writer
 * @see_also: #IpatchDLS
 * @stability: Stable
 *
 * Writes a DLS instrument object tree (#IpatchDLS) to a DLS file.
 */
#ifndef __IPATCH_DLS_WRITER_H__
#define __IPATCH_DLS_WRITER_H__

#include <glib.h>
#include <libinstpatch/IpatchDLSFile.h>
#include <libinstpatch/IpatchRiff.h>
#include <libinstpatch/IpatchDLS2.h>

typedef struct _IpatchDLSWriter IpatchDLSWriter; /* private structure */
typedef struct _IpatchDLSWriterClass IpatchDLSWriterClass;

#define IPATCH_TYPE_DLS_WRITER   (ipatch_dls_writer_get_type ())
#define IPATCH_DLS_WRITER(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), IPATCH_TYPE_DLS_WRITER, \
   IpatchDLSWriter))
#define IPATCH_DLS_WRITER_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), IPATCH_TYPE_DLS_WRITER, \
   IpatchDLSWriterClass))
#define IPATCH_IS_DLS_WRITER(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IPATCH_TYPE_DLS_WRITER))
#define IPATCH_IS_DLS_WRITER_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE ((klass), IPATCH_TYPE_DLS_WRITER))

/* DLS writer object */
struct _IpatchDLSWriter
{
  IpatchRiff parent_instance;   /* derived from IpatchRiff */
  IpatchDLS2 *orig_dls;		/* original DLS object */
  IpatchDLS2 *dls;		/* duplicated DLS object to save */
  gboolean is_gig;	/* set to TRUE if saving a GigaSampler file */
  GHashTable *sample_hash; /* IpatchDLS2Sample -> sample_array index + 1 */
  guint32 *sample_ofstbl;      /* sample index -> file offset table */
  guint sample_count;		/* count of samples */
  guint32 ptbl_pos;  /* pool table position in file - for later fixup */
};

/* DLS writer class */
struct _IpatchDLSWriterClass
{
  IpatchRiffClass parent_class;
};

GType ipatch_dls_writer_get_type (void);
IpatchDLSWriter *ipatch_dls_writer_new (IpatchFileHandle *handle, IpatchDLS2 *dls);
void ipatch_dls_writer_set_patch (IpatchDLSWriter *writer, IpatchDLS2 *dls);
void ipatch_dls_writer_set_file_handle (IpatchDLSWriter *writer, IpatchFileHandle *handle);
gboolean ipatch_dls_writer_save (IpatchDLSWriter *writer, GError **err);

#endif