This file is indexed.

/usr/include/libinstpatch-1.0/libinstpatch/IpatchIter.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/*
 * 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: IpatchIter
 * @short_description: Iterator instance
 * @see_also: 
 * @stability: Stable
 *
 * A boxed type (structure) used for abstracting manipulation of object lists.
 */
#ifndef __IPATCH_ITER_H__
#define __IPATCH_ITER_H__

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

typedef struct _IpatchIter IpatchIter;
typedef struct _IpatchIterMethods IpatchIterMethods;

/* boxed type for IpatchIter */
#define IPATCH_TYPE_ITER   (ipatch_iter_get_type ())

/* list iterator structure */
struct _IpatchIter
{
  /*< private >*/
  IpatchIterMethods *methods;	/* iterator methods */
  gpointer data;		/* method defined data */
  gpointer data2;		/* method defined data */
  gpointer data3;		/* method defined data */
  gpointer data4;		/* method defined data */
};

/* iterator methods */
struct _IpatchIterMethods
{
  gpointer (*get)(IpatchIter *iter); /* get item method */
  gpointer (*next)(IpatchIter *iter); /* next item method */
  gpointer (*first)(IpatchIter *iter);	/* first item method */
  gpointer (*last)(IpatchIter *iter); /* last item method */
  gpointer (*index)(IpatchIter *iter, int index); /* index item method */
  void (*insert)(IpatchIter *iter, gpointer item); /* insert item method */
  void (*remove)(IpatchIter *iter); /* remove current item method */
  int (*count)(IpatchIter *iter); /* count items method */
};

GType ipatch_iter_get_type (void);
IpatchIter *ipatch_iter_alloc (void);
void ipatch_iter_free (IpatchIter *iter);
IpatchIter *ipatch_iter_duplicate (IpatchIter *iter);

#define ipatch_iter_get(iter) (((iter)->methods->get)(iter))
#define ipatch_iter_next(iter) (((iter)->methods->next)(iter))
#define ipatch_iter_first(iter) (((iter)->methods->first)(iter))
#define ipatch_iter_last(iter) (((iter)->methods->last)(iter))
#define ipatch_iter_index(iter, pos) (((iter)->methods->index)(iter, pos))
#define ipatch_iter_insert(iter, item) (((iter)->methods->insert)(iter, item))
#define ipatch_iter_remove(iter) (((iter)->methods->remove)(iter))
#define ipatch_iter_count(iter) (((iter)->methods->count)(iter))

#define IPATCH_ITER_GSLIST_GET_LIST(iter) ((GSList **)(iter->data))
#define IPATCH_ITER_GSLIST_GET_POS(iter) ((GSList *)(iter->data2))

#define IPATCH_ITER_GSLIST_SET_LIST(iter, list) (iter->data = list)
#define IPATCH_ITER_GSLIST_SET_POS(iter, pos) (iter->data2 = pos)

void ipatch_iter_GSList_init (IpatchIter *iter, GSList **list);
gpointer ipatch_iter_GSList_get (IpatchIter *iter);
gpointer ipatch_iter_GSList_next (IpatchIter *iter);
gpointer ipatch_iter_GSList_first (IpatchIter *iter);
gpointer ipatch_iter_GSList_last (IpatchIter *iter);
gpointer ipatch_iter_GSList_index (IpatchIter *iter, int index);
void ipatch_iter_GSList_insert (IpatchIter *iter, gpointer item);
void ipatch_iter_GSList_remove (IpatchIter *iter);
int ipatch_iter_GSList_count (IpatchIter *iter);

#define IPATCH_ITER_GLIST_GET_LIST(iter) ((GList **)(iter->data))
#define IPATCH_ITER_GLIST_GET_POS(iter) ((GList *)(iter->data2))

#define IPATCH_ITER_GLIST_SET_LIST(iter, list) (iter->data = list)
#define IPATCH_ITER_GLIST_SET_POS(iter, pos) (iter->data2 = pos)

void ipatch_iter_GList_init (IpatchIter *iter, GList **list);
gpointer ipatch_iter_GList_get (IpatchIter *iter);
gpointer ipatch_iter_GList_next (IpatchIter *iter);
gpointer ipatch_iter_GList_first (IpatchIter *iter);
gpointer ipatch_iter_GList_last (IpatchIter *iter);
gpointer ipatch_iter_GList_index (IpatchIter *iter, int index);
void ipatch_iter_GList_insert (IpatchIter *iter, gpointer item);
void ipatch_iter_GList_remove (IpatchIter *iter);
int ipatch_iter_GList_count (IpatchIter *iter);

#define IPATCH_ITER_ARRAY_GET_ARRAY(iter) ((gpointer *)(iter->data))
#define IPATCH_ITER_ARRAY_GET_SIZE(iter) (GPOINTER_TO_UINT (iter->data2))
#define IPATCH_ITER_ARRAY_GET_POS(iter) (GPOINTER_TO_INT (iter->data3))

#define IPATCH_ITER_ARRAY_SET_ARRAY(iter, array) (iter->data = array)
#define IPATCH_ITER_ARRAY_SET_SIZE(iter, size) \
  (iter->data2 = GUINT_TO_POINTER (size))
#define IPATCH_ITER_ARRAY_SET_POS(iter, pos) \
  (iter->data3 = GINT_TO_POINTER (pos))

void ipatch_iter_array_init (IpatchIter *iter, gpointer *array, guint size);
gpointer ipatch_iter_array_get (IpatchIter *iter);
gpointer ipatch_iter_array_next (IpatchIter *iter);
gpointer ipatch_iter_array_first (IpatchIter *iter);
gpointer ipatch_iter_array_last (IpatchIter *iter);
gpointer ipatch_iter_array_index (IpatchIter *iter, int index);
void ipatch_iter_array_insert (IpatchIter *iter, gpointer item);
void ipatch_iter_array_remove (IpatchIter *iter);
int ipatch_iter_array_count (IpatchIter *iter);

#endif