| gda-client.h | | gda-client.h | |
| | | | |
| skipping to change at line 49 | | skipping to change at line 49 | |
| | | | |
| /* events usually notified by the library itself, and which the prov
iders | | /* events usually notified by the library itself, and which the prov
iders | |
| should notify on very special cases (like a transaction being sta
rted | | should notify on very special cases (like a transaction being sta
rted | |
| or committed via a BEGIN/COMMIT command directly sent to the | | or committed via a BEGIN/COMMIT command directly sent to the | |
| execute_command method on the provider */ | | execute_command method on the provider */ | |
| GDA_CLIENT_EVENT_ERROR, /* params: "error" */ | | GDA_CLIENT_EVENT_ERROR, /* params: "error" */ | |
| GDA_CLIENT_EVENT_CONNECTION_OPENED, /* params: */ | | GDA_CLIENT_EVENT_CONNECTION_OPENED, /* params: */ | |
| GDA_CLIENT_EVENT_CONNECTION_CLOSED, /* params: */ | | GDA_CLIENT_EVENT_CONNECTION_CLOSED, /* params: */ | |
| GDA_CLIENT_EVENT_TRANSACTION_STARTED, /* params: "transaction" */ | | GDA_CLIENT_EVENT_TRANSACTION_STARTED, /* params: "transaction" */ | |
| GDA_CLIENT_EVENT_TRANSACTION_COMMITTED, /* params: "transaction" */ | | GDA_CLIENT_EVENT_TRANSACTION_COMMITTED, /* params: "transaction" */ | |
|
| GDA_CLIENT_EVENT_TRANSACTION_CANCELLED /* params: "transaction" */ | | GDA_CLIENT_EVENT_TRANSACTION_CANCELLED, /* params: "transaction" */ | |
| } GdaClientEvent; | | } GdaClientEvent; | |
| | | | |
| typedef struct _GdaClientClass GdaClientClass; | | typedef struct _GdaClientClass GdaClientClass; | |
| typedef struct _GdaClientPrivate GdaClientPrivate; | | typedef struct _GdaClientPrivate GdaClientPrivate; | |
| | | | |
| struct _GdaClient { | | struct _GdaClient { | |
| GObject object; | | GObject object; | |
| GdaClientPrivate *priv; | | GdaClientPrivate *priv; | |
| }; | | }; | |
| | | | |
| struct _GdaClientClass { | | struct _GdaClientClass { | |
| GObjectClass parent_class; | | GObjectClass parent_class; | |
| | | | |
| /* signals */ | | /* signals */ | |
| void (* event_notification) (GdaClient *client, | | void (* event_notification) (GdaClient *client, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
| GdaClientEvent event, | | GdaClientEvent event, | |
| GdaParameterList *params); | | GdaParameterList *params); | |
| }; | | }; | |
| | | | |
|
| GType gda_client_get_type (void); | | GType gda_client_get_type (void); | |
| GdaClient *gda_client_new (void); | | GdaClient *gda_client_new (void); | |
| | | | |
|
| GdaConnection *gda_client_open_connection (GdaClient *client, | | GdaConnection *gda_client_open_connection (GdaClient *cl | |
| const gchar *dsn, | | ient, | |
| const gchar *username, | | const gchar *d | |
| const gchar *password, | | sn, | |
| GdaConnectionOptions options); | | const gchar *u | |
| GdaConnection *gda_client_open_connection_from_string (GdaClient *client, | | sername, | |
| const gchar *provider | | const gchar *p | |
| _id, | | assword, | |
| const gchar *cnc_stri | | GdaConnectionO | |
| ng, | | ptions options); | |
| GdaConnectionOptions | | GdaConnection *gda_client_open_connection_from_string (GdaClient *cl | |
| options); | | ient, | |
| const GList *gda_client_get_connection_list (GdaClient *client); | | const gchar *p | |
| GdaConnection *gda_client_find_connection (GdaClient *client, | | rovider_id, | |
| const gchar *dsn, | | const gchar *c | |
| const gchar *username, | | nc_string, | |
| const gchar *password); | | GdaConnectionO | |
| void gda_client_close_all_connections (GdaClient *client); | | ptions options); | |
| | | const GList *gda_client_get_connection_list (GdaClient *cl | |
| | | ient); | |
| | | GdaConnection *gda_client_find_connection (GdaClient *cl | |
| | | ient, | |
| | | const gchar *d | |
| | | sn, | |
| | | const gchar *u | |
| | | sername, | |
| | | const gchar *p | |
| | | assword); | |
| | | void gda_client_close_all_connections (GdaClient *cl | |
| | | ient); | |
| | | | |
|
| void gda_client_notify_event (GdaClient *client, GdaConnection *c | | void gda_client_notify_event (GdaClient *cl | |
| nc, | | ient, GdaConnection *cnc, | |
| GdaClientEvent event, GdaParameterLi | | GdaClientEvent | |
| st *params); | | event, GdaParameterList *params); | |
| void gda_client_notify_error_event (GdaClient *client, GdaConnect | | void gda_client_notify_error_event (GdaClient *cl | |
| ion *cnc, GdaError *error); | | ient, GdaConnection *cnc, GdaError *error); | |
| void gda_client_notify_connection_opened_event (GdaClient *client | | void gda_client_notify_connection_opened_event (GdaClient *cl | |
| , GdaConnection *cnc); | | ient, GdaConnection *cnc); | |
| void gda_client_notify_connection_closed_event (GdaClient *client | | void gda_client_notify_connection_closed_event (GdaClient *cl | |
| , GdaConnection *cnc); | | ient, GdaConnection *cnc); | |
| void gda_client_notify_transaction_started_event (GdaClient *clie | | void gda_client_notify_transaction_started_event (GdaClient *cl | |
| nt, | | ient, | |
| GdaConnection *c | | GdaConnection | |
| nc, | | *cnc, | |
| GdaTransaction * | | GdaTransaction | |
| xaction); | | *xaction); | |
| void gda_client_notify_transaction_committed_event (GdaClient *cl
ient, | | void gda_client_notify_transaction_committed_event (GdaClient *cl
ient, | |
| GdaConnection
*cnc, | | GdaConnection
*cnc, | |
| GdaTransaction
*xaction); | | GdaTransaction
*xaction); | |
| void gda_client_notify_transaction_cancelled_event (GdaClient *cl
ient, | | void gda_client_notify_transaction_cancelled_event (GdaClient *cl
ient, | |
| GdaConnection
*cnc, | | GdaConnection
*cnc, | |
| GdaTransaction
*xaction); | | GdaTransaction
*xaction); | |
| | | | |
| /* | | /* | |
|
| | | * General provider information | |
| | | */ | |
| | | gchar *gda_client_get_dsn_specs (GdaClient *cl | |
| | | ient, const gchar *provider); | |
| | | | |
| | | /* | |
| | | * Database creation functions | |
| | | */ | |
| | | gchar *gda_client_get_specs_to_create_database (GdaClient *cl | |
| | | ient, const gchar *provider); | |
| | | gboolean gda_client_create_database (GdaClient *cl | |
| | | ient, const gchar *provider, | |
| | | GdaParameterLi | |
| | | st *params, GError **error); | |
| | | | |
| | | /* | |
| * Connection stack functions | | * Connection stack functions | |
| */ | | */ | |
| | | | |
|
| gboolean gda_client_begin_transaction (GdaClient *client, GdaTransact | | gboolean gda_client_begin_transaction (GdaClient *cl | |
| ion *xaction); | | ient, GdaTransaction *xaction); | |
| gboolean gda_client_commit_transaction (GdaClient *client, GdaTransac | | gboolean gda_client_commit_transaction (GdaClient *cl | |
| tion *xaction); | | ient, GdaTransaction *xaction); | |
| gboolean gda_client_rollback_transaction (GdaClient *client, GdaTrans | | gboolean gda_client_rollback_transaction (GdaClient *cl | |
| action *xaction); | | ient, GdaTransaction *xaction); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 6 change blocks. |
| 43 lines changed or deleted | | 71 lines changed or added | |
|
| gda-config.h | | gda-config.h | |
| | | | |
| skipping to change at line 36 | | skipping to change at line 36 | |
| #include <glib/gmacros.h> | | #include <glib/gmacros.h> | |
| #include <libgda/gda-data-model.h> | | #include <libgda/gda-data-model.h> | |
| #include <libgda/gda-parameter.h> | | #include <libgda/gda-parameter.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| /* | | /* | |
| * Basic configuration access | | * Basic configuration access | |
| */ | | */ | |
| | | | |
|
| gchar *gda_config_get_string (const gchar *path); | | gchar *gda_config_get_string (const gchar *path); | |
| gint gda_config_get_int (const gchar *path); | | gint gda_config_get_int (const gchar *path); | |
| gdouble gda_config_get_float (const gchar *path); | | gdouble gda_config_get_float (const gchar *path); | |
| gboolean gda_config_get_boolean (const gchar *path); | | gboolean gda_config_get_boolean (const gchar *path); | |
| void gda_config_set_string (const gchar *path, const gchar *new_value); | | gboolean gda_config_set_string (const gchar *path, const gchar *new_val | |
| void gda_config_set_int (const gchar *path, gint new_value); | | ue); | |
| void gda_config_set_float (const gchar *path, gdouble new_value); | | gboolean gda_config_set_int (const gchar *path, gint new_value); | |
| void gda_config_set_boolean (const gchar *path, gboolean new_value); | | gboolean gda_config_set_float (const gchar *path, gdouble new_value); | |
| | | gboolean gda_config_set_boolean (const gchar *path, gboolean new_value); | |
| | | | |
| void gda_config_remove_section (const gchar *path); | | void gda_config_remove_section (const gchar *path); | |
|
| void gda_config_remove_key (const gchar *path); | | void gda_config_remove_key (const gchar *path); | |
| gboolean gda_config_has_section (const gchar *path); | | gboolean gda_config_has_section (const gchar *path); | |
| gboolean gda_config_has_key (const gchar *path); | | gboolean gda_config_has_key (const gchar *path); | |
| GList *gda_config_list_sections (const gchar *path); | | GList *gda_config_list_sections (const gchar *path); | |
| GList *gda_config_list_keys (const gchar *path); | | GList *gda_config_list_keys (const gchar *path); | |
| gchar *gda_config_get_type (const gchar *path); | | gchar *gda_config_get_type (const gchar *path); | |
| | | | |
|
| void gda_config_free_list (GList *list); | | void gda_config_free_list (GList *list); | |
| | | | |
| typedef void (* GdaConfigListenerFunc) (const gchar *path, gpointer user_da
ta); | | typedef void (* GdaConfigListenerFunc) (const gchar *path, gpointer user_da
ta); | |
| | | | |
|
| guint gda_config_add_listener (const gchar *path, | | guint gda_config_add_listener (const gchar *path, GdaConfigListenerFun | |
| GdaConfigListenerFunc func, | | c func, | |
| gpointer user_data); | | gpointer user_data); | |
| void gda_config_remove_listener (guint id); | | void gda_config_remove_listener (guint id); | |
| | | | |
| /* | | /* | |
| * Providers configuration | | * Providers configuration | |
| */ | | */ | |
| | | | |
| typedef struct _GdaProviderInfo GdaProviderInfo; | | typedef struct _GdaProviderInfo GdaProviderInfo; | |
| | | | |
| typedef struct { | | typedef struct { | |
|
| char *name; | | char *name; | |
| char *short_description; | | char *short_description; | |
| char *long_description; | | char *long_description; | |
| GdaValueType type; | | GdaValueType type; | |
| } GdaProviderParameterInfo; | | } GdaProviderParameterInfo; | |
| | | | |
| #define GDA_TYPE_PROVIDER_PARAMETER_INFO (gda_provider_parameter_info_get_t
ype ()) | | #define GDA_TYPE_PROVIDER_PARAMETER_INFO (gda_provider_parameter_info_get_t
ype ()) | |
| | | | |
| GType gda_provider_parameter_info_get_type (void); | | GType gda_provider_parameter_info_get_type (void); | |
| GdaProviderParameterInfo *gda_provider_parameter_info_new_full (const gchar
*name, | | GdaProviderParameterInfo *gda_provider_parameter_info_new_full (const gchar
*name, | |
| const gchar
*short_description, | | const gchar
*short_description, | |
| const gchar
*long_description, | | const gchar
*long_description, | |
| GdaValueType
type); | | GdaValueType
type); | |
|
| GdaProviderParameterInfo *gda_provider_parameter_info_copy (GdaProviderPara | | GdaProviderParameterInfo *gda_provider_parameter_info_copy (GdaProvider | |
| meterInfo *param_info); | | ParameterInfo *param_info); | |
| void gda_provider_parameter_info_free (GdaProviderPara | | void gda_provider_parameter_info_free (GdaProvider | |
| meterInfo *param_info); | | ParameterInfo *param_info); | |
| | | | |
|
| | | /* | |
| | | * REM about the @gda_params and @dsn_spec fields: | |
| | | * | |
| | | * The @gda_params lists all the parameters required to create a DSN, and i | |
| | | s historically the | |
| | | * way to create a DSN. However the @dsn_spec field has been introduced to | |
| | | produce a more | |
| | | * detailled spec on what is required to create a DSN, but is not yet imple | |
| | | mented by all the | |
| | | * providers. | |
| | | * | |
| | | * When both fields are present, they are guaranted to list the _same_ para | |
| | | meters, using | |
| | | * different representations. | |
| | | */ | |
| struct _GdaProviderInfo { | | struct _GdaProviderInfo { | |
| gchar *id; | | gchar *id; | |
| gchar *location; | | gchar *location; | |
| gchar *description; | | gchar *description; | |
|
| GList *gda_params; /* A list of GdaProviderParameterInfo pointers */ | | GList *gda_params; /* A list of GdaProviderParameterInfo pointers to | |
| | | create a DSN */ | |
| | | gchar *dsn_spec; /* XML string with all the parameters required to c | |
| | | reate a DSN */ | |
| }; | | }; | |
| | | | |
| #define GDA_TYPE_PROVIDER_INFO (gda_provider_info_get_type ()) | | #define GDA_TYPE_PROVIDER_INFO (gda_provider_info_get_type ()) | |
| | | | |
|
| GType gda_provider_info_get_type (void); | | GType gda_provider_info_get_type (void); | |
| GdaProviderInfo* gda_provider_info_copy (GdaProviderInfo *src); | | GdaProviderInfo* gda_provider_info_copy (GdaProviderInfo *src); | |
| void gda_provider_info_free (GdaProviderInfo *provider_info); | | void gda_provider_info_free (GdaProviderInfo *provider | |
| | | _info); | |
| | | | |
|
| GList *gda_config_get_provider_list (void); | | GList *gda_config_get_provider_list (void); | |
| void gda_config_free_provider_list (GList *list); | | void gda_config_free_provider_list (GList *list); | |
| GdaProviderInfo *gda_config_get_provider_by_name (const gchar *name); | | GdaProviderInfo *gda_config_get_provider_by_name (const gchar *name); | |
|
| GdaDataModel *gda_config_get_provider_model (void); | | GdaDataModel *gda_config_get_provider_model (void); | |
| | | | |
| /* | | /* | |
| * Data sources configuration | | * Data sources configuration | |
| */ | | */ | |
| | | | |
| typedef struct _GdaDataSourceInfo GdaDataSourceInfo; | | typedef struct _GdaDataSourceInfo GdaDataSourceInfo; | |
| | | | |
| struct _GdaDataSourceInfo { | | struct _GdaDataSourceInfo { | |
|
| gchar *name; | | gchar *name; | |
| gchar *provider; | | gchar *provider; | |
| gchar *cnc_string; | | gchar *cnc_string; | |
| gchar *description; | | gchar *description; | |
| gchar *username; | | gchar *username; | |
| gchar *password; | | gchar *password; | |
| | | gboolean is_global; | |
| }; | | }; | |
| | | | |
| #define GDA_TYPE_DATA_SOURCE_INFO (gda_data_source_info_get_type ()) | | #define GDA_TYPE_DATA_SOURCE_INFO (gda_data_source_info_get_type ()) | |
| | | | |
|
| GType gda_data_source_info_get_type (void); | | GType gda_data_source_info_get_type (void); | |
| GdaDataSourceInfo *gda_config_copy_data_source_info (GdaDataSourceInfo *src | | GdaDataSourceInfo *gda_data_source_info_copy (GdaDataSourceInfo *src | |
| ); /* TODO: Rename to gda_data_source_info_copy */ | | ); | |
| void gda_config_free_data_source_info (GdaDataSourceInfo *inf | | gboolean gda_data_source_info_equal (GdaDataSourceInfo *inf | |
| o); /* TODO: Rename to gda_data_source_info_free */ | | o1, GdaDataSourceInfo *info2); | |
| | | GdaDataSourceInfo *gda_config_find_data_source (const gchar *name); | |
| | | | |
|
| GList *gda_config_get_data_source_list (void); | | void gda_data_source_info_free (GdaDataSourceInfo *inf | |
| GdaDataSourceInfo *gda_config_find_data_source (const gchar *name); | | o); | |
| | | | |
|
| | | GList *gda_config_get_data_source_list (void); | |
| void gda_config_free_data_source_list (GList *list); | | void gda_config_free_data_source_list (GList *list); | |
| | | | |
| GdaDataModel *gda_config_get_data_source_model (void); | | GdaDataModel *gda_config_get_data_source_model (void); | |
|
| void gda_config_save_data_source (const gchar *name, | | gboolean gda_config_can_modify_global_config (); | |
| const gchar *provider, | | gboolean gda_config_save_data_source (const gchar *name, | |
| const gchar *cnc_string, | | const gchar *provider, | |
| const gchar *description, | | const gchar *cnc_string | |
| const gchar *username, | | , | |
| const gchar *password); | | const gchar *descriptio | |
| void gda_config_save_data_source_info (GdaDataSourceInfo *dsn | | n, | |
| _info); | | const gchar *username, | |
| void gda_config_remove_data_source (const gchar *name); | | const gchar *password, | |
| | | gboolean is_global); | |
| | | gboolean gda_config_save_data_source_info (GdaDataSourceInfo *dsn | |
| | | _info); | |
| | | void gda_config_remove_data_source (const gchar *name); | |
| | | | |
| /* | | /* | |
| * GDA configuration sections/keys | | * GDA configuration sections/keys | |
| */ | | */ | |
| #define GDA_CONFIG_BASE "/apps/libgda" | | #define GDA_CONFIG_BASE "/apps/libgda" | |
| #define GDA_CONFIG_SECTION_DATASOURCES "/apps/libgda/Datasources" | | #define GDA_CONFIG_SECTION_DATASOURCES "/apps/libgda/Datasources" | |
| #define GDA_CONFIG_SECTION_LAST_CONNECTIONS "/apps/libgda/LastConnections" | | #define GDA_CONFIG_SECTION_LAST_CONNECTIONS "/apps/libgda/LastConnections" | |
| | | | |
| #define GDA_CONFIG_KEY_MAX_LAST_CONNECTIONS "/apps/libgda/MaxLastConnectio
ns" | | #define GDA_CONFIG_KEY_MAX_LAST_CONNECTIONS "/apps/libgda/MaxLastConnectio
ns" | |
| | | | |
| | | | |
End of changes. 16 change blocks. |
| 55 lines changed or deleted | | 82 lines changed or added | |
|
| gda-connection.h | | gda-connection.h | |
| /* GDA client library | | /* GDA client library | |
|
| * Copyright (C) 1998-2002 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> | |
|
| | | * Bas Driessen <bas.driessen@xobas.com> | |
| * | | * | |
| * 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 29 | | skipping to change at line 30 | |
| * 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_connection_h__) | | #if !defined(__gda_connection_h__) | |
| # define __gda_connection_h__ | | # define __gda_connection_h__ | |
| | | | |
| #include <libgda/gda-command.h> | | #include <libgda/gda-command.h> | |
| #include <libgda/gda-data-model.h> | | #include <libgda/gda-data-model.h> | |
|
| | | #include <libgda/gda-data-model-index.h> | |
| #include <libgda/gda-error.h> | | #include <libgda/gda-error.h> | |
| #include <libgda/gda-parameter.h> | | #include <libgda/gda-parameter.h> | |
| #include <libgda/gda-transaction.h> | | #include <libgda/gda-transaction.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| #define GDA_TYPE_CONNECTION (gda_connection_get_type()) | | #define GDA_TYPE_CONNECTION (gda_connection_get_type()) | |
| #define GDA_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GD
A_TYPE_CONNECTION, GdaConnection)) | | #define GDA_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GD
A_TYPE_CONNECTION, GdaConnection)) | |
| #define GDA_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA
_TYPE_CONNECTION, GdaConnectionClass)) | | #define GDA_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA
_TYPE_CONNECTION, GdaConnectionClass)) | |
| #define GDA_IS_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj, GDA
_TYPE_CONNECTION)) | | #define GDA_IS_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj, GDA
_TYPE_CONNECTION)) | |
| | | | |
| skipping to change at line 99 | | skipping to change at line 101 | |
| | | | |
| void gda_connection_add_error (GdaConnection *cnc, GdaError
*error); | | void gda_connection_add_error (GdaConnection *cnc, GdaError
*error); | |
| void gda_connection_add_error_string (GdaConnection *cnc, c
onst gchar *str, ...); | | void gda_connection_add_error_string (GdaConnection *cnc, c
onst gchar *str, ...); | |
| void gda_connection_add_error_list (GdaConnection *cnc, GLi
st *error_list); | | void gda_connection_add_error_list (GdaConnection *cnc, GLi
st *error_list); | |
| void gda_connection_clear_error_list (GdaConnection *cnc); | | void gda_connection_clear_error_list (GdaConnection *cnc); | |
| | | | |
| gboolean gda_connection_change_database (GdaConnection *cnc, co
nst gchar *name); | | gboolean gda_connection_change_database (GdaConnection *cnc, co
nst gchar *name); | |
| gboolean gda_connection_create_database (GdaConnection *cnc, co
nst gchar *name); | | gboolean gda_connection_create_database (GdaConnection *cnc, co
nst gchar *name); | |
| gboolean gda_connection_drop_database (GdaConnection *cnc, cons
t gchar *name); | | gboolean gda_connection_drop_database (GdaConnection *cnc, cons
t gchar *name); | |
| gboolean gda_connection_create_table (GdaConnection *cnc, const
gchar *table_name, | | gboolean gda_connection_create_table (GdaConnection *cnc, const
gchar *table_name, | |
|
| const GdaFieldAttributes * | | const GList *attributes_li | |
| attributes[]); | | st, | |
| | | const GList *index_list); | |
| gboolean gda_connection_drop_table (GdaConnection *cnc, const g
char *table_name); | | gboolean gda_connection_drop_table (GdaConnection *cnc, const g
char *table_name); | |
|
| | | gboolean gda_connection_create_index (GdaConnection *cnc, const | |
| | | GdaDataModelIndex *index, | |
| | | const gchar *table_name); | |
| | | gboolean gda_connection_drop_index (GdaConnection *cnc, const g | |
| | | char *index_name, | |
| | | gboolean primary_key, const | |
| | | gchar *table_name); | |
| | | | |
| GList *gda_connection_execute_command (GdaConnection *cnc, | | GList *gda_connection_execute_command (GdaConnection *cnc, | |
| GdaCommand *cmd, | | GdaCommand *cmd, | |
| GdaParameterList *param
s); | | GdaParameterList *param
s); | |
| gchar *gda_connection_get_last_insert_id (GdaConnection *cnc,
GdaDataModel *recset); | | gchar *gda_connection_get_last_insert_id (GdaConnection *cnc,
GdaDataModel *recset); | |
| GdaDataModel *gda_connection_execute_single_command (GdaConnection *
cnc, | | GdaDataModel *gda_connection_execute_single_command (GdaConnection *
cnc, | |
| GdaCommand *cmd, | | GdaCommand *cmd, | |
| GdaParameterList
*params); | | GdaParameterList
*params); | |
| gint gda_connection_execute_non_query (GdaConnection *cnc, | | gint gda_connection_execute_non_query (GdaConnection *cnc, | |
| GdaCommand *cmd, | | GdaCommand *cmd, | |
| GdaParameterList *par
ams); | | GdaParameterList *par
ams); | |
| | | | |
| gboolean gda_connection_begin_transaction (GdaConnection *cnc,
GdaTransaction *xaction); | | gboolean gda_connection_begin_transaction (GdaConnection *cnc,
GdaTransaction *xaction); | |
| gboolean gda_connection_commit_transaction (GdaConnection *cnc,
GdaTransaction *xaction); | | gboolean gda_connection_commit_transaction (GdaConnection *cnc,
GdaTransaction *xaction); | |
| gboolean gda_connection_rollback_transaction (GdaConnection *cn
c, GdaTransaction *xaction); | | gboolean gda_connection_rollback_transaction (GdaConnection *cn
c, GdaTransaction *xaction); | |
| | | | |
| gboolean gda_connection_create_blob (GdaConnection *cnc, GdaBlo
b *blob); | | gboolean gda_connection_create_blob (GdaConnection *cnc, GdaBlo
b *blob); | |
|
| gboolean gda_connection_escape_string (GdaConnection *cnc, cons
t gchar *from, gchar *to); | | | |
| | | | |
|
| | | gchar * gda_connection_value_to_sql_string (GdaConne
ction *cnc, GdaValue *from); | |
| const GList *gda_connection_get_errors (GdaConnection *cnc); | | const GList *gda_connection_get_errors (GdaConnection *cnc); | |
| | | | |
| typedef enum { | | typedef enum { | |
| GDA_CONNECTION_FEATURE_AGGREGATES, | | GDA_CONNECTION_FEATURE_AGGREGATES, | |
| GDA_CONNECTION_FEATURE_BLOBS, | | GDA_CONNECTION_FEATURE_BLOBS, | |
| GDA_CONNECTION_FEATURE_INDEXES, | | GDA_CONNECTION_FEATURE_INDEXES, | |
| GDA_CONNECTION_FEATURE_INHERITANCE, | | GDA_CONNECTION_FEATURE_INHERITANCE, | |
| GDA_CONNECTION_FEATURE_NAMESPACES, | | GDA_CONNECTION_FEATURE_NAMESPACES, | |
| GDA_CONNECTION_FEATURE_PROCEDURES, | | GDA_CONNECTION_FEATURE_PROCEDURES, | |
| GDA_CONNECTION_FEATURE_SEQUENCES, | | GDA_CONNECTION_FEATURE_SEQUENCES, | |
| | | | |
End of changes. 7 change blocks. |
| 4 lines changed or deleted | | 14 lines changed or added | |
|
| gda-data-model-array.h | | gda-data-model-array.h | |
| /* GDA common library | | /* GDA common library | |
|
| * Copyright (C) 1998-2002 The GNOME Foundation. | | * Copyright (C) 1998 - 2004 The GNOME Foundation. | |
| * | | * | |
| * AUTHORS: | | * AUTHORS: | |
| * 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. | |
| | | | |
| skipping to change at line 27 | | skipping to change at line 28 | |
| * 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_data_model_array_h__) | | #if !defined(__gda_data_model_array_h__) | |
| # define __gda_data_model_array_h__ | | # define __gda_data_model_array_h__ | |
| | | | |
| #include <libgda/gda-data-model.h> | | #include <libgda/gda-data-model.h> | |
|
| | | #include <libgda/gda-data-model-base.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| #define GDA_TYPE_DATA_MODEL_ARRAY (gda_data_model_array_get_type
()) | | #define GDA_TYPE_DATA_MODEL_ARRAY (gda_data_model_array_get_type
()) | |
| #define GDA_DATA_MODEL_ARRAY(obj) (G_TYPE_CHECK_INSTANCE_CAST (o
bj, GDA_TYPE_DATA_MODEL_ARRAY, GdaDataModelArray)) | | #define GDA_DATA_MODEL_ARRAY(obj) (G_TYPE_CHECK_INSTANCE_CAST (o
bj, GDA_TYPE_DATA_MODEL_ARRAY, GdaDataModelArray)) | |
| #define GDA_DATA_MODEL_ARRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klas
s, GDA_TYPE_DATA_MODEL_ARRAY, GdaDataModelArrayClass)) | | #define GDA_DATA_MODEL_ARRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klas
s, GDA_TYPE_DATA_MODEL_ARRAY, GdaDataModelArrayClass)) | |
| #define GDA_IS_DATA_MODEL_ARRAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE (o
bj, GDA_TYPE_DATA_MODEL_ARRAY)) | | #define GDA_IS_DATA_MODEL_ARRAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE (o
bj, GDA_TYPE_DATA_MODEL_ARRAY)) | |
| #define GDA_IS_DATA_MODEL_ARRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((kla
ss), GDA_TYPE_DATA_MODEL_ARRAY)) | | #define GDA_IS_DATA_MODEL_ARRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((kla
ss), GDA_TYPE_DATA_MODEL_ARRAY)) | |
| | | | |
| typedef struct _GdaDataModelArray GdaDataModelArray; | | typedef struct _GdaDataModelArray GdaDataModelArray; | |
| typedef struct _GdaDataModelArrayClass GdaDataModelArrayClass; | | typedef struct _GdaDataModelArrayClass GdaDataModelArrayClass; | |
| typedef struct _GdaDataModelArrayPrivate GdaDataModelArrayPrivate; | | typedef struct _GdaDataModelArrayPrivate GdaDataModelArrayPrivate; | |
| | | | |
| struct _GdaDataModelArray { | | struct _GdaDataModelArray { | |
|
| GdaDataModel model; | | GdaDataModelBase model; | |
| GdaDataModelArrayPrivate *priv; | | GdaDataModelArrayPrivate *priv; | |
| }; | | }; | |
| | | | |
| struct _GdaDataModelArrayClass { | | struct _GdaDataModelArrayClass { | |
|
| GdaDataModelClass parent_class; | | GdaDataModelBaseClass parent_class; | |
| }; | | }; | |
| | | | |
|
| GType gda_data_model_array_get_type (void); | | GType gda_data_model_array_get_type (void); | |
| GdaDataModel *gda_data_model_array_new (gint cols); | | GdaDataModel *gda_data_model_array_new (gint cols); | |
| void gda_data_model_array_set_n_columns (GdaDataModelArray *model, | | GdaDataModel *gda_data_model_array_new_from_xml_node (xmlNodePtr node, GErr | |
| gint cols); | | or **error); | |
| void gda_data_model_array_clear (GdaDataModelArray *model); | | void gda_data_model_array_set_n_columns (GdaDataModelArray *mo | |
| | | del, gint cols); | |
| | | void gda_data_model_array_clear (GdaDataModelArray *mo | |
| | | del); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 6 change blocks. |
| 8 lines changed or deleted | | 13 lines changed or added | |
|
| gda-data-model-hash.h | | gda-data-model-hash.h | |
| /* GDA common library | | /* GDA common library | |
|
| * Copyright (C) 1998-2002 The GNOME Foundation. | | * Copyright (C) 1998 - 2004 The GNOME Foundation. | |
| * | | * | |
| * AUTHORS: | | * AUTHORS: | |
| * Rodrigo Moya <rodrigo@gnome-db.org> | | * Rodrigo Moya <rodrigo@gnome-db.org> | |
| * Gonzalo Paniagua Javier <gonzalo@gnome-db.org> | | * Gonzalo Paniagua Javier <gonzalo@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. | |
| | | | |
| skipping to change at line 28 | | skipping to change at line 29 | |
| * 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_data_model_hash_h__) | | #if !defined(__gda_data_model_hash_h__) | |
| # define __gda_data_model_hash_h__ | | # define __gda_data_model_hash_h__ | |
| | | | |
| #include <libgda/gda-data-model.h> | | #include <libgda/gda-data-model.h> | |
|
| | | #include <libgda/gda-data-model-base.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| #define GDA_TYPE_DATA_MODEL_HASH (gda_data_model_hash_get_type()
) | | #define GDA_TYPE_DATA_MODEL_HASH (gda_data_model_hash_get_type()
) | |
| #define GDA_DATA_MODEL_HASH(obj) (G_TYPE_CHECK_INSTANCE_CAST (ob
j, GDA_TYPE_DATA_MODEL_HASH, GdaDataModelHash)) | | #define GDA_DATA_MODEL_HASH(obj) (G_TYPE_CHECK_INSTANCE_CAST (ob
j, GDA_TYPE_DATA_MODEL_HASH, GdaDataModelHash)) | |
| #define GDA_DATA_MODEL_HASH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass
, GDA_TYPE_DATA_MODEL_HASH, GdaDataModelHashClass)) | | #define GDA_DATA_MODEL_HASH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass
, GDA_TYPE_DATA_MODEL_HASH, GdaDataModelHashClass)) | |
| #define GDA_IS_DATA_MODEL_HASH(obj) (G_TYPE_CHECK_INSTANCE_TYPE (ob
j, GDA_TYPE_DATA_MODEL_HASH)) | | #define GDA_IS_DATA_MODEL_HASH(obj) (G_TYPE_CHECK_INSTANCE_TYPE (ob
j, GDA_TYPE_DATA_MODEL_HASH)) | |
| #define GDA_IS_DATA_MODEL_HASH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klas
s), GDA_TYPE_DATA_MODEL_HASH)) | | #define GDA_IS_DATA_MODEL_HASH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klas
s), GDA_TYPE_DATA_MODEL_HASH)) | |
| | | | |
| typedef struct _GdaDataModelHash GdaDataModelHash; | | typedef struct _GdaDataModelHash GdaDataModelHash; | |
| typedef struct _GdaDataModelHashClass GdaDataModelHashClass; | | typedef struct _GdaDataModelHashClass GdaDataModelHashClass; | |
| typedef struct _GdaDataModelHashPrivate GdaDataModelHashPrivate; | | typedef struct _GdaDataModelHashPrivate GdaDataModelHashPrivate; | |
| | | | |
| struct _GdaDataModelHash { | | struct _GdaDataModelHash { | |
|
| GdaDataModel model; | | GdaDataModelBase model; | |
| GdaDataModelHashPrivate *priv; | | GdaDataModelHashPrivate *priv; | |
| }; | | }; | |
| | | | |
| struct _GdaDataModelHashClass { | | struct _GdaDataModelHashClass { | |
|
| GdaDataModelClass parent_class; | | GdaDataModelBaseClass parent_class; | |
| }; | | }; | |
| | | | |
|
| GType gda_data_model_hash_get_type (void); | | GType gda_data_model_hash_get_type (void); | |
| GdaDataModel *gda_data_model_hash_new (gint cols); | | GdaDataModel *gda_data_model_hash_new (gint cols); | |
| const GdaValue *gda_data_model_hash_get_value_at (GdaDataModel *model, | | | |
| gint col, | | | |
| gint row); | | | |
| | | | |
|
| void gda_data_model_hash_clear (GdaDataModelHash *model); | | void gda_data_model_hash_clear (GdaDataModelHash *model); | |
| void gda_data_model_hash_set_n_columns (GdaDataModelHash *model, | | void gda_data_model_hash_set_n_columns (GdaDataModelHash *model, | |
| gint cols); | | gint cols); | |
| | | | |
|
| void gda_data_model_hash_insert_row (GdaDataModelHash *model, | | void gda_data_model_hash_insert_row (GdaDataModelHash *model, | |
| gint rownum, | | gint rownum, | |
| GdaRow *row); | | GdaRow *row); | |
| | | | |
| const GdaRow *gda_data_model_hash_get_row (GdaDataModel *model, gint row); | | | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 8 change blocks. |
| 14 lines changed or deleted | | 11 lines changed or added | |
|
| gda-data-model-list.h | | gda-data-model-list.h | |
| /* GDA common library | | /* GDA common library | |
|
| * Copyright (C) 1998-2002 The GNOME Foundation. | | * Copyright (C) 1998 - 2004 The GNOME Foundation. | |
| * | | * | |
| * AUTHORS: | | * AUTHORS: | |
| * 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. | |
| | | | |
| skipping to change at line 27 | | skipping to change at line 28 | |
| * 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_data_model_list_h__) | | #if !defined(__gda_data_model_list_h__) | |
| # define __gda_data_model_list_h__ | | # define __gda_data_model_list_h__ | |
| | | | |
| #include <libgda/gda-data-model.h> | | #include <libgda/gda-data-model.h> | |
|
| | | #include <libgda/gda-data-model-base.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| #define GDA_TYPE_DATA_MODEL_LIST (gda_data_model_list_get_type()
) | | #define GDA_TYPE_DATA_MODEL_LIST (gda_data_model_list_get_type()
) | |
| #define GDA_DATA_MODEL_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST (ob
j, GDA_TYPE_DATA_MODEL_LIST, GdaDataModelList)) | | #define GDA_DATA_MODEL_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST (ob
j, GDA_TYPE_DATA_MODEL_LIST, GdaDataModelList)) | |
| #define GDA_DATA_MODEL_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass
, GDA_TYPE_DATA_MODEL_LIST, GdaDataModelListClass)) | | #define GDA_DATA_MODEL_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass
, GDA_TYPE_DATA_MODEL_LIST, GdaDataModelListClass)) | |
| #define GDA_IS_DATA_MODEL_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE (ob
j, GDA_TYPE_DATA_MODEL_LIST)) | | #define GDA_IS_DATA_MODEL_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE (ob
j, GDA_TYPE_DATA_MODEL_LIST)) | |
| #define GDA_IS_DATA_MODEL_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klas
s), GDA_TYPE_DATA_MODEL_LIST)) | | #define GDA_IS_DATA_MODEL_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klas
s), GDA_TYPE_DATA_MODEL_LIST)) | |
| | | | |
| typedef struct _GdaDataModelList GdaDataModelList; | | typedef struct _GdaDataModelList GdaDataModelList; | |
| typedef struct _GdaDataModelListClass GdaDataModelListClass; | | typedef struct _GdaDataModelListClass GdaDataModelListClass; | |
| typedef struct _GdaDataModelListPrivate GdaDataModelListPrivate; | | typedef struct _GdaDataModelListPrivate GdaDataModelListPrivate; | |
| | | | |
| struct _GdaDataModelList { | | struct _GdaDataModelList { | |
|
| GdaDataModel model; | | GdaDataModelBase model; | |
| GdaDataModelListPrivate *priv; | | GdaDataModelListPrivate *priv; | |
| }; | | }; | |
| | | | |
| struct _GdaDataModelListClass { | | struct _GdaDataModelListClass { | |
|
| GdaDataModelClass parent_class; | | GdaDataModelBaseClass parent_class; | |
| }; | | }; | |
| | | | |
|
| GType gda_data_model_list_get_type (void); | | GType gda_data_model_list_get_type (void); | |
| GdaDataModel *gda_data_model_list_new (void); | | GdaDataModel *gda_data_model_list_new (void); | |
| GdaDataModel *gda_data_model_list_new_from_string_list (const GList *list); | | GdaDataModel *gda_data_model_list_new_from_string_list (const GList *list); | |
| | | | |
|
| const GdaRow *gda_data_model_list_append_value (GdaDataModelList *model, | | const GdaRow *gda_data_model_list_append_value (GdaDataModelList *m | |
| const GdaValue *value); | | odel, | |
| | | const GdaValue *valu | |
| | | e); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 7 change blocks. |
| 7 lines changed or deleted | | 11 lines changed or added | |
|
| gda-data-model.h | | gda-data-model.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> | |
| * | | * | |
| * 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 30 | | skipping to change at line 31 | |
| * Boston, MA 02111-1307, USA. | | * Boston, MA 02111-1307, USA. | |
| */ | | */ | |
| | | | |
| #if !defined(__gda_data_model_h__) | | #if !defined(__gda_data_model_h__) | |
| # define __gda_data_model_h__ | | # define __gda_data_model_h__ | |
| | | | |
| #include <glib-object.h> | | #include <glib-object.h> | |
| #include <libxml/parser.h> | | #include <libxml/parser.h> | |
| #include <libxml/tree.h> | | #include <libxml/tree.h> | |
| #include <libgda/gda-command.h> | | #include <libgda/gda-command.h> | |
|
| #include <libgda/gda-row.h> | | #include <libgda/global-decl.h> | |
| | | #include <libgda/gda-column.h> | |
| #include <libgda/gda-value.h> | | #include <libgda/gda-value.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| #define GDA_TYPE_DATA_MODEL (gda_data_model_get_type()) | | #define GDA_TYPE_DATA_MODEL (gda_data_model_get_type()) | |
| #define GDA_DATA_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GD
A_TYPE_DATA_MODEL, GdaDataModel)) | | #define GDA_DATA_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GD
A_TYPE_DATA_MODEL, GdaDataModel)) | |
|
| #define GDA_DATA_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA
_TYPE_DATA_MODEL, GdaDataModelClass)) | | | |
| #define GDA_IS_DATA_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GD
A_TYPE_DATA_MODEL)) | | #define GDA_IS_DATA_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GD
A_TYPE_DATA_MODEL)) | |
|
| #define GDA_IS_DATA_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), G
DA_TYPE_DATA_MODEL)) | | #define GDA_DATA_MODEL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj
), GDA_TYPE_DATA_MODEL, GdaDataModelIface)) | |
| | | | |
|
| typedef struct _GdaDataModelClass GdaDataModelClass; | | typedef gboolean (* GdaDataModelForeachFunc) (GdaDataModel *model, | |
| typedef struct _GdaDataModelPrivate GdaDataModelPrivate; | | GdaRow *row, | |
| | | gpointer user_data); | |
| | | | |
|
| struct _GdaDataModel { | | /* struct for the interface */ | |
| GObject object; | | struct _GdaDataModelIface { | |
| GdaDataModelPrivate *priv; | | GTypeInterface g_iface; | |
| }; | | | |
| | | | |
|
| struct _GdaDataModelClass { | | /* virtual table */ | |
| GObjectClass parent_class; | | gint (* i_get_n_rows) (GdaDataModel *model); | |
| | | gint (* i_get_n_columns) (GdaDataModel *model); | |
| | | | |
|
| /* signals */ | | GdaColumn *(* i_describe_column) (GdaDataModel *model, gint col); | |
| void (* changed) (GdaDataModel *model); | | const gchar *(* i_get_column_title)(GdaDataModel *model, gin | |
| void (* row_inserted) (GdaDataModel *model, gint row); | | t col); | |
| void (* row_updated) (GdaDataModel *model, gint row); | | void (* i_set_column_title)(GdaDataModel *model, gin | |
| void (* row_removed) (GdaDataModel *model, gint row); | | t col, const gchar *title); | |
| void (* column_inserted) (GdaDataModel *model, gint col); | | gint (* i_get_column_pos) (GdaDataModel *model, con | |
| void (* column_updated) (GdaDataModel *model, gint col); | | st gchar *title); | |
| void (* column_removed) (GdaDataModel *model, gint col); | | | |
| | | | |
|
| void (* begin_update) (GdaDataModel *model); | | const GdaRow *(* i_get_row) (GdaDataModel *model, gin | |
| void (* cancel_update) (GdaDataModel *model); | | t row); | |
| void (* end_update) (GdaDataModel *model); | | const GdaValue *(* i_get_value_at) (GdaDataModel *model, gin | |
| | | t col, gint row); | |
| | | | |
|
| /* virtual methods */ | | gboolean (* i_is_updatable) (GdaDataModel *model); | |
| gint (* get_n_rows) (GdaDataModel *model); | | gboolean (* i_has_changed) (GdaDataModel *model); | |
| gint (* get_n_columns) (GdaDataModel *model); | | void (* i_begin_changes) (GdaDataModel *model); | |
| GdaFieldAttributes * (* describe_column) (GdaDataModel *model, gint | | gboolean (* i_commit_changes) (GdaDataModel *model); | |
| col); | | gboolean (* i_cancel_changes) (GdaDataModel *model); | |
| const GdaRow * (* get_row) (GdaDataModel *model, gint row); | | | |
| const GdaValue * (* get_value_at) (GdaDataModel *model, gint col, gi | | | |
| nt row); | | | |
| | | | |
|
| gboolean (* is_updatable) (GdaDataModel *model); | | const GdaRow *(* i_append_values) (GdaDataModel *model, con | |
| const GdaRow * (* append_row) (GdaDataModel *model, const GList *val | | st GList *values); | |
| ues); | | gboolean (* i_append_row) (GdaDataModel *model, Gda | |
| gboolean (* remove_row) (GdaDataModel *model, const GdaRow *row); | | Row *row); | |
| gboolean (* update_row) (GdaDataModel *model, const GdaRow *row); | | gboolean (* i_remove_row) (GdaDataModel *model, con | |
| gboolean (* append_column) (GdaDataModel *model, const GdaFieldAttri | | st GdaRow *row); | |
| butes *attrs); | | gboolean (* i_update_row) (GdaDataModel *model, con | |
| gboolean (* update_column) (GdaDataModel *model, gint col, | | st GdaRow *row); | |
| const GdaFieldAttributes *attrs); | | | |
| gboolean (* remove_column) (GdaDataModel *model, gint col); | | gboolean (* i_append_column) (GdaDataModel *model, con | |
| | | st GdaColumn *attrs); | |
| | | gboolean (* i_update_column) (GdaDataModel *model, gin | |
| | | t col, | |
| | | const GdaColumn *attrs); | |
| | | gboolean (* i_remove_column) (GdaDataModel *model, gin | |
| | | t col); | |
| | | | |
| | | void (* i_set_notify) (GdaDataModel *model, gbo | |
| | | olean do_notify_changes); | |
| | | gboolean (* i_get_notify) (GdaDataModel *model); | |
| | | | |
| | | gboolean (* i_set_command) (GdaDataModel *model, con | |
| | | st gchar *txt, GdaCommandType type); | |
| | | const gchar *(* i_get_command) (GdaDataModel *model, Gda | |
| | | CommandType *type); | |
| | | | |
| | | /* signals */ | |
| | | void (* changed) (GdaDataModel *model); | |
| | | void (* row_inserted) (GdaDataModel *model, gint | |
| | | row); | |
| | | void (* row_updated) (GdaDataModel *model, gint | |
| | | row); | |
| | | void (* row_removed) (GdaDataModel *model, gint | |
| | | row); | |
| | | void (* column_inserted) (GdaDataModel *model, gint | |
| | | col); | |
| | | void (* column_updated) (GdaDataModel *model, gint | |
| | | col); | |
| | | void (* column_removed) (GdaDataModel *model, gint | |
| | | col); | |
| | | | |
| | | void (* begin_update) (GdaDataModel *model); | |
| | | void (* cancel_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 (GdaDataModel *model); | | void gda_data_model_changed (GdaDat | |
| void gda_data_model_row_inserted (GdaDataModel *model, gint | | aModel *model); | |
| row); | | void gda_data_model_row_inserted (GdaDat | |
| void gda_data_model_row_updated (GdaDataModel *model, gint r | | aModel *model, gint row); | |
| ow); | | void gda_data_model_row_updated (GdaDat | |
| void gda_data_model_row_removed (GdaDataModel *model, gint r | | aModel *model, gint row); | |
| ow); | | void gda_data_model_row_removed (GdaDat | |
| void gda_data_model_column_inserted (GdaDataModel *model, gi | | aModel *model, gint row); | |
| nt col); | | void gda_data_model_column_inserted (GdaDat | |
| void gda_data_model_column_updated (GdaDataModel *model, gin | | aModel *model, gint col); | |
| t col); | | void gda_data_model_column_updated (GdaDat | |
| void gda_data_model_column_removed (GdaDataModel *model, gin | | aModel *model, gint col); | |
| t col); | | void gda_data_model_column_removed (GdaDat | |
| void gda_data_model_freeze (GdaDataModel *model); | | aModel *model, gint col); | |
| void gda_data_model_thaw (GdaDataModel *model); | | void gda_data_model_freeze (GdaDat | |
| | | aModel *model); | |
| | | void gda_data_model_thaw (GdaDat | |
| | | aModel *model); | |
| | | | |
|
| gint gda_data_model_get_n_rows (GdaDataModel *model); | | gint gda_data_model_get_n_rows (GdaDat | |
| gint gda_data_model_get_n_columns (GdaDataModel *model); | | aModel *model); | |
| GdaFieldAttributes *gda_data_model_describe_column (GdaDataModel *model, gi | | gint gda_data_model_get_n_columns (GdaDat | |
| nt col); | | aModel *model); | |
| const gchar *gda_data_model_get_column_title (GdaDataModel *model, g | | GdaColumn *gda_data_model_describe_column (GdaDat | |
| int col); | | aModel *model, gint col); | |
| void gda_data_model_set_column_title (GdaDataModel *model, g | | const gchar *gda_data_model_get_column_title (GdaDat | |
| int col, const gchar *title); | | aModel *model, gint col); | |
| gint gda_data_model_get_column_position (GdaDataModel *model | | void gda_data_model_set_column_title (GdaDat | |
| , const gchar *title); | | aModel *model, gint col, const gchar *title); | |
| const GdaRow *gda_data_model_get_row (GdaDataModel *model, gint row); | | gint gda_data_model_get_column_position (GdaDat | |
| const GdaValue *gda_data_model_get_value_at (GdaDataModel *model, gint | | aModel *model, const gchar *title); | |
| col, 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); | |
| | | | |
|
| gboolean gda_data_model_is_updatable (GdaDataModel *model); | | gboolean gda_data_model_is_updatable (GdaDat | |
| const GdaRow *gda_data_model_append_row (GdaDataModel *model, const G | | aModel *model); | |
| List *values); | | const GdaRow *gda_data_model_append_values (GdaDat | |
| gboolean gda_data_model_remove_row (GdaDataModel *model, const G | | aModel *model, const GList *values); | |
| daRow *row); | | gboolean gda_data_model_append_row (GdaDat | |
| gboolean gda_data_model_update_row (GdaDataModel *model, const G | | aModel *model, GdaRow *row); | |
| daRow *row); | | gboolean gda_data_model_remove_row (GdaDat | |
| gboolean gda_data_model_append_column (GdaDataModel *model, const | | aModel *model, const GdaRow *row); | |
| GdaFieldAttributes *attrs); | | gboolean gda_data_model_update_row (GdaDat | |
| gboolean gda_data_model_update_column (GdaDataModel *model, gint | | aModel *model, const GdaRow *row); | |
| col, | | gboolean gda_data_model_append_column (GdaData | |
| const GdaFieldAttributes * | | Model *model, const GdaColumn *attrs); | |
| attrs); | | gboolean gda_data_model_update_column (GdaData | |
| gboolean gda_data_model_remove_column (GdaDataModel *model, gint | | Model *model, gint col, | |
| col); | | const G | |
| | | daColumn *attrs); | |
| | | gboolean gda_data_model_remove_column (GdaData | |
| | | Model *model, gint col); | |
| | | | |
|
| typedef gboolean (* GdaDataModelForeachFunc) (GdaDataModel *model, | | void gda_data_model_foreach (GdaDat | |
| GdaRow *row, | | aModel *model, GdaDataModelForeachFunc func, | |
| gpointer user_data); | | gpointe | |
| | | r user_data); | |
| | | | |
|
| void gda_data_model_foreach (GdaDataModel *model, | | gboolean gda_data_model_has_changed (GdaDat | |
| GdaDataModelForeachFunc func, | | aModel *model); | |
| gpointer user_data); | | gboolean gda_data_model_begin_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_has_changed (GdaDataModel *model); | | gchar *gda_data_model_to_text_separated (GdaDat | |
| gboolean gda_data_model_begin_update (GdaDataModel *model); | | aModel *model, const gint *cols, gint nb_cols, | |
| gboolean gda_data_model_cancel_update (GdaDataModel *model); | | gchar s | |
| gboolean gda_data_model_end_update (GdaDataModel *model); | | ep); | |
| | | gchar *gda_data_model_to_xml (GdaDat | |
| | | aModel *model, const gint *cols, gint nb_cols, | |
| | | const g | |
| | | char *name); | |
| | | xmlNodePtr gda_data_model_to_xml_node (GdaDat | |
| | | aModel *model, const gint *cols, gint nb_cols, | |
| | | const g | |
| | | char *name); | |
| | | gboolean gda_data_model_add_data_from_xml_node (GdaDat | |
| | | aModel *model, xmlNodePtr node); | |
| | | | |
|
| gchar *gda_data_model_to_comma_separated (GdaDataModel *model) | | const gchar *gda_data_model_get_command_text (GdaDat | |
| ; | | aModel *model); | |
| gchar *gda_data_model_to_tab_separated (GdaDataModel *model); | | gboolean gda_data_model_set_command_text (GdaDat | |
| gchar *gda_data_model_to_xml (GdaDataModel *model, gboolean st | | aModel *model, const gchar *txt); | |
| andalone); | | GdaCommandType gda_data_model_get_command_type (GdaDat | |
| xmlNodePtr gda_data_model_to_xml_node (GdaDataModel *model, const | | aModel *model); | |
| gchar *name); | | gboolean gda_data_model_set_command_type (GdaDat | |
| gboolean gda_data_model_add_data_from_xml_node (GdaDataModel *mo | | aModel *model, GdaCommandType type); | |
| del, xmlNodePtr node); | | | |
| | | | |
|
| const gchar *gda_data_model_get_command_text (GdaDataModel *model); | | void gda_data_model_dump (GdaDat | |
| void gda_data_model_set_command_text (GdaDataModel *model, c | | aModel *model, FILE *to_stream); | |
| onst gchar *txt); | | gchar *gda_data_model_dump_as_string (GdaDat | |
| GdaCommandType gda_data_model_get_command_type (GdaDataModel *model); | | aModel *model); | |
| void gda_data_model_set_command_type (GdaDataModel *model, | | | |
| GdaCommandType type); | | | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 21 change blocks. |
| 110 lines changed or deleted | | 165 lines changed or added | |
|
| gda-row.h | | gda-row.h | |
| /* GDA library | | /* GDA library | |
|
| * Copyright (C) 1998-2002 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> | |
| * | | * | |
| * 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 27 | | skipping to change at line 27 | |
| * | | * | |
| * 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 <libgda/gda-field.h> | | #include <libgda/gda-column.h> | |
| | | #include <libgda/global-decl.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
|
| typedef struct _GdaDataModel GdaDataModel; | | | |
| typedef struct _GdaRow GdaRow; | | | |
| | | | |
| #define GDA_TYPE_ROW (gda_row_get_type()) | | #define GDA_TYPE_ROW (gda_row_get_type()) | |
| | | | |
|
| 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 *valu | | GdaRow *gda_row_new_from_list (GdaDataModel *model, const GList *val | |
| es); | | ues); | |
| GdaRow *gda_row_copy (GdaRow *row); | | GdaRow *gda_row_copy (GdaRow *row); | |
| void gda_row_free (GdaRow *row); | | void gda_row_free (GdaRow *row); | |
| GdaDataModel *gda_row_get_model (GdaRow *row); | | GdaDataModel *gda_row_get_model (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); | | gint gda_row_get_length (GdaRow *row); | |
| | | | |
| | | void gda_row_set_is_default (GdaRow *row, gint num, gboolean is_de | |
| | | fault); | |
| | | gboolean gda_row_get_is_default (GdaRow *row, gint num); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 4 change blocks. |
| 18 lines changed or deleted | | 20 lines changed or added | |
|
| gda-server-provider.h | | gda-server-provider.h | |
| /* GDA library | | /* GDA 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> | |
|
| | | * Bas Driessen <bas.driessen@xobas.com> | |
| | | * 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 29 | | skipping to change at line 31 | |
| * 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_server_provider_h__) | | #if !defined(__gda_server_provider_h__) | |
| # define __gda_server_provider_h__ | | # define __gda_server_provider_h__ | |
| | | | |
| #include <libgda/gda-command.h> | | #include <libgda/gda-command.h> | |
| #include <libgda/gda-connection.h> | | #include <libgda/gda-connection.h> | |
| #include <libgda/gda-data-model.h> | | #include <libgda/gda-data-model.h> | |
|
| | | #include <libgda/gda-data-model-index.h> | |
| #include <libgda/gda-quark-list.h> | | #include <libgda/gda-quark-list.h> | |
| #include <libgda/gda-transaction.h> | | #include <libgda/gda-transaction.h> | |
| | | | |
| G_BEGIN_DECLS | | G_BEGIN_DECLS | |
| | | | |
| #define GDA_TYPE_SERVER_PROVIDER (gda_server_provider_get_type()
) | | #define GDA_TYPE_SERVER_PROVIDER (gda_server_provider_get_type()
) | |
| #define GDA_SERVER_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST (ob
j, GDA_TYPE_SERVER_PROVIDER, GdaServerProvider)) | | #define GDA_SERVER_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST (ob
j, GDA_TYPE_SERVER_PROVIDER, GdaServerProvider)) | |
| #define GDA_SERVER_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass
, GDA_TYPE_SERVER_PROVIDER, GdaServerProviderClass)) | | #define GDA_SERVER_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass
, GDA_TYPE_SERVER_PROVIDER, GdaServerProviderClass)) | |
| #define GDA_IS_SERVER_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj
, GDA_TYPE_SERVER_PROVIDER)) | | #define GDA_IS_SERVER_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj
, GDA_TYPE_SERVER_PROVIDER)) | |
| #define GDA_IS_SERVER_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass
), GDA_TYPE_SERVER_PROVIDER)) | | #define GDA_IS_SERVER_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass
), GDA_TYPE_SERVER_PROVIDER)) | |
| | | | |
| skipping to change at line 52 | | skipping to change at line 55 | |
| | | | |
| struct _GdaServerProvider { | | struct _GdaServerProvider { | |
| GObject object; | | GObject object; | |
| GdaServerProviderPrivate *priv; | | GdaServerProviderPrivate *priv; | |
| }; | | }; | |
| | | | |
| struct _GdaServerProviderClass { | | struct _GdaServerProviderClass { | |
| GObjectClass parent_class; | | GObjectClass parent_class; | |
| | | | |
| /* signals */ | | /* signals */ | |
|
| void (* last_connection_gone) (GdaServerProvider *provider); | | void (* last_connection_gone) (GdaServerProvider *provider)
; | |
| | | | |
| /* virtual methods */ | | /* virtual methods */ | |
|
| const gchar * (* get_version) (GdaServerProvider *provider); | | const gchar *(* get_version) (GdaServerProvider *provider); | |
| | | | |
|
| gboolean (* open_connection) (GdaServerProvider *provider, | | gboolean (* open_connection) (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
| GdaQuarkList *params, | | GdaQuarkList *params, | |
| const gchar *username, | | const gchar *username, | |
| const gchar *password); | | const gchar *password); | |
| gboolean (* reset_connection) (GdaServerProvider *provider, | | gboolean (* reset_connection) (GdaServerProvider *provider, | |
| GdaConnection *cnc); | | GdaConnection *cnc); | |
| gboolean (* close_connection) (GdaServerProvider *provider, | | gboolean (* close_connection) (GdaServerProvider *provider, | |
| GdaConnection *cnc); | | GdaConnection *cnc); | |
| | | | |
|
| const gchar * (* get_server_version) (GdaServerProvider *provider, | | const gchar *(* get_server_version) (GdaServerProvider *provider, | |
| GdaConnection *cnc); | | GdaConnection *cnc); | |
|
| const gchar * (* get_database) (GdaServerProvider *provider, | | const gchar *(* get_database) (GdaServerProvider *provider, | |
| GdaConnection *cnc); | | GdaConnection *cnc); | |
|
| gboolean (* change_database) (GdaServerProvider *provider, | | gboolean (* change_database) (GdaServerProvider *provider, | |
| | | GdaConnection *cnc, | |
| | | const gchar *name); | |
| | | gboolean (* create_database_cnc) (GdaServerProvider *provider, | |
| | | /* deprecated */ | |
| | | GdaConnection *cnc, | |
| | | const gchar *name); | |
| | | gchar *(* get_specs_create_database) (GdaServerProvider *pro | |
| | | vider); | |
| | | gboolean (* create_database_params) (GdaServerProvider *provide | |
| | | r, | |
| | | GdaParameterList *params, | |
| | | GError **error); | |
| | | gboolean (* drop_database) (GdaServerProvider *provider, | |
| | | GdaConnection *cnc, | |
| | | const gchar *name); | |
| | | gboolean (* create_table) (GdaServerProvider *provider, | |
| | | GdaConnection *cnc, | |
| | | const gchar *table_name, | |
| | | const GList *attributes_list, | |
| | | const GList *index_list); | |
| | | gboolean (* drop_table) (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
|
| const gchar *name); | | const gchar *table_name); | |
| gboolean (* create_database) (GdaServerProvider *provider, | | gboolean (* create_index) (GdaServerProvider *provider, | |
| | | GdaConnection *cnc, | |
| | | const GdaDataModelIndex *index, | |
| | | const gchar *table_name); | |
| | | gboolean (* drop_index) (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
|
| const gchar *name); | | const gchar *index_name, | |
| gboolean (* drop_database) (GdaServerProvider *provider, | | gboolean primary_key, | |
| GdaConnection *cnc, | | const gchar *table_name); | |
| const gchar *name); | | | |
| gboolean (* create_table) (GdaServerProvider *provider, | | | |
| GdaConnection *cnc, | | | |
| const gchar *table_name, | | | |
| const GdaFieldAttributes *attributes[]); | | | |
| gboolean (* drop_table) (GdaServerProvider *provider, | | | |
| GdaConnection *cnc, | | | |
| const gchar *table_name); | | | |
| | | | |
| GList * (* execute_command) (GdaServerProvider *provider, | | | |
| GdaConnection *cnc, | | | |
| GdaCommand *cmd, | | | |
| GdaParameterList *params); | | | |
| char * (* get_last_insert_id) (GdaServerProvider *provider, | | | |
| GdaConnection *cnc, | | | |
| GdaDataModel *recset); | | | |
| | | | |
|
| gboolean (* begin_transaction) (GdaServerProvider *provider, | | GList *(* execute_command) (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | | |
| GdaTransaction *xaction); | | | |
| gboolean (* commit_transaction) (GdaServerProvider *provider, | | | |
| GdaConnection *cnc, | | | |
| GdaTransaction *xaction); | | | |
| gboolean (* rollback_transaction) (GdaServerProvider *provider, | | | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
|
| GdaTransaction *xaction); | | GdaCommand *cmd, | |
| | | GdaParameterList *params); | |
| | | char *(* get_last_insert_id) (GdaServerProvider *provider, | |
| | | GdaConnection *cnc, | |
| | | GdaDataModel *recset); | |
| | | | |
|
| gboolean (* supports) (GdaServerProvider *provider, | | gboolean (* begin_transaction) (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
| GdaConnectionFeature feature); | | GdaTransaction *xaction); | |
| | | gboolean (* commit_transaction) (GdaServerProvider *provider, | |
| | | GdaConnection *cnc, | |
| | | GdaTransaction *xaction); | |
| | | gboolean (* rollback_transaction) (GdaServerProvider *provider, | |
| | | GdaConnection *cnc, | |
| | | GdaTransaction *xaction); | |
| | | | |
|
| GdaDataModel * (* get_schema) (GdaServerProvider *provider, | | gboolean (* supports) (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
| GdaConnectionSchema schema, | | GdaConnectionFeature feature); | |
| GdaParameterList *params); | | | |
| | | | |
|
| gboolean (* create_blob) (GdaServerProvider *provider, | | GdaDataModel *(* get_schema) (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
| GdaBlob *blob); | | GdaConnectionSchema schema, | |
| | | GdaParameterList *params); | |
| | | | |
|
| gboolean (* escape_string) (GdaServerProvider *provider, | | gboolean (* create_blob) (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
| const gchar *from, | | GdaBlob *blob); | |
| gchar *to); | | | |
| | | gchar *(* value_to_sql_string) (GdaServerProvider *provider, | |
| | | GdaConnection *cnc, | |
| | | 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 *provider, | | ; | |
| GdaConnection *cnc, | | gboolean gda_server_provider_open_connection (GdaServerProvider *provi | |
| GdaQuarkList *params, | | der, | |
| const gchar *username, | | GdaConnection *cnc, | |
| const gchar *password); | | GdaQuarkList *params, | |
| gboolean gda_server_provider_reset_connection (GdaServerProvider *provider, | | const gchar *username, | |
| GdaConnection *cnc); | | const gchar *password); | |
| gboolean gda_server_provider_close_connection (GdaServerProvider *provider, | | gboolean gda_server_provider_reset_connection (GdaServerProvider *prov | |
| GdaConnection *cnc); | | ider, | |
| | | GdaConnection *cnc); | |
| | | gboolean gda_server_provider_close_connection (GdaServerProvider *prov | |
| | | ider, | |
| | | GdaConnection *cnc); | |
| | | | |
|
| const gchar *gda_server_provider_get_server_version (GdaServerProvider *pro | | const gchar *gda_server_provider_get_server_version (GdaServerProvider *pr | |
| vider, | | ovider, | |
| GdaConnection *cnc); | | GdaConnection *cnc); | |
| const gchar *gda_server_provider_get_database (GdaServerProvider *provider, | | const gchar *gda_server_provider_get_database (GdaServerProvider *provider | |
| GdaConnection *cnc); | | , | |
| gboolean gda_server_provider_change_database (GdaServerProvider *provider, | | GdaConnection *cnc); | |
| GdaConnection *cnc, | | gboolean gda_server_provider_change_database (GdaServerProvider *provi | |
| const gchar *name); | | der, | |
| gboolean gda_server_provider_create_database (GdaServerProvider *provider, | | GdaConnection *cnc, | |
| | | const gchar *name); | |
| | | gboolean gda_server_provider_create_database_cnc (GdaServerProvider *p | |
| | | rovider, | |
| | | GdaConnection *cnc, | |
| | | const gchar *name); | |
| | | gchar *gda_server_provider_get_specs_to_create_database (GdaServerP | |
| | | rovider *provider); | |
| | | gboolean gda_server_provider_create_database (GdaServerProvider *provi | |
| | | der, | |
| | | GdaParameterList *params, | |
| | | GError **error); | |
| | | gboolean gda_server_provider_drop_database (GdaServerProvider *provide | |
| | | r, | |
| | | GdaConnection *cnc, | |
| | | const gchar *name); | |
| | | gboolean gda_server_provider_create_table (GdaServerProvider *provider | |
| | | , | |
| | | GdaConnection *cnc, | |
| | | const gchar *table_name, | |
| | | const GList *attributes_list | |
| | | , | |
| | | const GList *index_list); | |
| | | gboolean gda_server_provider_drop_table (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
|
| const gchar *name); | | const gchar *table_name); | |
| gboolean gda_server_provider_drop_database (GdaServerProvider *provider, | | gboolean gda_server_provider_create_index (GdaServerProvider *provider | |
| GdaConnection *cnc, | | , | |
| const gchar *name); | | GdaConnection *cnc, | |
| gboolean gda_server_provider_create_table (GdaServerProvider *provider, | | const GdaDataModelIndex *ind | |
| GdaConnection *cnc, | | ex, | |
| const gchar *table_name, | | const gchar *table_name); | |
| const GdaFieldAttributes *attribu | | gboolean gda_server_provider_drop_index (GdaServerProvider *provider, | |
| tes[]); | | | |
| gboolean gda_server_provider_drop_table (GdaServerProvider *provider, | | | |
| GdaConnection *cnc, | | | |
| const gchar *table_name); | | | |
| | | | |
| GList *gda_server_provider_execute_command (GdaServerProvider *provider, | | | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
|
| GdaCommand *cmd, | | const gchar *index_name, | |
| GdaParameterList *params); | | gboolean primary_key, | |
| gchar *gda_server_provider_get_last_insert_id (GdaServerProvider *provide | | const gchar *table_name); | |
| r, | | | |
| GdaConnection *cnc, | | | |
| GdaDataModel *recset); | | | |
| | | | |
|
| gboolean gda_server_provider_begin_transaction (GdaServerProvider *provider | | GList *gda_server_provider_execute_command (GdaServerProvider *provi | |
| , | | der, | |
| GdaConnection *cnc, | | | |
| GdaTransaction *xaction); | | | |
| gboolean gda_server_provider_commit_transaction (GdaServerProvider *provide | | | |
| r, | | | |
| GdaConnection *cnc, | | | |
| GdaTransaction *xaction); | | | |
| gboolean gda_server_provider_rollback_transaction (GdaServerProvider *provi | | | |
| der, | | | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
|
| GdaTransaction *xaction); | | GdaCommand *cmd, | |
| | | GdaParameterList *params) | |
| | | ; | |
| | | gchar *gda_server_provider_get_last_insert_id (GdaServerProvider *pr | |
| | | ovider, | |
| | | GdaConnection *cnc, | |
| | | GdaDataModel *recset); | |
| | | | |
|
| gboolean gda_server_provider_supports (GdaServerProvider *provider, | | gboolean gda_server_provider_begin_transaction (GdaServerProvider *pro | |
| GdaConnection *cnc, | | vider, | |
| GdaConnectionFeature feature); | | GdaConnection *cnc, | |
| | | GdaTransaction *xaction | |
| | | ); | |
| | | gboolean gda_server_provider_commit_transaction (GdaServerProvider *pr | |
| | | ovider, | |
| | | GdaConnection *cnc, | |
| | | GdaTransaction *xactio | |
| | | n); | |
| | | gboolean gda_server_provider_rollback_transaction (GdaServerProvider * | |
| | | provider, | |
| | | GdaConnection *cnc, | |
| | | GdaTransaction *xact | |
| | | ion); | |
| | | | |
| | | gboolean gda_server_provider_supports (GdaServerProvider *provider, | |
| | | GdaConnection *cnc, | |
| | | 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, | | gboolean gda_server_provider_create_blob (GdaServerProvider *provider, | |
| GdaConnection *cnc, | | GdaConnection *cnc, | |
| GdaBlob *blob); | | GdaBlob *blob); | |
| | | | |
|
| gboolean gda_server_provider_escape_string (GdaServerProvider *provider, | | gchar *gda_server_provider_value_to_sql_string (GdaServerProvider *p | |
| GdaConnection *cnc, | | rovider, | |
| const gchar *from, | | GdaConnection *cnc, | |
| gchar *to); | | GdaValue *from); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 26 change blocks. |
| 119 lines changed or deleted | | 170 lines changed or added | |
|
| gda-value.h | | gda-value.h | |
| | | | |
| skipping to change at line 141 | | skipping to change at line 141 | |
| guchar v_tinyuint; | | guchar v_tinyuint; | |
| GdaValueType v_type; | | GdaValueType v_type; | |
| guint v_uinteger; | | guint v_uinteger; | |
| } value; | | } value; | |
| glong binary_length; | | glong binary_length; | |
| } GdaValue; | | } GdaValue; | |
| | | | |
| /* Note: gda_value_get_type is already defined */ | | /* Note: gda_value_get_type is already defined */ | |
| #define GDA_TYPE_VALUE (gda_value_get_gtype()) | | #define GDA_TYPE_VALUE (gda_value_get_gtype()) | |
| | | | |
|
| GType gda_value_get_gtype (void); | | GType gda_value_get_gtype (void); | |
| 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 (gconstpointer val, glong size | |
| GdaValue *gda_value_new_blob (const GdaBlob *val); | | ); | |
| GdaValue *gda_value_new_boolean (gboolean val); | | GdaValue *gda_value_new_blob (const GdaBlob *val); | |
| GdaValue *gda_value_new_date (const GdaDate *val); | | GdaValue *gda_value_new_boolean (gboolean val); | |
| GdaValue *gda_value_new_double (gdouble val); | | GdaValue *gda_value_new_date (const GdaDate *val); | |
| GdaValue *gda_value_new_geometric_point (const GdaGeometricPoint *val); | | GdaValue *gda_value_new_double (gdouble val); | |
| GdaValue *gda_value_new_gobject (const GObject *val); | | GdaValue *gda_value_new_geometric_point (const GdaGeometricPo | |
| GdaValue *gda_value_new_integer (gint val); | | int *val); | |
| GdaValue *gda_value_new_list (const GdaValueList *val); | | GdaValue *gda_value_new_gobject (const GObject *val); | |
| GdaValue *gda_value_new_money (const GdaMoney *val); | | GdaValue *gda_value_new_integer (gint val); | |
| GdaValue *gda_value_new_numeric (const GdaNumeric *val); | | GdaValue *gda_value_new_list (const GdaValueList *val); | |
| GdaValue *gda_value_new_single (gfloat val); | | GdaValue *gda_value_new_money (const GdaMoney *val); | |
| GdaValue *gda_value_new_smallint (gshort val); | | GdaValue *gda_value_new_numeric (const GdaNumeric *val); | |
| GdaValue *gda_value_new_smalluint (gushort val); | | GdaValue *gda_value_new_single (gfloat val); | |
| GdaValue *gda_value_new_string (const gchar *val); | | GdaValue *gda_value_new_smallint (gshort val); | |
| GdaValue *gda_value_new_time (const GdaTime *val); | | GdaValue *gda_value_new_smalluint (gushort val); | |
| GdaValue *gda_value_new_timestamp (const GdaTimestamp *val); | | GdaValue *gda_value_new_string (const gchar *val); | |
| GdaValue *gda_value_new_timestamp_from_timet (time_t val); | | GdaValue *gda_value_new_time (const GdaTime *val); | |
| GdaValue *gda_value_new_tinyint (gchar val); | | GdaValue *gda_value_new_timestamp (const GdaTimestamp *val); | |
| GdaValue *gda_value_new_tinyuint (guchar val); | | GdaValue *gda_value_new_timestamp_from_timet (time_t val); | |
| GdaValue *gda_value_new_type (GdaValueType val); | | GdaValue *gda_value_new_tinyint (gchar val); | |
| GdaValue *gda_value_new_uinteger(guint val); | | GdaValue *gda_value_new_tinyuint (guchar val); | |
| GdaValue *gda_value_new_from_string (const gchar *as_string, | | GdaValue *gda_value_new_type (GdaValueType val); | |
| | | GdaValue *gda_value_new_uinteger(guint val); | |
| | | GdaValue *gda_value_new_from_string (const gchar *as_string, | |
| GdaValueType type); | | GdaValueType type); | |
|
| GdaValue *gda_value_new_from_xml (const xmlNodePtr node); | | GdaValue *gda_value_new_from_xml (const xmlNodePtr node); | |
| | | | |
|
| void gda_value_free (GdaValue *value); | | void gda_value_free (GdaValue *value); | |
| | | | |
|
| GdaValueType gda_value_get_type (GdaValue *value); | | GdaValueType gda_value_get_type (GdaValue *value); | |
| #define gda_value_isa(value,type) (gda_value_get_type (value) == type | | #define gda_value_isa(value,type) (gda_value_get_type (valu | |
| ) | | e) == 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, gint64 val); | | void gda_value_set_bigint (GdaValue *value, gint64 val); | |
| guint64 gda_value_get_biguint (GdaValue *value); | | guint64 gda_value_get_biguint (GdaValue *value); | |
| void gda_value_set_biguint (GdaValue *value, guint64 val); | | void gda_value_set_biguint (GdaValue *value, guint64 val | |
| | | ); | |
| G_CONST_RETURN gpointer gda_value_get_binary (GdaValue *value, glong *size)
; | | G_CONST_RETURN gpointer gda_value_get_binary (GdaValue *value, glong *size)
; | |
|
| void gda_value_set_binary (GdaValue *value, gconstpointer val, glo
ng size); | | void gda_value_set_binary (GdaValue *value, gconstpointe
r 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, const GdaBlob *val); | | void gda_value_set_blob (GdaValue *value, const GdaBlob | |
| gboolean gda_value_get_boolean (GdaValue *value); | | *val); | |
| void gda_value_set_boolean (GdaValue *value, gboolean val); | | gboolean gda_value_get_boolean (GdaValue *value); | |
| | | void gda_value_set_boolean (GdaValue *value, gboolean va | |
| | | l); | |
| 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, const GdaDate *val); | | void gda_value_set_date (GdaValue *value, const GdaDate | |
| gdouble gda_value_get_double (GdaValue *value); | | *val); | |
| void gda_value_set_double (GdaValue *value, gdouble val); | | gdouble gda_value_get_double (GdaValue *value); | |
| | | void gda_value_set_double (GdaValue *value, gdouble 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 GdaGeom
etricPoint *val); | | void gda_value_set_geometric_point (GdaValue *value, con
st GdaGeometricPoint *val); | |
| G_CONST_RETURN GObject *gda_value_get_gobject (GdaValue *value); | | G_CONST_RETURN GObject *gda_value_get_gobject (GdaValue *value); | |
|
| void gda_value_set_gobject (GdaValue *value, const GObject *val); | | void gda_value_set_gobject (GdaValue *value, const GObje | |
| gint gda_value_get_integer (GdaValue *value); | | ct *val); | |
| void gda_value_set_integer (GdaValue *value, gint val); | | gint gda_value_get_integer (GdaValue *value); | |
| | | void gda_value_set_integer (GdaValue *value, gint val); | |
| G_CONST_RETURN GdaValueList *gda_value_get_list (GdaValue *value); | | G_CONST_RETURN GdaValueList *gda_value_get_list (GdaValue *value); | |
|
| void gda_value_set_list (GdaValue *value, const GdaValueList *val) | | void gda_value_set_list (GdaValue *value, const GdaValue | |
| ; | | List *val); | |
| void gda_value_set_null (GdaValue *value); | | void gda_value_set_null (GdaValue *value); | |
| G_CONST_RETURN GdaMoney *gda_value_get_money (GdaValue *value); | | G_CONST_RETURN GdaMoney *gda_value_get_money (GdaValue *value); | |
|
| void gda_value_set_money (GdaValue *value, const GdaMoney *val); | | void gda_value_set_money (GdaValue *value, const GdaMone
y *val); | |
| G_CONST_RETURN GdaNumeric *gda_value_get_numeric (GdaValue *value); | | G_CONST_RETURN GdaNumeric *gda_value_get_numeric (GdaValue *value); | |
|
| void gda_value_set_numeric (GdaValue *value, const GdaNumeric *val | | void gda_value_set_numeric (GdaValue *value, const GdaNu | |
| ); | | meric *val); | |
| gfloat gda_value_get_single (GdaValue *value); | | gfloat gda_value_get_single (GdaValue *value); | |
| void gda_value_set_single (GdaValue *value, gfloat val); | | void gda_value_set_single (GdaValue *value, gfloat val); | |
| gshort gda_value_get_smallint (GdaValue *value); | | gshort gda_value_get_smallint (GdaValue *value); | |
| void gda_value_set_smallint (GdaValue *value, gshort val); | | void gda_value_set_smallint (GdaValue *value, gshort val | |
| gushort gda_value_get_smalluint (GdaValue *value); | | ); | |
| void gda_value_set_smalluint (GdaValue *value, gushort val); | | gushort gda_value_get_smalluint (GdaValue *value); | |
| G_CONST_RETURN gchar *gda_value_get_string (GdaValue *value); | | void gda_value_set_smalluint (GdaValue *value, gushort v | |
| void gda_value_set_string (GdaValue *value, const gchar *val); | | al); | |
| | | G_CONST_RETURN gchar *gda_value_get_string (GdaValue *value); | |
| | | void gda_value_set_string (GdaValue *value, const gchar | |
| | | *val); | |
| G_CONST_RETURN GdaTime *gda_value_get_time (GdaValue *value); | | G_CONST_RETURN GdaTime *gda_value_get_time (GdaValue *value); | |
|
| void gda_value_set_time (GdaValue *value, const GdaTime *val); | | void gda_value_set_time (GdaValue *value, const GdaTime
*val); | |
| G_CONST_RETURN GdaTimestamp *gda_value_get_timestamp (GdaValue *value); | | G_CONST_RETURN GdaTimestamp *gda_value_get_timestamp (GdaValue *value); | |
|
| void gda_value_set_timestamp (GdaValue *value, const GdaTimestamp | | void gda_value_set_timestamp (GdaValue *value, const Gda | |
| *val); | | Timestamp *val); | |
| gchar gda_value_get_tinyint (GdaValue *value); | | gchar gda_value_get_tinyint (GdaValue *value); | |
| void gda_value_set_tinyint (GdaValue *value, gchar val); | | void gda_value_set_tinyint (GdaValue *value, gchar 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); | | ); | |
| void gda_value_set_uinteger (GdaValue *value, guint val); | | guint gda_value_get_uinteger (GdaValue *value); | |
| GdaValueType gda_value_get_vtype (GdaValue *value); | | void gda_value_set_uinteger (GdaValue *value, guint val) | |
| void gda_value_set_vtype (GdaValue *value, GdaValueType type); | | ; | |
| gboolean gda_value_set_from_string (GdaValue *value, | | GdaValueType gda_value_get_vtype (GdaValue *value); | |
| const gchar *as_string, | | void gda_value_set_vtype (GdaValue *value, GdaValueType | |
| GdaValueType type); | | type); | |
| gboolean gda_value_set_from_value (GdaValue *value, const GdaValue *fr | | gboolean gda_value_set_from_string (GdaValue *value, | |
| om); | | const gchar *as_string, | |
| | | GdaValueType type); | |
| | | gboolean gda_value_set_from_value (GdaValue *value, const Gd | |
| | | aValue *from); | |
| | | | |
|
| gint gda_value_compare (GdaValue *value1, | | gint gda_value_compare (GdaValue *value1, GdaValue *valu | |
| GdaValue *value2); | | e2); | |
| gchar *gda_value_stringify (GdaValue *value); | | gint gda_value_compare_ext (GdaValue *value1, GdaValue * | |
| xmlNodePtr gda_value_to_xml (GdaValue *value); | | value2); | |
| | | gchar *gda_value_stringify (GdaValue *value); | |
| | | xmlNodePtr gda_value_to_xml (GdaValue *value); | |
| | | | |
|
| GType gda_money_get_type (void); | | GType gda_money_get_type (void); | |
| GdaMoney* gda_money_copy (GdaMoney *src); | | GdaMoney* gda_money_copy (GdaMoney *src); | |
| void gda_money_free (GdaMoney *money); | | void gda_money_free (GdaMoney *money); | |
| | | | |
|
| GType gda_numeric_get_type (void); | | GType gda_numeric_get_type (void); | |
| GdaNumeric* gda_numeric_copy (GdaNumeric *src); | | GdaNumeric* gda_numeric_copy (GdaNumeric *src); | |
| void gda_numeric_free (GdaNumeric *money); | | void gda_numeric_free (GdaNumeric *money); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 18 change blocks. |
| 90 lines changed or deleted | | 106 lines changed or added | |
|
| libgda.h | | libgda.h | |
| /* GDA library | | /* GDA library | |
|
| * Copyright (C) 1998-2002 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> | |
|
| | | * Bas Driessen <bas.driessen@xobas.com> | |
| * | | * | |
| * 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 37 | | skipping to change at line 38 | |
| #include <libgda/gda-blob.h> | | #include <libgda/gda-blob.h> | |
| #include <libgda/gda-client.h> | | #include <libgda/gda-client.h> | |
| #include <libgda/gda-command.h> | | #include <libgda/gda-command.h> | |
| #include <libgda/gda-config.h> | | #include <libgda/gda-config.h> | |
| #include <libgda/gda-connection.h> | | #include <libgda/gda-connection.h> | |
| #include <libgda/gda-data-model.h> | | #include <libgda/gda-data-model.h> | |
| #include <libgda/gda-data-model-array.h> | | #include <libgda/gda-data-model-array.h> | |
| #include <libgda/gda-data-model-hash.h> | | #include <libgda/gda-data-model-hash.h> | |
| #include <libgda/gda-data-model-list.h> | | #include <libgda/gda-data-model-list.h> | |
| #include <libgda/gda-error.h> | | #include <libgda/gda-error.h> | |
|
| #include <libgda/gda-field.h> | | #include <libgda/gda-column.h> | |
| | | #include <libgda/gda-column-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-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-connection.h> | |
| | | | |
End of changes. 3 change blocks. |
| 2 lines changed or deleted | | 5 lines changed or added | |
|