/usr/include/libgda-5.0/libgda/gda-column.h is in libgda-5.0-dev 5.2.4-1ubuntu1.
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 | /*
* Copyright (C) 2005 - 2011 Vivien Malerba <malerba@gnome-db.org>
* Copyright (C) 2005 �lvaro Pe�a <alvaropg@telefonica.net>
* Copyright (C) 2008 Przemysław Grzegorczyk <pgrzegorczyk@gmail.com>
*
* 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_COLUMN_H__
#define __GDA_COLUMN_H__
#include <glib-object.h>
#include <libgda/gda-value.h>
#include <glib.h>
#include <libgda/gda-decl.h>
G_BEGIN_DECLS
#define GDA_TYPE_COLUMN (gda_column_get_type())
#define GDA_COLUMN(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYPE_COLUMN, GdaColumn))
#define GDA_COLUMN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYPE_COLUMN, GdaColumnClass))
#define GDA_IS_COLUMN(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GDA_TYPE_COLUMN))
#define GDA_IS_COLUMN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDA_TYPE_COLUMN))
struct _GdaColumn {
GObject object;
GdaColumnPrivate *priv;
};
struct _GdaColumnClass {
GObjectClass parent_class;
/* signals */
void (* name_changed) (GdaColumn *column, const gchar *old_name);
void (* g_type_changed) (GdaColumn *column, GType old_type, GType new_type);
/*< private >*/
/* Padding for future expansion */
void (*_gda_reserved1) (void);
void (*_gda_reserved2) (void);
void (*_gda_reserved3) (void);
void (*_gda_reserved4) (void);
};
/**
* SECTION:gda-column
* @short_description: Management of #GdaDataModel column attributes
* @title: GdaDataModel columns
* @stability: Stable
* @see_also: #GdaDataModel
*
* The #GdaColumn object represents a #GdaDataModel's column and handle all its properties.
*/
GType gda_column_get_type (void) G_GNUC_CONST;
GdaColumn *gda_column_new (void);
GdaColumn *gda_column_copy (GdaColumn *column);
const gchar *gda_column_get_description (GdaColumn *column);
void gda_column_set_description (GdaColumn *column, const gchar *title);
const gchar *gda_column_get_name (GdaColumn *column);
void gda_column_set_name (GdaColumn *column, const gchar *name);
const gchar* gda_column_get_dbms_type (GdaColumn *column);
void gda_column_set_dbms_type (GdaColumn *column, const gchar *dbms_type);
GType gda_column_get_g_type (GdaColumn *column);
void gda_column_set_g_type (GdaColumn *column, GType type);
gboolean gda_column_get_allow_null (GdaColumn *column);
void gda_column_set_allow_null (GdaColumn *column, gboolean allow);
gboolean gda_column_get_auto_increment (GdaColumn *column);
void gda_column_set_auto_increment (GdaColumn *column, gboolean is_auto);
gint gda_column_get_position (GdaColumn *column);
void gda_column_set_position (GdaColumn *column, gint position);
const GValue *gda_column_get_default_value (GdaColumn *column);
void gda_column_set_default_value (GdaColumn *column, const GValue *default_value);
const GValue *gda_column_get_attribute (GdaColumn *column, const gchar *attribute);
void gda_column_set_attribute (GdaColumn *column, const gchar *attribute, const GValue *value,
GDestroyNotify destroy);
/**
* gda_column_set_attribute_static:
* @holder: a #GdaHolder
* @attribute: attribute's name
* @value: (allow-none): the value to set the attribute to, or %NULL
*
* This function is similar to gda_column_set_attribute() but for static strings
*/
#define gda_column_set_attribute_static(holder,attribute,value) gda_column_set_attribute((holder),(attribute),(value),NULL)
G_END_DECLS
#endif
|