This file is indexed.

/usr/include/gpointing-device-settings/gpds-xinput.h is in libgpds-dev 1.5.1-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
131
132
133
134
135
136
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 *  Copyright (C) 2009 Hiroyuki Ikezoe  <poincare@ikezoe.net>
 *
 *  This library 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, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  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, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef __GPDS_XINPUT_H__
#define __GPDS_XINPUT_H__

#include <glib-object.h>

G_BEGIN_DECLS

#define GPDS_TYPE_XINPUT            (gpds_xinput_get_type ())
#define GPDS_XINPUT(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPDS_TYPE_XINPUT, GpdsXInput))
#define GPDS_XINPUT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GPDS_TYPE_XINPUT, GpdsXInputClass))
#define GPDS_IS_XINPUT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPDS_TYPE_XINPUT))
#define GPDS_IS_XINPUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPDS_TYPE_XINPUT))
#define GPDS_XINPUT_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), GPDS_TYPE_XINPUT, GpdsXInputClass))

#define GPDS_XINPUT_ERROR           (gpds_xinput_error_quark())

typedef enum
{
    GPDS_XINPUT_ERROR_NO_REGISTERED_PROPERTY,
    GPDS_XINPUT_ERROR_FORMAT_TYPE_MISMATCH,
    GPDS_XINPUT_ERROR_X_ERROR
} GpdsXInputError;

typedef struct _GpdsXInputPropertyEntry GpdsXInputPropertyEntry;
struct _GpdsXInputPropertyEntry
{
    gint property_enum;
    const gchar *name;
    GType property_type; /* G_TYPE_INT or G_TYPE_FLOAT */
    gint format_type;
    gint max_value_count;
};

typedef struct _GpdsXInput GpdsXInput;
typedef struct _GpdsXInputClass GpdsXInputClass;

struct _GpdsXInput
{
    GObject parent;
};

struct _GpdsXInputClass
{
    GObjectClass parent_class;
};

GQuark       gpds_xinput_error_quark          (void);
GType        gpds_xinput_get_type             (void) G_GNUC_CONST;

GpdsXInput  *gpds_xinput_new                  (const gchar *device_name);
const gchar *gpds_xinput_get_device_name      (GpdsXInput *xinput);
void         gpds_xinput_register_property_entries
                                              (GpdsXInput *xinput,
                                               const GpdsXInputPropertyEntry *entries,
                                               guint n_entries);
gboolean     gpds_xinput_set_int_properties   (GpdsXInput *xinput,
                                               gint property_enum,
                                               GError **error,
                                               gint *properties,
                                               guint n_properties);
gboolean     gpds_xinput_set_int_properties_by_name_with_format_type
                                              (GpdsXInput *xinput,
                                               const gchar *property_name,
                                               gint format_type,
                                               GError **error,
                                               gint *properties,
                                               guint n_properties);
gboolean     gpds_xinput_get_int_properties
                                              (GpdsXInput *xinput,
                                               gint property_enum,
                                               GError **error,
                                               gint **values,
                                               gulong *n_values);
gboolean     gpds_xinput_get_int_properties_by_name
                                              (GpdsXInput *xinput,
                                               const gchar *property_name,
                                               GError **error,
                                               gint **values,
                                               gulong *n_values);
gboolean     gpds_xinput_set_float_properties (GpdsXInput *xinput,
                                               gint property_enum,
                                               GError **error,
                                               gdouble *properties,
                                               guint n_properties);
gboolean     gpds_xinput_set_float_properties_by_name
                                              (GpdsXInput *xinput,
                                               const gchar *property_name,
                                               GError **error,
                                               gdouble *properties,
                                               guint n_properties);
gboolean     gpds_xinput_get_float_properties (GpdsXInput *xinput,
                                               gint property_enum,
                                               GError **error,
                                               gdouble **properties,
                                               gulong *n_properties);
gboolean     gpds_xinput_get_float_properties_by_name
                                              (GpdsXInput *xinput,
                                               const gchar *property_name,
                                               GError **error,
                                               gdouble **properties,
                                               gulong *n_properties);
gboolean     gpds_xinput_get_button_map       (GpdsXInput *xinput,
                                               GError **error,
                                               guchar **map,
                                               gshort *n_buttons);
gboolean     gpds_xinput_set_button_map       (GpdsXInput *xinput,
                                               GError **error,
                                               guchar *map,
                                               gshort n_buttons);

G_END_DECLS

#endif /* __GPDS_XINPUT_H__ */

/*
vi:ts=4:nowrap:ai:expandtab:sw=4
*/