| gda-blob.h | | gda-blob.h | |
| /* GDA Common Library | | /* GDA Common Library | |
|
| * Copyright (C) 1998-2003 The GNOME Foundation. | | | |
| * Copyright (C) 1998 - 2005 The GNOME Foundation. | | * Copyright (C) 1998 - 2005 The GNOME Foundation. | |
| * | | * | |
| * Authors: | | * Authors: | |
| * Juan-Mariano de Goyeneche <jmseyas@dit.upm.es> | | * Juan-Mariano de Goyeneche <jmseyas@dit.upm.es> | |
|
| * Daniel Espinosa Ortiz <esodan@gmail.com> (GdaBlob based on GObject) | | * Daniel Espinosa Ortiz <esodan@gmail.com> (GdaBlob based on GObject) | |
| | | * Vivien Malerba <malerba@gnome-db.org> | |
| * | | * | |
| * This Library is free software; you can redistribute it and/or | | * This Library is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Library General Public License as | | * modify it under the terms of the GNU Library General Public License as | |
| * published by the Free Software Foundation; either version 2 of the | | * published by the Free Software Foundation; either version 2 of the | |
| * License, or (at your option) any later version. | | * License, or (at your option) any later version. | |
| * | | * | |
| * This Library is distributed in the hope that it will be useful, | | * This Library is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * Library General Public License for more details. | | * Library General Public License for more details. | |
| | | | |
| skipping to change at line 39 | | skipping to change at line 39 | |
| #include <glib-object.h> | | #include <glib-object.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| typedef enum { | | typedef enum { | |
| GDA_BLOB_MODE_READ = 1, | | GDA_BLOB_MODE_READ = 1, | |
| GDA_BLOB_MODE_WRITE = 1 << 1, | | GDA_BLOB_MODE_WRITE = 1 << 1, | |
| GDA_BLOB_MODE_RDWR = 0x03 | | GDA_BLOB_MODE_RDWR = 0x03 | |
| } GdaBlobMode; | | } GdaBlobMode; | |
| | | | |
|
| /* --- type macros --- */ | | #define GDA_TYPE_BLOB (gda_blob_get_type()) | |
| #define G_VALUE_TYPE_BLOB (gda_blob_get_type()) | | #define GDA_BLOB(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYPE | |
| #define G_TYPE_IS_GDABLOB(type) (G_TYPE_FUNDAMENTAL (type) == GDA_VALUE | | _BLOB, GdaBlob)) | |
| _TYPE_BLOB) | | #define GDA_BLOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYPE_ | |
| #define GDA_VALUE_BLOB(object) (G_TYPE_CHECK_INSTANCE_CAST ((obj | | BLOB, GdaBlobClass)) | |
| ect), G_VALUE_TYPE_BLOB, GdaDate)) | | #define GDA_IS_BLOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj, GDA_TYPE_ | |
| #define GDA_VALUE_BLOB_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class) | | BLOB)) | |
| , G_VALUE_TYPE_BLOB, GdaDateClass)) | | #define GDA_IS_BLOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GDA_TYPE | |
| #define GDA_VALUE_IS_BLOB(object) (G_TYPE_CHECK_INSTANCE_TYPE ((obj | | _BLOB)) | |
| ect), G_VALUE_TYPE_BLOB)) | | | |
| #define GDA_VALUE_IS_BLOB_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class) | | | |
| , G_VALUE_TYPE_BLOB)) | | | |
| #define GDA_VALUE_BLOB_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((obje | | | |
| ct), G_VALUE_TYPE_BLOB,GdaTimeClass)) | | | |
| #define GDA_VALUE_BLOB_TYPE(object) (G_TYPE_FROM_INSTANCE (object)) | | | |
| #define GDA_VALUE_BLOB_TYPE_NAME(object) (g_type_name (GDA_VALUE_BLOB_TYPE | | | |
| (object))) | | | |
| #define GDA_VALUE_BLOB_CLASS_TYPE(class) (G_TYPE_FROM_CLASS (class)) | | | |
| #define GDA_VALUE_BLOB_CLASS_NAME(class) (g_type_name (GDA_VALUE_BLOB_CLAS | | | |
| S_TYPE (class))) | | | |
| #define G_VALUE_HOLDS_GDABLOB(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_V | | | |
| ALUE_TYPE_BLOB)) | | | |
| | | | |
| typedef struct _GdaBlobClass GdaBlobClass; | | | |
| struct _GdaBlobClass { | | | |
| GObjectClass parent_class; | | | |
| }; | | | |
| | | | |
| typedef struct _GdaBlob GdaBlob; | | typedef struct _GdaBlob GdaBlob; | |
|
| | | | |
| struct _GdaBlob { | | struct _GdaBlob { | |
|
| /* Private */ | | GObject object; | |
| gint (* open) (GdaBlob *blob, GdaBlobMode mode); | | }; | |
| | | | |
| gint (* read) (GdaBlob *blob, gpointer buf, gint size, | | | |
| gint *bytes_read); | | | |
| | | | |
| gint (* write) (GdaBlob *blob, gpointer buf, gint size, | | | |
| gint *bytes_written); | | | |
| | | | |
| gint (* lseek) (GdaBlob *blob, gint offset, gint whence); | | | |
| | | | |
| gint (* close) (GdaBlob *blob); | | | |
| | | | |
| gint (* remove) (GdaBlob *blob); | | | |
| | | | |
| gchar * (* stringify) (GdaBlob *blob); | | | |
| | | | |
| void (* free_data) (GdaBlob *blob); | | | |
| | | | |
|
| gpointer priv_data; | | typedef struct _GdaBlobClass GdaBlobClass; | |
| /* */ | | struct _GdaBlobClass { | |
| | | GObjectClass parent_class; | |
| | | | |
|
| /* Public */ | | /* Virtual methods */ | |
| gpointer user_data; | | gint (* open) (GdaBlob *blob, GdaBlobMode mode); | |
| | | gint (* read) (GdaBlob *blob, gpointer buf, gint size, | |
| | | gint *bytes_read); | |
| | | gint (* write) (GdaBlob *blob, gpointer buf, gint size, | |
| | | gint *bytes_written); | |
| | | gint (* lseek) (GdaBlob *blob, gint offset, gint whence); | |
| | | gint (* close) (GdaBlob *blob); | |
| | | gint (* remove) (GdaBlob *blob); | |
| | | gchar *(* get_sql_id)(GdaBlob *blob); | |
| }; | | }; | |
| | | | |
|
| gint gda_blob_open (GdaBlob *blob, GdaBlobMode mode); | | GType gda_blob_get_type (void); | |
| gint gda_blob_read (GdaBlob *blob, gpointer buf, gint size, gint *bytes_r | | | |
| ead); | | | |
| gint gda_blob_write (GdaBlob *blob, gpointer buf, gint size, gint *bytes_ | | | |
| written); | | | |
| | | | |
| gint gda_blob_lseek (GdaBlob *blob, gint offset, gint whence); | | | |
| gint gda_blob_close (GdaBlob *blob); | | | |
| | | | |
|
| gint gda_blob_remove (GdaBlob *blob); | | gint gda_blob_open (GdaBlob *blob, GdaBlobMode mode); | |
| void gda_blob_free_data (GdaBlob *blob); | | gint gda_blob_read (GdaBlob *blob, gpointer buf, gint size, gint * | |
| gchar *gda_blob_stringify(GdaBlob *blob); | | bytes_read); | |
| | | gint gda_blob_write (GdaBlob *blob, gpointer buf, gint size, gint * | |
| | | bytes_written); | |
| | | gint gda_blob_lseek (GdaBlob *blob, gint offset, gint whence); | |
| | | gint gda_blob_close (GdaBlob *blob); | |
| | | gint gda_blob_remove (GdaBlob *blob); | |
| | | gchar *gda_blob_get_sql_id(GdaBlob *blob); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 9 change blocks. |
| 63 lines changed or deleted | | 36 lines changed or added | |
|
| gda-column.h | | gda-column.h | |
| | | | |
| skipping to change at line 46 | | skipping to change at line 46 | |
| #define GDA_COLUMN(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TY
PE_COLUMN, GdaColumn)) | | #define GDA_COLUMN(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TY
PE_COLUMN, GdaColumn)) | |
| #define GDA_COLUMN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYP
E_COLUMN, GdaColumnClass)) | | #define GDA_COLUMN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYP
E_COLUMN, GdaColumnClass)) | |
| #define GDA_IS_COLUMN(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GDA_TY
PE_COLUMN)) | | #define GDA_IS_COLUMN(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GDA_TY
PE_COLUMN)) | |
| #define GDA_IS_COLUMN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDA_T
YPE_COLUMN)) | | #define GDA_IS_COLUMN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDA_T
YPE_COLUMN)) | |
| | | | |
| typedef struct _GdaColumn GdaColumn; | | typedef struct _GdaColumn GdaColumn; | |
| typedef struct _GdaColumnClass GdaColumnClass; | | typedef struct _GdaColumnClass GdaColumnClass; | |
| typedef struct _GdaColumnPrivate GdaColumnPrivate; | | typedef struct _GdaColumnPrivate GdaColumnPrivate; | |
| | | | |
| struct _GdaColumn { | | struct _GdaColumn { | |
|
| GObject object; | | GObject object; | |
| GdaColumnPrivate *priv; | | GdaColumnPrivate *priv; | |
| }; | | }; | |
| | | | |
| struct _GdaColumnClass { | | struct _GdaColumnClass { | |
| GObjectClass parent_class; | | GObjectClass parent_class; | |
| | | | |
| /* signals */ | | /* signals */ | |
|
| void (* name_changed) (GdaColumn *column, const gchar *old_name); | | void (* name_changed) (GdaColumn *column, const gchar *old_name) | |
| | | ; | |
| | | void (* gda_type_changed) (GdaColumn *column, GdaValueType old_type, | |
| | | GdaValueType new_type); | |
| }; | | }; | |
| | | | |
|
| GType gda_column_get_type (void); | | GType gda_column_get_type (void); | |
| GdaColumn *gda_column_new (void); | | GdaColumn *gda_column_new (void); | |
| GdaColumn *gda_column_copy (GdaColumn *column); | | GdaColumn *gda_column_copy (GdaColumn *column); | |
| void gda_column_free (GdaColumn *column); | | gboolean gda_column_equal (const GdaColumn *lhs, const | |
| gboolean gda_column_equal (const GdaColumn *lhs, const GdaColumn *rh | | GdaColumn *rhs); | |
| s); | | | |
| glong gda_column_get_defined_size (GdaColumn *column); | | const gchar *gda_column_get_title (GdaColumn *column); | |
| void gda_column_set_defined_size (GdaColumn *column, glong size) | | void gda_column_set_title (GdaColumn *column, const gch | |
| ; | | ar *title); | |
| const gchar *gda_column_get_name (GdaColumn *column); | | | |
| void gda_column_set_name (GdaColumn *column, const gchar *name); | | glong gda_column_get_defined_size (GdaColumn *column); | |
| const gchar *gda_column_get_table (GdaColumn *column); | | void gda_column_set_defined_size (GdaColumn *column, glong siz | |
| void gda_column_set_table (GdaColumn *column, const gchar *table | | e); | |
| ); | | | |
| const gchar *gda_column_get_caption (GdaColumn *column); | | const gchar *gda_column_get_name (GdaColumn *column); | |
| void gda_column_set_caption (GdaColumn *column, const gchar *cap | | void gda_column_set_name (GdaColumn *column, const gch | |
| tion); | | ar *name); | |
| glong gda_column_get_scale (GdaColumn *column); | | | |
| void gda_column_set_scale (GdaColumn *column, glong scale); | | const gchar *gda_column_get_table (GdaColumn *column); | |
| const gchar* gda_column_get_dbms_type (GdaColumn *column); | | void gda_column_set_table (GdaColumn *column, const gch | |
| void gda_column_set_dbms_type (GdaColumn *column, const gchar *d | | ar *table); | |
| bms_type); | | | |
| GdaValueType gda_column_get_gdatype (GdaColumn *column); | | const gchar *gda_column_get_caption (GdaColumn *column); | |
| void gda_column_set_gdatype (GdaColumn *column, GdaValueType typ | | void gda_column_set_caption (GdaColumn *column, const gch | |
| e); | | ar *caption); | |
| gboolean gda_column_get_allow_null (GdaColumn *column); | | | |
| void gda_column_set_allow_null (GdaColumn *column, gboolean allo | | glong gda_column_get_scale (GdaColumn *column); | |
| w); | | void gda_column_set_scale (GdaColumn *column, glong sca | |
| gboolean gda_column_get_primary_key (GdaColumn *column); | | le); | |
| void gda_column_set_primary_key (GdaColumn *column, gboolean pk) | | | |
| ; | | const gchar* gda_column_get_dbms_type (GdaColumn *column); | |
| gboolean gda_column_get_unique_key (GdaColumn *column); | | void gda_column_set_dbms_type (GdaColumn *column, const gch | |
| void gda_column_set_unique_key (GdaColumn *column, gboolean uk); | | ar *dbms_type); | |
| const gchar *gda_column_get_references (GdaColumn *column); | | | |
| void gda_column_set_references (GdaColumn *column, const gchar * | | GdaValueType gda_column_get_gdatype (GdaColumn *column); | |
| ref); | | void gda_column_set_gdatype (GdaColumn *column, GdaValueT | |
| | | ype type); | |
| | | | |
| | | gboolean gda_column_get_allow_null (GdaColumn *column); | |
| | | void gda_column_set_allow_null (GdaColumn *column, gboolean | |
| | | allow); | |
| | | | |
| | | gboolean gda_column_get_primary_key (GdaColumn *column); | |
| | | void gda_column_set_primary_key (GdaColumn *column, gboolean | |
| | | pk); | |
| | | | |
| | | gboolean gda_column_get_unique_key (GdaColumn *column); | |
| | | void gda_column_set_unique_key (GdaColumn *column, gboolean | |
| | | uk); | |
| | | | |
| | | const gchar *gda_column_get_references (GdaColumn *column); | |
| | | void gda_column_set_references (GdaColumn *column, const gch | |
| | | ar *ref); | |
| | | | |
| gboolean gda_column_get_auto_increment (GdaColumn *column); | | gboolean gda_column_get_auto_increment (GdaColumn *column); | |
| void gda_column_set_auto_increment (GdaColumn *column, gboolean
is_auto); | | 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 GdaValue *gda_column_get_default_value (GdaColumn *column); | | gint gda_column_get_position (GdaColumn *column); | |
| void gda_column_set_default_value (GdaColumn *column, const GdaV | | void gda_column_set_position (GdaColumn *column, gint posi | |
| alue *default_value); | | tion); | |
| | | | |
| | | const GdaValue *gda_column_get_default_value (GdaColumn *column); | |
| | | void gda_column_set_default_value (GdaColumn *column, const Gda | |
| | | Value *default_value); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 5 change blocks. |
| 43 lines changed or deleted | | 66 lines changed or added | |
|
| gda-data-model-base.h | | gda-data-model-base.h | |
| /* GDA common library | | /* GDA common library | |
|
| * Copyright (C) 1998-2002 The GNOME Foundation. | | * Copyright (C) 1998 - 2005 The GNOME Foundation. | |
| * | | * | |
| * AUTHORS: | | * AUTHORS: | |
| * Rodrigo Moya <rodrigo@gnome-db.org> | | * Rodrigo Moya <rodrigo@gnome-db.org> | |
| * Vivien Malerba <malerba@gnome-db.org> | | * Vivien Malerba <malerba@gnome-db.org> | |
| * | | * | |
| * This Library is free software; you can redistribute it and/or | | * This Library is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Library General Public License as | | * modify it under the terms of the GNU Library General Public License as | |
| * published by the Free Software Foundation; either version 2 of the | | * published by the Free Software Foundation; either version 2 of the | |
| * License, or (at your option) any later version. | | * License, or (at your option) any later version. | |
| * | | * | |
| | | | |
| skipping to change at line 55 | | skipping to change at line 55 | |
| GObject object; | | GObject object; | |
| GdaDataModelBasePrivate *priv; | | GdaDataModelBasePrivate *priv; | |
| }; | | }; | |
| | | | |
| struct _GdaDataModelBaseClass { | | struct _GdaDataModelBaseClass { | |
| GObjectClass parent_class; | | GObjectClass parent_class; | |
| | | | |
| /* virtual methods */ | | /* virtual methods */ | |
| gint (* get_n_rows) (GdaDataModelBase *model); | | gint (* get_n_rows) (GdaDataModelBase *model); | |
| gint (* get_n_columns) (GdaDataModelBase *model); | | gint (* get_n_columns) (GdaDataModelBase *model); | |
|
| GdaColumn *(* describe_column) (GdaDataModelBase *model, gint col); | | GdaRow *(* get_row) (GdaDataModelBase *model, gi | |
| const GdaRow *(* get_row) (GdaDataModelBase *model, gi | | nt row); | |
| nt row); | | | |
| const GdaValue *(* get_value_at) (GdaDataModelBase *model, gi
nt col, gint row); | | const GdaValue *(* get_value_at) (GdaDataModelBase *model, gi
nt col, gint row); | |
| | | | |
| gboolean (* is_updatable) (GdaDataModelBase *model); | | gboolean (* is_updatable) (GdaDataModelBase *model); | |
|
| const GdaRow *(* append_values) (GdaDataModelBase *model, co
nst GList *values); | | GdaRow *(* append_values) (GdaDataModelBase *model, co
nst GList *values); | |
| gboolean (* append_row) (GdaDataModelBase *model, Gd
aRow *row); | | gboolean (* append_row) (GdaDataModelBase *model, Gd
aRow *row); | |
|
| gboolean (* remove_row) (GdaDataModelBase *model, co | | gboolean (* update_row) (GdaDataModelBase *model, Gd | |
| nst GdaRow *row); | | aRow *row); | |
| gboolean (* update_row) (GdaDataModelBase *model, co | | gboolean (* remove_row) (GdaDataModelBase *model, Gd | |
| nst GdaRow *row); | | aRow *row); | |
| gboolean (* append_column) (GdaDataModelBase *model, co | | GdaColumn *(* append_column) (GdaDataModelBase *model); | |
| nst GdaColumn *attrs); | | | |
| gboolean (* update_column) (GdaDataModelBase *model, gi | | | |
| nt col, | | | |
| const GdaColumn *attrs); | | | |
| gboolean (* remove_column) (GdaDataModelBase *model, gi
nt col); | | gboolean (* remove_column) (GdaDataModelBase *model, gi
nt col); | |
| }; | | }; | |
| | | | |
| GType gda_data_model_base_get_type (void); | | GType gda_data_model_base_get_type (void); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 4 change blocks. |
| 14 lines changed or deleted | | 9 lines changed or added | |
|
| gda-data-model.h | | gda-data-model.h | |
| | | | |
| skipping to change at line 54 | | skipping to change at line 54 | |
| gpointer user_data); | | gpointer user_data); | |
| | | | |
| /* struct for the interface */ | | /* struct for the interface */ | |
| struct _GdaDataModelIface { | | struct _GdaDataModelIface { | |
| GTypeInterface g_iface; | | GTypeInterface g_iface; | |
| | | | |
| /* virtual table */ | | /* virtual table */ | |
| gint (* i_get_n_rows) (GdaDataModel *model); | | gint (* i_get_n_rows) (GdaDataModel *model); | |
| gint (* i_get_n_columns) (GdaDataModel *model); | | gint (* i_get_n_columns) (GdaDataModel *model); | |
| | | | |
|
| GdaColumn *(* i_describe_column) (GdaDataModel *model, gint col); | | GdaColumn *(* i_describe_column) (GdaDataModel *model, gin | |
| const gchar *(* i_get_column_title)(GdaDataModel *model, gin | | t col); | |
| t col); | | GdaRow *(* i_get_row) (GdaDataModel *model, gin | |
| void (* i_set_column_title)(GdaDataModel *model, gin | | t row); | |
| t col, const gchar *title); | | | |
| gint (* i_get_column_pos) (GdaDataModel *model, con | | | |
| st gchar *title); | | | |
| | | | |
| const GdaRow *(* i_get_row) (GdaDataModel *model, gin | | | |
| t row); | | | |
| const GdaValue *(* i_get_value_at) (GdaDataModel *model, gin
t col, gint row); | | const GdaValue *(* i_get_value_at) (GdaDataModel *model, gin
t col, gint row); | |
| | | | |
| gboolean (* i_is_updatable) (GdaDataModel *model); | | gboolean (* i_is_updatable) (GdaDataModel *model); | |
| gboolean (* i_has_changed) (GdaDataModel *model); | | gboolean (* i_has_changed) (GdaDataModel *model); | |
| void (* i_begin_changes) (GdaDataModel *model); | | void (* i_begin_changes) (GdaDataModel *model); | |
| gboolean (* i_commit_changes) (GdaDataModel *model); | | gboolean (* i_commit_changes) (GdaDataModel *model); | |
| gboolean (* i_cancel_changes) (GdaDataModel *model); | | gboolean (* i_cancel_changes) (GdaDataModel *model); | |
| | | | |
|
| const GdaRow *(* i_append_values) (GdaDataModel *model, con
st GList *values); | | GdaRow *(* i_append_values) (GdaDataModel *model, con
st GList *values); | |
| gboolean (* i_append_row) (GdaDataModel *model, Gda
Row *row); | | gboolean (* i_append_row) (GdaDataModel *model, Gda
Row *row); | |
|
| gboolean (* i_remove_row) (GdaDataModel *model, con | | gboolean (* i_update_row) (GdaDataModel *model, Gda | |
| st GdaRow *row); | | Row *row); | |
| gboolean (* i_update_row) (GdaDataModel *model, con | | gboolean (* i_remove_row) (GdaDataModel *model, Gda | |
| st GdaRow *row); | | Row *row); | |
| | | | |
|
| gboolean (* i_append_column) (GdaDataModel *model, con | | GdaColumn *(* i_append_column) (GdaDataModel *model); | |
| st GdaColumn *attrs); | | | |
| gboolean (* i_update_column) (GdaDataModel *model, gin | | | |
| t col, | | | |
| const GdaColumn *attrs); | | | |
| gboolean (* i_remove_column) (GdaDataModel *model, gin
t col); | | gboolean (* i_remove_column) (GdaDataModel *model, gin
t col); | |
| | | | |
| void (* i_set_notify) (GdaDataModel *model, gbo
olean do_notify_changes); | | void (* i_set_notify) (GdaDataModel *model, gbo
olean do_notify_changes); | |
| gboolean (* i_get_notify) (GdaDataModel *model); | | gboolean (* i_get_notify) (GdaDataModel *model); | |
| | | | |
| gboolean (* i_set_command) (GdaDataModel *model, con
st gchar *txt, GdaCommandType type); | | gboolean (* i_set_command) (GdaDataModel *model, con
st gchar *txt, GdaCommandType type); | |
| const gchar *(* i_get_command) (GdaDataModel *model, Gda
CommandType *type); | | const gchar *(* i_get_command) (GdaDataModel *model, Gda
CommandType *type); | |
| | | | |
| /* signals */ | | /* signals */ | |
| void (* changed) (GdaDataModel *model); | | void (* changed) (GdaDataModel *model); | |
| | | | |
| skipping to change at line 100 | | skipping to change at line 94 | |
| void (* column_updated) (GdaDataModel *model, gint
col); | | void (* column_updated) (GdaDataModel *model, gint
col); | |
| void (* column_removed) (GdaDataModel *model, gint
col); | | void (* column_removed) (GdaDataModel *model, gint
col); | |
| | | | |
| void (* begin_update) (GdaDataModel *model); | | void (* begin_update) (GdaDataModel *model); | |
| void (* cancel_update) (GdaDataModel *model); | | void (* cancel_update) (GdaDataModel *model); | |
| void (* commit_update) (GdaDataModel *model); | | void (* commit_update) (GdaDataModel *model); | |
| }; | | }; | |
| | | | |
| GType gda_data_model_get_type (void); | | GType gda_data_model_get_type (void); | |
| | | | |
|
| void gda_data_model_changed (GdaDat | | | |
| aModel *model); | | | |
| void gda_data_model_row_inserted (GdaDat | | | |
| aModel *model, gint row); | | | |
| void gda_data_model_row_updated (GdaDat | | | |
| aModel *model, gint row); | | | |
| void gda_data_model_row_removed (GdaDat | | | |
| aModel *model, gint row); | | | |
| void gda_data_model_column_inserted (GdaDat | | | |
| aModel *model, gint col); | | | |
| void gda_data_model_column_updated (GdaDat | | | |
| aModel *model, gint col); | | | |
| void gda_data_model_column_removed (GdaDat | | | |
| aModel *model, gint col); | | | |
| void gda_data_model_freeze (GdaDat
aModel *model); | | void gda_data_model_freeze (GdaDat
aModel *model); | |
| void gda_data_model_thaw (GdaDat
aModel *model); | | void gda_data_model_thaw (GdaDat
aModel *model); | |
| | | | |
| gint gda_data_model_get_n_rows (GdaDat
aModel *model); | | gint gda_data_model_get_n_rows (GdaDat
aModel *model); | |
| gint gda_data_model_get_n_columns (GdaDat
aModel *model); | | gint gda_data_model_get_n_columns (GdaDat
aModel *model); | |
| GdaColumn *gda_data_model_describe_column (GdaDat
aModel *model, gint col); | | GdaColumn *gda_data_model_describe_column (GdaDat
aModel *model, gint col); | |
| const gchar *gda_data_model_get_column_title (GdaDat
aModel *model, gint col); | | const gchar *gda_data_model_get_column_title (GdaDat
aModel *model, gint col); | |
| void gda_data_model_set_column_title (GdaDat
aModel *model, gint col, const gchar *title); | | void gda_data_model_set_column_title (GdaDat
aModel *model, gint col, const gchar *title); | |
|
| gint gda_data_model_get_column_position (GdaDat | | GdaRow *gda_data_model_get_row (GdaDat | |
| aModel *model, const gchar *title); | | aModel *model, gint row); | |
| const GdaRow *gda_data_model_get_row (GdaDat | | | |
| aModel *model, gint row); | | | |
| const GdaValue *gda_data_model_get_value_at (GdaDat
aModel *model, gint col, gint row); | | const GdaValue *gda_data_model_get_value_at (GdaDat
aModel *model, gint col, gint row); | |
| | | | |
| gboolean gda_data_model_is_updatable (GdaDat
aModel *model); | | gboolean gda_data_model_is_updatable (GdaDat
aModel *model); | |
|
| const GdaRow *gda_data_model_append_values (GdaDat
aModel *model, const GList *values); | | GdaRow *gda_data_model_append_values (GdaDat
aModel *model, const GList *values); | |
| gboolean gda_data_model_append_row (GdaDat
aModel *model, GdaRow *row); | | gboolean gda_data_model_append_row (GdaDat
aModel *model, GdaRow *row); | |
|
| gboolean gda_data_model_remove_row (GdaDat | | gboolean gda_data_model_update_row (GdaDat | |
| aModel *model, const GdaRow *row); | | aModel *model, GdaRow *row); | |
| gboolean gda_data_model_update_row (GdaDat | | gboolean gda_data_model_remove_row (GdaDat | |
| aModel *model, const GdaRow *row); | | aModel *model, GdaRow *row); | |
| gboolean gda_data_model_append_column (GdaData | | GdaColumn *gda_data_model_append_column (GdaData | |
| Model *model, const GdaColumn *attrs); | | Model *model); | |
| gboolean gda_data_model_update_column (GdaData | | | |
| Model *model, gint col, | | | |
| const G | | | |
| daColumn *attrs); | | | |
| gboolean gda_data_model_remove_column (GdaData
Model *model, gint col); | | gboolean gda_data_model_remove_column (GdaData
Model *model, gint col); | |
| | | | |
| void gda_data_model_foreach (GdaDat
aModel *model, GdaDataModelForeachFunc func, | | void gda_data_model_foreach (GdaDat
aModel *model, GdaDataModelForeachFunc func, | |
| gpointe
r user_data); | | gpointe
r user_data); | |
| | | | |
| gboolean gda_data_model_has_changed (GdaDat
aModel *model); | | gboolean gda_data_model_has_changed (GdaDat
aModel *model); | |
| gboolean gda_data_model_begin_update (GdaDat
aModel *model); | | gboolean gda_data_model_begin_update (GdaDat
aModel *model); | |
| gboolean gda_data_model_cancel_update (GdaDat
aModel *model); | | gboolean gda_data_model_cancel_update (GdaDat
aModel *model); | |
| gboolean gda_data_model_commit_update (GdaDat
aModel *model); | | gboolean gda_data_model_commit_update (GdaDat
aModel *model); | |
| | | | |
| gchar *gda_data_model_to_text_separated (GdaDat
aModel *model, const gint *cols, gint nb_cols, | | gchar *gda_data_model_to_text_separated (GdaDat
aModel *model, const gint *cols, gint nb_cols, | |
| gchar s
ep); | | gchar s
ep); | |
| gchar *gda_data_model_to_xml (GdaDat
aModel *model, const gint *cols, gint nb_cols, | | gchar *gda_data_model_to_xml (GdaDat
aModel *model, const gint *cols, gint nb_cols, | |
| const g
char *name); | | const g
char *name); | |
| xmlNodePtr gda_data_model_to_xml_node (GdaDat
aModel *model, const gint *cols, gint nb_cols, | | xmlNodePtr gda_data_model_to_xml_node (GdaDat
aModel *model, const gint *cols, gint nb_cols, | |
| const g
char *name); | | const g
char *name); | |
| gboolean gda_data_model_add_data_from_xml_node (GdaDat
aModel *model, xmlNodePtr node); | | gboolean gda_data_model_add_data_from_xml_node (GdaDat
aModel *model, xmlNodePtr node); | |
| | | | |
|
| const gchar *gda_data_model_get_command_text (GdaDat | | | |
| aModel *model); | | | |
| gboolean gda_data_model_set_command_text (GdaDat | | | |
| aModel *model, const gchar *txt); | | | |
| GdaCommandType gda_data_model_get_command_type (GdaDat | | | |
| aModel *model); | | | |
| gboolean gda_data_model_set_command_type (GdaDat | | | |
| aModel *model, GdaCommandType type); | | | |
| | | | |
| void gda_data_model_dump (GdaDat
aModel *model, FILE *to_stream); | | void gda_data_model_dump (GdaDat
aModel *model, FILE *to_stream); | |
| gchar *gda_data_model_dump_as_string (GdaDat
aModel *model); | | gchar *gda_data_model_dump_as_string (GdaDat
aModel *model); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 9 change blocks. |
| 58 lines changed or deleted | | 19 lines changed or added | |
|
| gda-row.h | | gda-row.h | |
| /* GDA library | | /* GDA library | |
| * Copyright (C) 1998 - 2005 The GNOME Foundation. | | * Copyright (C) 1998 - 2005 The GNOME Foundation. | |
| * | | * | |
| * AUTHORS: | | * AUTHORS: | |
| * Michael Lausch <michael@lausch.at> | | * Michael Lausch <michael@lausch.at> | |
|
| * Rodrigo Moya <rodrigo@gnome-db.org> | | * Rodrigo Moya <rodrigo@gnome-db.org> | |
| | | * Vivien Malerba <malerba@gnome-db.org> | |
| * | | * | |
| * This Library is free software; you can redistribute it and/or | | * This Library is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Library General Public License as | | * modify it under the terms of the GNU Library General Public License as | |
| * published by the Free Software Foundation; either version 2 of the | | * published by the Free Software Foundation; either version 2 of the | |
| * License, or (at your option) any later version. | | * License, or (at your option) any later version. | |
| * | | * | |
| * This Library is distributed in the hope that it will be useful, | | * This Library is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * Library General Public License for more details. | | * Library General Public License for more details. | |
| * | | * | |
| * You should have received a copy of the GNU Library General Public | | * You should have received a copy of the GNU Library General Public | |
| * License along with this Library; see the file COPYING.LIB. If not, | | * License along with this Library; see the file COPYING.LIB. If not, | |
| * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330
, | | * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330
, | |
| * Boston, MA 02111-1307, USA. | | * Boston, MA 02111-1307, USA. | |
| */ | | */ | |
| | | | |
| #if !defined(__gda_row_h__) | | #if !defined(__gda_row_h__) | |
| # define __gda_row_h__ | | # define __gda_row_h__ | |
| | | | |
|
| | | #include <glib-object.h> | |
| #include <libgda/gda-column.h> | | #include <libgda/gda-column.h> | |
|
| | | #include <glib/gmacros.h> | |
| #include <libgda/global-decl.h> | | #include <libgda/global-decl.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
|
| #define GDA_TYPE_ROW (gda_row_get_type()) | | #define GDA_TYPE_ROW (gda_row_get_type()) | |
| | | #define GDA_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYPE_ | |
| | | ROW, GdaRow)) | |
| | | #define GDA_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYPE_R | |
| | | OW, GdaRowClass)) | |
| | | #define GDA_IS_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GDA_TYPE_ | |
| | | ROW)) | |
| | | #define GDA_IS_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDA_TYPE | |
| | | _ROW)) | |
| | | | |
| | | typedef struct _GdaRowClass GdaRowClass; | |
| | | typedef struct _GdaRowPrivate GdaRowPrivate; | |
| | | | |
| | | struct _GdaRow { | |
| | | GObject object; | |
| | | GdaRowPrivate *priv; | |
| | | }; | |
| | | | |
| | | struct _GdaRowClass { | |
| | | GObjectClass parent_class; | |
| | | | |
| | | /* signals */ | |
| | | gboolean (* value_to_change) (GdaRow *row, gint num, const GdaValue | |
| | | *current, const GdaValue *proposed); | |
| | | void (* value_changed) (GdaRow *row, gint num, const GdaValue | |
| | | *old_value, const GdaValue *new_value); | |
| | | }; | |
| | | | |
| | | GType gda_row_get_type (void); | |
| | | | |
|
| GType gda_row_get_type (void); | | | |
| GdaRow *gda_row_new (GdaDataModel *model, gint count); | | GdaRow *gda_row_new (GdaDataModel *model, gint count); | |
| GdaRow *gda_row_new_from_list (GdaDataModel *model, const GList *val
ues); | | GdaRow *gda_row_new_from_list (GdaDataModel *model, const GList *val
ues); | |
| GdaRow *gda_row_copy (GdaRow *row); | | GdaRow *gda_row_copy (GdaRow *row); | |
|
| void gda_row_free (GdaRow *row); | | | |
| | | void gda_row_set_model (GdaRow *row, GdaDataModel *model); | |
| GdaDataModel *gda_row_get_model (GdaRow *row); | | GdaDataModel *gda_row_get_model (GdaRow *row); | |
|
| | | | |
| | | gint gda_row_get_length (GdaRow *row); | |
| | | | |
| gint gda_row_get_number (GdaRow *row); | | gint gda_row_get_number (GdaRow *row); | |
| void gda_row_set_number (GdaRow *row, gint number); | | void gda_row_set_number (GdaRow *row, gint number); | |
|
| | | | |
| const gchar *gda_row_get_id (GdaRow *row); | | const gchar *gda_row_get_id (GdaRow *row); | |
| void gda_row_set_id (GdaRow *row, const gchar *id); | | void gda_row_set_id (GdaRow *row, const gchar *id); | |
|
| | | | |
| GdaValue *gda_row_get_value (GdaRow *row, gint num); | | GdaValue *gda_row_get_value (GdaRow *row, gint num); | |
|
| gint gda_row_get_length (GdaRow *row); | | gboolean gda_row_set_value (GdaRow *row, gint num, const GdaValue
*value); | |
| | | | |
| void gda_row_set_is_default (GdaRow *row, gint num, gboolean is_de
fault); | | void gda_row_set_is_default (GdaRow *row, gint num, gboolean is_de
fault); | |
| gboolean gda_row_get_is_default (GdaRow *row, gint num); | | gboolean gda_row_get_is_default (GdaRow *row, gint num); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 10 change blocks. |
| 5 lines changed or deleted | | 41 lines changed or added | |
|
| gda-server-provider.h | | gda-server-provider.h | |
| | | | |
| skipping to change at line 138 | | skipping to change at line 138 | |
| | | | |
| gboolean (* supports) (GdaServerProvider *provider, | | gboolean (* supports) (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
| GdaConnectionFeature feature); | | GdaConnectionFeature feature); | |
| | | | |
| GdaDataModel *(* get_schema) (GdaServerProvider *provider, | | GdaDataModel *(* get_schema) (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
| GdaConnectionSchema schema, | | GdaConnectionSchema schema, | |
| GdaParameterList *params); | | GdaParameterList *params); | |
| | | | |
|
| gboolean (* create_blob) (GdaServerProvider *provider, | | GdaBlob *(* create_blob) (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc); | |
| GdaBlob *blob); | | | |
| | | GdaBlob *(* fetch_blob) (GdaServerProvider *provider, | |
| | | GdaConnection *cnc, const gchar *sql_i | |
| | | d); | |
| | | | |
| gchar *(* value_to_sql_string) (GdaServerProvider *provider, | | gchar *(* value_to_sql_string) (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
| GdaValue *from); | | GdaValue *from); | |
| | | | |
| }; | | }; | |
| | | | |
| GType gda_server_provider_get_type (void); | | GType gda_server_provider_get_type (void); | |
| const gchar *gda_server_provider_get_version (GdaServerProvider *provider)
; | | const gchar *gda_server_provider_get_version (GdaServerProvider *provider)
; | |
| gboolean gda_server_provider_open_connection (GdaServerProvider *provi
der, | | gboolean gda_server_provider_open_connection (GdaServerProvider *provi
der, | |
| | | | |
| skipping to change at line 222 | | skipping to change at line 224 | |
| | | | |
| gboolean gda_server_provider_supports (GdaServerProvider *provider, | | gboolean gda_server_provider_supports (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
| GdaConnectionFeature feature); | | GdaConnectionFeature feature); | |
| | | | |
| GdaDataModel *gda_server_provider_get_schema (GdaServerProvider *provider, | | GdaDataModel *gda_server_provider_get_schema (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
| GdaConnectionSchema schema, | | GdaConnectionSchema schema, | |
| GdaParameterList *params); | | GdaParameterList *params); | |
| | | | |
|
| gboolean gda_server_provider_create_blob (GdaServerProvider *provider, | | GdaBlob *gda_server_provider_create_blob (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc); | |
| GdaBlob *blob); | | GdaBlob *gda_server_provider_fetch_blob_by_id (GdaServerProvider *prov | |
| | | ider, | |
| | | GdaConnection *cnc, cons | |
| | | t gchar *sql_id); | |
| | | | |
| gchar *gda_server_provider_value_to_sql_string (GdaServerProvider *p
rovider, | | gchar *gda_server_provider_value_to_sql_string (GdaServerProvider *p
rovider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
| GdaValue *from); | | GdaValue *from); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 2 change blocks. |
| 6 lines changed or deleted | | 12 lines changed or added | |
|
| gda-value.h | | gda-value.h | |
| | | | |
| skipping to change at line 46 | | skipping to change at line 46 | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| #define TIMEZONE_INVALID (2*12*60*60) | | #define TIMEZONE_INVALID (2*12*60*60) | |
| | | | |
| /* Definition of the GType's values used in GdaValue*/ | | /* Definition of the GType's values used in GdaValue*/ | |
| | | | |
| #define G_VALUE_TYPE_NULL G_TYPE_NONE | | #define G_VALUE_TYPE_NULL G_TYPE_NONE | |
| #define G_VALUE_TYPE_BIGINT G_TYPE_INT64 | | #define G_VALUE_TYPE_BIGINT G_TYPE_INT64 | |
| #define G_VALUE_TYPE_BIGUINT G_TYPE_UINT64 | | #define G_VALUE_TYPE_BIGUINT G_TYPE_UINT64 | |
| #define G_VALUE_TYPE_BINARY (gda_binary_get_type()) | | #define G_VALUE_TYPE_BINARY (gda_binary_get_type()) | |
|
| // G_VALUE_TYPE_BLOB to be defined in gda-blob.h | | #define G_VALUE_TYPE_BLOB (gda_blob_get_type()) | |
| #define G_VALUE_TYPE_BOOLEAN G_TYPE_BOOLEAN | | #define G_VALUE_TYPE_BOOLEAN G_TYPE_BOOLEAN | |
| #define G_VALUE_TYPE_DATE (gda_date_get_type()) | | #define G_VALUE_TYPE_DATE (gda_date_get_type()) | |
| #define G_VALUE_TYPE_DOUBLE G_TYPE_DOUBLE | | #define G_VALUE_TYPE_DOUBLE G_TYPE_DOUBLE | |
| #define G_VALUE_TYPE_GEOMETRIC_POINT (gda_geometricpoint_get_type()) | | #define G_VALUE_TYPE_GEOMETRIC_POINT (gda_geometricpoint_get_type()) | |
| #define G_VALUE_TYPE_GOBJECT G_TYPE_OBJECT | | #define G_VALUE_TYPE_GOBJECT G_TYPE_OBJECT | |
| #define G_VALUE_TYPE_INTEGER G_TYPE_INT | | #define G_VALUE_TYPE_INTEGER G_TYPE_INT | |
| #define G_VALUE_TYPE_UINTEGER G_TYPE_UINT | | #define G_VALUE_TYPE_UINTEGER G_TYPE_UINT | |
| #define G_VALUE_TYPE_LIST (gda_value_list_get_type()) | | #define G_VALUE_TYPE_LIST (gda_value_list_get_type()) | |
| #define G_VALUE_TYPE_MONEY (gda_money_get_type()) | | #define G_VALUE_TYPE_MONEY (gda_money_get_type()) | |
| #define G_VALUE_TYPE_NUMERIC (gda_numeric_get_type()) | | #define G_VALUE_TYPE_NUMERIC (gda_numeric_get_type()) | |
| | | | |
| skipping to change at line 137 | | skipping to change at line 137 | |
| gushort month; | | gushort month; | |
| gushort day; | | gushort day; | |
| gushort hour; | | gushort hour; | |
| gushort minute; | | gushort minute; | |
| gushort second; | | gushort second; | |
| gulong fraction; | | gulong fraction; | |
| glong timezone; /* # of seconds to the east UTC */ | | glong timezone; /* # of seconds to the east UTC */ | |
| } GdaTimestamp; | | } GdaTimestamp; | |
| | | | |
| typedef struct { | | typedef struct { | |
|
| gpointer data; | | guchar *data; | |
| glong binary_length; | | glong binary_length; | |
| } GdaBinary; | | } GdaBinary; | |
| | | | |
| typedef GList GdaValueList; | | typedef GList GdaValueList; | |
| | | | |
| typedef GValue GdaValue; | | typedef GValue GdaValue; | |
| | | | |
| #define GDA_TYPE_VALUE G_TYPE_VALUE | | #define GDA_TYPE_VALUE G_TYPE_VALUE | |
| #define GDA_VALUE_TYPE(value) (gda_value_get_type(value)) | | #define GDA_VALUE_TYPE(value) (gda_value_get_type(value)) | |
| #define gda_value_isa(value, type) (gda_value_get_type (value) == type) | | #define gda_value_isa(value, type) (gda_value_get_type (value) == type) | |
| | | | |
| GdaValueType gda_value_get_type(GdaValue *value); | | GdaValueType gda_value_get_type(GdaValue *value); | |
|
| | | GType gda_value_convert_gdatype_to_gtype (GdaVa | |
| | | lueType type); | |
| | | GdaValueType gda_value_convert_gtype_to_gdatype (GType | |
| | | type); | |
| | | | |
| GdaValue *gda_value_new_null (void); | | GdaValue *gda_value_new_null (void); | |
| GdaValue *gda_value_new_bigint (gint64 val); | | GdaValue *gda_value_new_bigint (gint64 val); | |
| GdaValue *gda_value_new_biguint(guint64 val); | | GdaValue *gda_value_new_biguint(guint64 val); | |
|
| GdaValue *gda_value_new_binary (gconstpointer val,
glong size); | | GdaValue *gda_value_new_binary (guchar *val, glong
size); | |
| GdaValue *gda_value_new_blob (const GdaBlob *val); | | GdaValue *gda_value_new_blob (const GdaBlob *val); | |
| GdaValue *gda_value_new_boolean (gboolean val); | | GdaValue *gda_value_new_boolean (gboolean val); | |
| GdaValue *gda_value_new_date (const GdaDate *val); | | GdaValue *gda_value_new_date (const GdaDate *val); | |
| GdaValue *gda_value_new_double (gdouble val); | | GdaValue *gda_value_new_double (gdouble val); | |
| GdaValue *gda_value_new_geometric_point (const GdaG
eometricPoint *val); | | GdaValue *gda_value_new_geometric_point (const GdaG
eometricPoint *val); | |
| GdaValue *gda_value_new_gobject (const GObject *val
); | | GdaValue *gda_value_new_gobject (const GObject *val
); | |
| GdaValue *gda_value_new_integer (gint val); | | GdaValue *gda_value_new_integer (gint val); | |
| GdaValue *gda_value_new_list (const GdaValueList *v
al); | | GdaValue *gda_value_new_list (const GdaValueList *v
al); | |
| GdaValue *gda_value_new_money (const GdaMoney *val)
; | | GdaValue *gda_value_new_money (const GdaMoney *val)
; | |
| GdaValue *gda_value_new_numeric (const GdaNumeric *
val); | | GdaValue *gda_value_new_numeric (const GdaNumeric *
val); | |
| | | | |
| skipping to change at line 191 | | skipping to change at line 193 | |
| void gda_value_reset_with_type (GdaValue *valu
e, GdaValueType type); | | void gda_value_reset_with_type (GdaValue *valu
e, GdaValueType type); | |
| | | | |
| gboolean gda_value_is_null (GdaValue *value); | | gboolean gda_value_is_null (GdaValue *value); | |
| gboolean gda_value_is_number (GdaValue *value); | | gboolean gda_value_is_number (GdaValue *value); | |
| GdaValue *gda_value_copy (GdaValue *value); | | GdaValue *gda_value_copy (GdaValue *value); | |
| | | | |
| gint64 gda_value_get_bigint (GdaValue *value); | | gint64 gda_value_get_bigint (GdaValue *value); | |
| void gda_value_set_bigint (GdaValue *value, gi
nt64 val); | | void gda_value_set_bigint (GdaValue *value, gi
nt64 val); | |
| guint64 gda_value_get_biguint (GdaValue *value); | | guint64 gda_value_get_biguint (GdaValue *value); | |
| void gda_value_set_biguint (GdaValue *value, g
uint64 val); | | void gda_value_set_biguint (GdaValue *value, g
uint64 val); | |
|
| G_CONST_RETURN GdaBinary *gda_value_get_binary (GdaValue *value, gl | | G_CONST_RETURN GdaBinary *gda_value_get_binary (GdaValue *value); | |
| ong *size); | | void gda_value_set_binary (GdaValue *value, co | |
| void gda_value_set_binary (GdaValue *value, gc | | nst GdaBinary *binary); | |
| onstpointer val, glong size); | | | |
| G_CONST_RETURN GdaBlob *gda_value_get_blob (GdaValue *value); | | G_CONST_RETURN GdaBlob *gda_value_get_blob (GdaValue *value); | |
| void gda_value_set_blob (GdaValue *value, cons
t GdaBlob *val); | | void gda_value_set_blob (GdaValue *value, cons
t GdaBlob *val); | |
| gboolean gda_value_get_boolean (GdaValue *value); | | gboolean gda_value_get_boolean (GdaValue *value); | |
| void gda_value_set_boolean (GdaValue *value, g
boolean val); | | void gda_value_set_boolean (GdaValue *value, g
boolean val); | |
| G_CONST_RETURN GdaDate *gda_value_get_date (GdaValue *value); | | G_CONST_RETURN GdaDate *gda_value_get_date (GdaValue *value); | |
| void gda_value_set_date (GdaValue *value, cons
t GdaDate *val); | | void gda_value_set_date (GdaValue *value, cons
t GdaDate *val); | |
| gdouble gda_value_get_double (GdaValue *value); | | gdouble gda_value_get_double (GdaValue *value); | |
| void gda_value_set_double (GdaValue *value, gd
ouble val); | | void gda_value_set_double (GdaValue *value, gd
ouble val); | |
| G_CONST_RETURN GdaGeometricPoint *gda_value_get_geometric_point (GdaValue *
value); | | G_CONST_RETURN GdaGeometricPoint *gda_value_get_geometric_point (GdaValue *
value); | |
| void gda_value_set_geometric_point (GdaValue *
value, const GdaGeometricPoint *val); | | void gda_value_set_geometric_point (GdaValue *
value, const GdaGeometricPoint *val); | |
| | | | |
| skipping to change at line 235 | | skipping to change at line 237 | |
| void gda_value_set_timestamp (GdaValue *value,
const GdaTimestamp *val); | | void gda_value_set_timestamp (GdaValue *value,
const GdaTimestamp *val); | |
| gchar gda_value_get_tinyint (GdaValue *value); | | gchar gda_value_get_tinyint (GdaValue *value); | |
| void gda_value_set_tinyint (GdaValue *value, g
char val); | | void gda_value_set_tinyint (GdaValue *value, g
char val); | |
| guchar gda_value_get_tinyuint (GdaValue *value); | | guchar gda_value_get_tinyuint (GdaValue *value); | |
| void gda_value_set_tinyuint (GdaValue *value,
guchar val); | | void gda_value_set_tinyuint (GdaValue *value,
guchar val); | |
| guint gda_value_get_uinteger (GdaValue *value); | | guint gda_value_get_uinteger (GdaValue *value); | |
| void gda_value_set_uinteger (GdaValue *value,
guint val); | | void gda_value_set_uinteger (GdaValue *value,
guint val); | |
| void gda_value_set_gdatype (GValue *value, Gda
ValueType val); | | void gda_value_set_gdatype (GValue *value, Gda
ValueType val); | |
| GdaValueType gda_value_get_gdatype (GValue *value); | | GdaValueType gda_value_get_gdatype (GValue *value); | |
| | | | |
|
| void gda_value_set_type (GdaValue *value, GTyp
e type); | | | |
| gboolean gda_value_set_from_string (GdaValue *valu
e, | | gboolean gda_value_set_from_string (GdaValue *valu
e, | |
|
| | | const gchar *as | |
| const gchar *as_string, | | _string, | |
| | | GdaValueType ty | |
| GdaValueType type); | | pe); | |
| gboolean gda_value_set_from_value (GdaValue *value
, const GdaValue *from); | | gboolean gda_value_set_from_value (GdaValue *value
, const GdaValue *from); | |
| | | | |
| gint gda_value_compare (GdaValue *value1, GdaV
alue *value2); | | gint gda_value_compare (GdaValue *value1, GdaV
alue *value2); | |
| gint gda_value_compare_ext (GdaValue *value1,
GdaValue *value2); | | gint gda_value_compare_ext (GdaValue *value1,
GdaValue *value2); | |
| gchar *gda_value_stringify (GdaValue *value); | | gchar *gda_value_stringify (GdaValue *value); | |
| xmlNodePtr gda_value_to_xml (GdaValue *value); | | xmlNodePtr gda_value_to_xml (GdaValue *value); | |
| | | | |
| /* Custom data types */ | | /* Custom data types */ | |
| GType gda_money_get_type (void); | | GType gda_money_get_type (void); | |
| gpointer gda_money_copy (gpointer boxed); | | gpointer gda_money_copy (gpointer boxed); | |
| | | | |
End of changes. 7 change blocks. |
| 13 lines changed or deleted | | 15 lines changed or added | |
|
| libgda.h | | libgda.h | |
| | | | |
| skipping to change at line 46 | | skipping to change at line 46 | |
| #include <libgda/gda-data-model-list.h> | | #include <libgda/gda-data-model-list.h> | |
| #include <libgda/gda-connection-event.h> | | #include <libgda/gda-connection-event.h> | |
| #include <libgda/gda-column.h> | | #include <libgda/gda-column.h> | |
| #include <libgda/gda-column-index.h> | | #include <libgda/gda-column-index.h> | |
| #include <libgda/gda-data-model-index.h> | | #include <libgda/gda-data-model-index.h> | |
| #include <libgda/gda-log.h> | | #include <libgda/gda-log.h> | |
| #include <libgda/gda-parameter.h> | | #include <libgda/gda-parameter.h> | |
| #include <libgda/gda-quark-list.h> | | #include <libgda/gda-quark-list.h> | |
| #include <libgda/gda-row.h> | | #include <libgda/gda-row.h> | |
| #include <libgda/gda-select.h> | | #include <libgda/gda-select.h> | |
|
| #include <libgda/gda-table.h> | | | |
| #include <libgda/gda-transaction.h> | | #include <libgda/gda-transaction.h> | |
| #include <libgda/gda-util.h> | | #include <libgda/gda-util.h> | |
| #include <libgda/gda-value.h> | | #include <libgda/gda-value.h> | |
|
| #include <libgda/gda-xml-connection.h> | | | |
| #include <libgda/gda-xml-document.h> | | | |
| #include <libgda/gda-xml-database.h> | | | |
| #include <libgda/gda-enum-types.h> | | #include <libgda/gda-enum-types.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| void gda_init (const gchar *app_id, const gchar *version, gint nargs, gchar
*args[]); | | void gda_init (const gchar *app_id, const gchar *version, gint nargs, gchar
*args[]); | |
| | | | |
| typedef void (* GdaInitFunc) (gpointer user_data); | | typedef void (* GdaInitFunc) (gpointer user_data); | |
| | | | |
| void gda_main_run (GdaInitFunc init_func, gpointer user_data); | | void gda_main_run (GdaInitFunc init_func, gpointer user_data); | |
| void gda_main_quit (void); | | void gda_main_quit (void); | |
| | | | |
End of changes. 2 change blocks. |
| 4 lines changed or deleted | | 0 lines changed or added | |
|