This file is indexed.

/usr/include/libgda-5.0/libgda/gda-attributes-manager.h is in libgda-5.0-dev 5.2.4-9.

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
/*
 * Copyright (C) 2008 - 2011 Vivien Malerba <malerba@gnome-db.org>
 * Copyright (C) 2012 Daniel Espinosa <despinosa@src.gnome.org>
 *
 * 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 2 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 library; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 * Boston, MA  02110-1301, USA.
 */

#ifndef __GDA_ATTRIBUTES_MANAGER_H__
#define __GDA_ATTRIBUTES_MANAGER_H__

#include <glib-object.h>

G_BEGIN_DECLS

/* main struct */
/**
 * GdaAttributesManager: (skip)
 */
typedef struct _GdaAttributesManager GdaAttributesManager;
typedef void (*GdaAttributesManagerFunc) (const gchar *att_name, const GValue *value, gpointer data);
typedef void (*GdaAttributesManagerSignal) (GObject *obj, const gchar *att_name, const GValue *value, gpointer data);

GdaAttributesManager *gda_attributes_manager_new         (gboolean for_objects, 
							  GdaAttributesManagerSignal signal_func, gpointer signal_data);
void                  gda_attributes_manager_free        (GdaAttributesManager *mgr);

void                  gda_attributes_manager_set         (GdaAttributesManager *mgr, gpointer ptr,
							  const gchar *att_name, const GValue *value);
void                  gda_attributes_manager_set_full    (GdaAttributesManager *mgr, gpointer ptr,
							  const gchar *att_name, const GValue *value, GDestroyNotify destroy);
const GValue         *gda_attributes_manager_get         (GdaAttributesManager *mgr, gpointer ptr, const gchar *att_name);
void                  gda_attributes_manager_copy        (GdaAttributesManager *from_mgr, gpointer *from, 
							  GdaAttributesManager *to_mgr, gpointer *to);
void                  gda_attributes_manager_clear       (GdaAttributesManager *mgr, gpointer ptr);
void                  gda_attributes_manager_foreach     (GdaAttributesManager *mgr, gpointer ptr, 
							  GdaAttributesManagerFunc func, gpointer data);


/* possible predefined attribute names for gda_holder_get_attribute() or gda_column_get_attribute() */
/**
 * GDA_ATTRIBUTE_DESCRIPTION:
 * The corresponding attribute is the description of the object it refers to (value has a G_TYPE_STRING type).
 */
#define GDA_ATTRIBUTE_DESCRIPTION "__gda_attr_descr"

/**
 * GDA_ATTRIBUTE_NAME:
 * The corresponding attribute is the name of the object it refers to (value has a G_TYPE_STRING type).
 */
#define GDA_ATTRIBUTE_NAME "__gda_attr_name"

/**
 * GDA_ATTRIBUTE_NUMERIC_PRECISION:
 * The corresponding attribute is the number of significant digits of the object it refers to (value has a G_TYPE_INT type).
 */
#define GDA_ATTRIBUTE_NUMERIC_PRECISION "__gda_attr_numeric_precision"

/**
 * GDA_ATTRIBUTE_NUMERIC_SCALE:
 * The corresponding attribute is the number of significant digits to the right of the decimal point of the object it refers to (value has a G_TYPE_INT type).
 */
#define GDA_ATTRIBUTE_NUMERIC_SCALE "__gda_attr_numeric_scale"

/**
 * GDA_ATTRIBUTE_AUTO_INCREMENT:
 * The corresponding attribute specifies if the object it refers to is auto incremented (value has a G_TYPE_BOOLEAN type).
 */
#define GDA_ATTRIBUTE_AUTO_INCREMENT "__gda_attr_autoinc"

/**
 * GDA_ATTRIBUTE_IS_DEFAULT:
 * The corresponding attribute specifies if the object it refers to has its value to default (value has a G_TYPE_BOOLEAN type).
 */
#define GDA_ATTRIBUTE_IS_DEFAULT "__gda_attr_is_default"

/**
 * GDA_ATTRIBUTE_TREE_NODE_UNKNOWN_CHILDREN:
 * This attribute, if %TRUE specifies that a tree node may or may not have any children nodes (value has a G_TYPE_BOOLEAN type).
 */
#define GDA_ATTRIBUTE_TREE_NODE_UNKNOWN_CHILDREN "__gda_attr_tnuchild"


/**
 * SECTION:gda-attributes-manager
 * @short_description: Manager for lists of attributes
 * @title: Attributes manager
 * @stability: Stable
 *
 * he #GdaAttributesManager manages lists of named values (attributes) for the benefit of
 * others (objects or resources for which only a pointer is known). It is used internally by &LIBGDA;
 * whenever an object or a simple structure may have several attributes.
 *
 * The features are similar to those of the <link linkend="g-object-set-data">g_object_set_data()</link> and similar
 * but with the following major differences:
 * <itemizedlist>
 *  <listitem><para>it works with GObject objects and also with simple pointers to data</para></listitem>
 *  <listitem><para>attributes names are considered static (they are not copied) and so they must either be static strings or allocated strings which exist (unchanged) while an attribute uses it as name</para></listitem>
 *  <listitem><para>it is possible to iterate through the attributes</para></listitem>
 *  <listitem><para>the associated values are expected to be #GValue values</para></listitem>
 * </itemizedlist>
 *
 * Attibute names can be any string, but &LIBGDA; reserves some for its own usage, see below.
 *
 * The #GdaAttributesManager implements its own locking mechanism so it is thread-safe.
 *
 * 
 */

G_END_DECLS

#endif