Re: [gnome-db] Re: const GList*



> And for you, it's also easy, you just have to run:
> 
> $ cvsdiff ChangeLog libgda/gda-row.[ch] libgda/gda-value.[ch] > patch
> 
> then, send a 2nd one with the rest of the changes.

I couldn't find cvsdiff on my machine.  I guess you meant 'cvs diff -u'.
Anyway, the result of the command follows.  It still includes much
more changes than you want.  I think it'll take less time if you start
from scratch.

Paisa



Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libgda/ChangeLog,v
retrieving revision 1.588
diff -u -r1.588 ChangeLog
--- ChangeLog	16 Nov 2003 03:27:30 -0000	1.588
+++ ChangeLog	18 Dec 2003 01:01:50 -0000
@@ -1,3 +1,11 @@
+2003-11-15  Paisa Seeluangsawat <paisa users sf net>
+
+	* libgda/*:
+	* providers/*/*:
+  	  - removed 'const' from GdaRow, GdaValue, and any
+	    GLib/Gtk/Gnome/libgda structs in sight.
+	  - trivial fixes to stop some compiler warnings (gcc 3.2.2)
+	
 2003-11-12  Paisa Seeluangsawat <paisa users sf net>
 	
 	* libgda/gda-blob.c:
@@ -15,7 +23,6 @@
 	  FALSE (as advertised in the spec).  No longer clones the GdaRows
 	  sent to user's callback.
 
-
 2003-11-12  Gonzalo Paniagua Javier <gonzalo gnome-db org>
 
 	* libgda/gda-value.c: fixed gda_value_copy for GdaNumeric. Patch by
Index: libgda/gda-row.c
===================================================================
RCS file: /cvs/gnome/libgda/libgda/gda-row.c,v
retrieving revision 1.37
diff -u -r1.37 gda-row.c
--- libgda/gda-row.c	16 Nov 2003 01:28:36 -0000	1.37
+++ libgda/gda-row.c	18 Dec 2003 01:01:51 -0000
@@ -80,7 +80,7 @@
  * Returns: the newly created row.
  */
 GdaRow *
-gda_row_new_from_list (GdaDataModel *model, const GList *values)
+gda_row_new_from_list (GdaDataModel *model, GList *values)
 {
 	GdaRow *row;
 	const GList *l;
@@ -88,7 +88,7 @@
 
 	row = gda_row_new (model, g_list_length ((GList *) values));
 	for (i = 0, l = values; l != NULL; l = l->next, i++) {
-		const GdaValue *value = (const GdaValue *) l->data;
+		GdaValue *value = l->data;
 
 		if (value)
 			gda_value_set_from_value (gda_row_get_value (row, i), value);
@@ -246,7 +246,7 @@
  * 
  * Returns: a pointer to the #GdaValue in the position @num of @row.
  */
-G_CONST_RETURN GdaValue *
+GdaValue *
 gda_row_get_value (GdaRow *row, gint num)
 {
 	g_return_val_if_fail (row != NULL, NULL);
Index: libgda/gda-row.h
===================================================================
RCS file: /cvs/gnome/libgda/libgda/gda-row.h,v
retrieving revision 1.27
diff -u -r1.27 gda-row.h
--- libgda/gda-row.h	11 Nov 2003 16:48:36 -0000	1.27
+++ libgda/gda-row.h	18 Dec 2003 01:01:51 -0000
@@ -35,7 +35,7 @@
 
 GType                    gda_row_get_type (void);
 GdaRow                  *gda_row_new (GdaDataModel *model, gint count);
-GdaRow                  *gda_row_new_from_list (GdaDataModel *model, const GList *values);
+GdaRow                  *gda_row_new_from_list (GdaDataModel *model, GList *values);
 GdaRow                  *gda_row_copy (GdaRow *row);
 void                     gda_row_free (GdaRow *row);
 GdaDataModel            *gda_row_get_model (GdaRow *row);
@@ -43,7 +43,7 @@
 void                     gda_row_set_number (GdaRow *row, gint number);
 const gchar             *gda_row_get_id (GdaRow *row);
 void                     gda_row_set_id (GdaRow *row, const gchar *id);
-G_CONST_RETURN 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);
 
 G_END_DECLS
Index: libgda/gda-value.c
===================================================================
RCS file: /cvs/gnome/libgda/libgda/gda-value.c,v
retrieving revision 1.60
diff -u -r1.60 gda-value.c
--- libgda/gda-value.c	12 Nov 2003 15:56:15 -0000	1.60
+++ libgda/gda-value.c	18 Dec 2003 01:01:56 -0000
@@ -403,7 +403,7 @@
  * Returns: the newly created #GdaValue.
  */
 GdaValue *
-gda_value_new_date (const GdaDate *val)
+gda_value_new_date (GdaDate *val)
 {
 	GdaValue *value;
 
@@ -442,7 +442,7 @@
  * Returns: the newly created #GdaValue.
  */
 GdaValue *
-gda_value_new_geometric_point (const GdaGeometricPoint *val)
+gda_value_new_geometric_point (GdaGeometricPoint *val)
 {
 	GdaValue *value;
 
@@ -461,7 +461,7 @@
  * Returns: the newly created #GdaValue.
  */
 GdaValue *
-gda_value_new_gobject (const GObject *val)
+gda_value_new_gobject (GObject *val)
 {
 	GdaValue *value;
 
@@ -517,7 +517,7 @@
  * Returns: the newly created #GdaValue.
  */
 GdaValue *
-gda_value_new_list (const GdaValueList *val)
+gda_value_new_list (GdaValueList *val)
 {
 	GdaValue *value;
 
@@ -536,7 +536,7 @@
  * Returns: the newly created #GdaValue.
  */
 GdaValue *
-gda_value_new_money (const GdaMoney *val)
+gda_value_new_money (GdaMoney *val)
 {
 	GdaValue *value;
 
@@ -555,7 +555,7 @@
  * Returns: the newly created #GdaValue.
  */
 GdaValue *
-gda_value_new_numeric (const GdaNumeric *val)
+gda_value_new_numeric (GdaNumeric *val)
 {
 	GdaValue *value;
 
@@ -650,7 +650,7 @@
  * Returns: the newly created #GdaValue.
  */
 GdaValue *
-gda_value_new_time (const GdaTime *val)
+gda_value_new_time (GdaTime *val)
 {
 	GdaValue *value;
 
@@ -669,7 +669,7 @@
  * Returns: the newly created #GdaValue.
  */
 GdaValue *
-gda_value_new_timestamp (const GdaTimestamp *val)
+gda_value_new_timestamp (GdaTimestamp *val)
 {
 	GdaValue *value;
 
@@ -706,7 +706,7 @@
 		tstamp.second = ltm->tm_sec;
 		tstamp.fraction = 0;
 		tstamp.timezone = 0; /* FIXME */
-		gda_value_set_timestamp (value, (const GdaTimestamp *) &tstamp);
+		gda_value_set_timestamp (value, &tstamp);
 	}
 
 	return value;
@@ -851,7 +851,7 @@
  * Returns: the #GdaValueType of the value.
  */
 GdaValueType
-gda_value_get_type (const GdaValue *value)
+gda_value_get_type (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, GDA_VALUE_TYPE_UNKNOWN);
 	return value->type;
@@ -867,7 +867,7 @@
  * #GDA_VALUE_TYPE_NULL.
  */
 gboolean
-gda_value_is_null (const GdaValue *value)
+gda_value_is_null (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, FALSE);
 	return value->type == GDA_VALUE_TYPE_NULL;
@@ -883,7 +883,7 @@
  * Returns: %TRUE if a number, %FALSE otherwise.
  */
 gboolean
-gda_value_is_number (const GdaValue *value)
+gda_value_is_number (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, FALSE);
 
@@ -916,7 +916,7 @@
  * Returns: a newly allocated #GdaValue with a copy of the data in @value.
  */
 GdaValue *
-gda_value_copy (const GdaValue *value)
+gda_value_copy (GdaValue *value)
 {
 	GdaValue *copy;
 	GList *l;
@@ -1025,7 +1025,7 @@
  * Returns: the value contained in @value.
  */
 gint64
-gda_value_get_bigint (const GdaValue *value)
+gda_value_get_bigint (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, -1);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_BIGINT), -1);
@@ -1056,7 +1056,7 @@
  * Returns: the value stored in @value.
  */
 guint64
-gda_value_get_biguint (const GdaValue *value)
+gda_value_get_biguint (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, -1);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_BIGUINT), -1);
@@ -1088,7 +1088,7 @@
  * Returns: the value stored in @value.
  */
 G_CONST_RETURN gpointer
-gda_value_get_binary (const GdaValue *value, glong *size)
+gda_value_get_binary (GdaValue *value, glong *size)
 {
 	gpointer val;
 
@@ -1128,12 +1128,12 @@
  *
  * Returns: the value stored in @value.
  */
-const GdaBlob *
-gda_value_get_blob (const GdaValue *value)
+GdaBlob *
+gda_value_get_blob (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, NULL);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_BLOB), NULL);
-	return (const GdaBlob *) &value->value.v_blob;
+	return &value->value.v_blob;
 }
 
 /**
@@ -1144,7 +1144,7 @@
  * Stores @val into @value.
  */
 void
-gda_value_set_blob (GdaValue *value, const GdaBlob *val)
+gda_value_set_blob (GdaValue *value, GdaBlob *val)
 {
 	g_return_if_fail (value != NULL);
 	g_return_if_fail (val != NULL);
@@ -1166,7 +1166,7 @@
  * Returns: the value stored in @value.
  */
 gboolean
-gda_value_get_boolean (const GdaValue *value)
+gda_value_get_boolean (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, FALSE);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_BOOLEAN), FALSE);
@@ -1196,12 +1196,12 @@
  *
  * Returns: the value stored in @value.
  */
-G_CONST_RETURN GdaDate *
-gda_value_get_date (const GdaValue *value)
+GdaDate *
+gda_value_get_date (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, NULL);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_DATE), NULL);
-	return (const GdaDate *) &value->value.v_date;
+	return &value->value.v_date;
 }
 
 /**
@@ -1212,7 +1212,7 @@
  * Stores @val into @value.
  */
 void
-gda_value_set_date (GdaValue *value, const GdaDate *val)
+gda_value_set_date (GdaValue *value, GdaDate *val)
 {
 	g_return_if_fail (value != NULL);
 	g_return_if_fail (val != NULL);
@@ -1231,7 +1231,7 @@
  * Returns: the value stored in @value.
  */
 gdouble
-gda_value_get_double (const GdaValue *value)
+gda_value_get_double (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, -1);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_DOUBLE), -1);
@@ -1261,12 +1261,12 @@
  *
  * Returns: the value stored in @value.
  */
-G_CONST_RETURN GdaGeometricPoint *
-gda_value_get_geometric_point (const GdaValue *value)
+GdaGeometricPoint *
+gda_value_get_geometric_point (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, NULL);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_GEOMETRIC_POINT), NULL);
-	return (const GdaGeometricPoint *) &value->value;
+	return (GdaGeometricPoint *) &value->value;
 }
 
 /**
@@ -1277,7 +1277,7 @@
  * Stores @val into @value.
  */
 void
-gda_value_set_geometric_point (GdaValue *value, const GdaGeometricPoint *val)
+gda_value_set_geometric_point (GdaValue *value, GdaGeometricPoint *val)
 {
 	g_return_if_fail (value != NULL);
 	g_return_if_fail (val != NULL);
@@ -1294,12 +1294,12 @@
  *
  * Returns: the value stored in @value.
  */
-G_CONST_RETURN GObject *
-gda_value_get_gobject (const GdaValue *value)
+GObject *
+gda_value_get_gobject (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, NULL);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_GOBJECT), NULL);
-	return (const GObject *) value->value.v_gobj;
+	return value->value.v_gobj;
 }
 
 /**
@@ -1310,7 +1310,7 @@
  * Stores @val into @value.
  */
 void
-gda_value_set_gobject (GdaValue *value, const GObject *val)
+gda_value_set_gobject (GdaValue *value, GObject *val)
 {
 	g_return_if_fail (value != NULL);
 
@@ -1328,7 +1328,7 @@
  * Returns: the value stored in @value.
  */
 gint
-gda_value_get_integer (const GdaValue *value)
+gda_value_get_integer (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, -1);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_INTEGER), -1);
@@ -1358,12 +1358,12 @@
  *
  * Returns: the value stored in @value.
  */
-G_CONST_RETURN GdaValueList *
-gda_value_get_list (const GdaValue *value)
+GdaValueList *
+gda_value_get_list (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, NULL);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_LIST), NULL);
-	return (const GdaValueList *) value->value.v_list;
+	return value->value.v_list;
 }
 
 /**
@@ -1374,7 +1374,7 @@
  * Stores @val into @value.
  */
 void
-gda_value_set_list (GdaValue *value, const GdaValueList *val)
+gda_value_set_list (GdaValue *value, GdaValueList *val)
 {
 	g_return_if_fail (value != NULL);
 	g_return_if_fail (val != NULL);
@@ -1388,12 +1388,12 @@
  *
  * Returns: the value stored in @value.
  */
-G_CONST_RETURN GdaMoney *
-gda_value_get_money (const GdaValue *value)
+GdaMoney *
+gda_value_get_money (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, NULL);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_MONEY), NULL);
-	return (const GdaMoney *) &value->value.v_money;
+	return &value->value.v_money;
 }
 
 /**
@@ -1404,7 +1404,7 @@
  * Stores @val into @value.
  */
 void
-gda_value_set_money (GdaValue *value, const GdaMoney *val)
+gda_value_set_money (GdaValue *value, GdaMoney *val)
 {
 	g_return_if_fail (value != NULL);
 	g_return_if_fail (val != NULL);
@@ -1436,12 +1436,12 @@
  *
  * Returns: the value stored in @value.
  */
-G_CONST_RETURN GdaNumeric *
-gda_value_get_numeric (const GdaValue *value)
+GdaNumeric *
+gda_value_get_numeric (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, NULL);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_NUMERIC), NULL);
-	return (const GdaNumeric *) &value->value.v_numeric;
+	return &value->value.v_numeric;
 }
 
 /**
@@ -1452,7 +1452,7 @@
  * Stores @val into @value.
  */
 void
-gda_value_set_numeric (GdaValue *value, const GdaNumeric *val)
+gda_value_set_numeric (GdaValue *value, GdaNumeric *val)
 {
 	g_return_if_fail (value != NULL);
 	g_return_if_fail (val != NULL);
@@ -1471,7 +1471,7 @@
  * Returns: the value stored in @value.
  */
 gfloat
-gda_value_get_single (const GdaValue *value)
+gda_value_get_single (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, -1);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_SINGLE), -1);
@@ -1502,7 +1502,7 @@
  * Returns: the value stored in @value.
  */
 gshort
-gda_value_get_smallint (const GdaValue *value)
+gda_value_get_smallint (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, -1);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_SMALLINT), -1);
@@ -1533,7 +1533,7 @@
  * Returns: the value stored in @value.
  */
 gushort
-gda_value_get_smalluint (const GdaValue *value)
+gda_value_get_smalluint (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, -1);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_SMALLUINT), -1);
@@ -1564,7 +1564,7 @@
  * Returns: the value stored in @value.
  */
 const gchar *
-gda_value_get_string (const GdaValue *value)
+gda_value_get_string (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, NULL);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_STRING), NULL);
@@ -1594,12 +1594,12 @@
  *
  * Returns: the value stored in @value.
  */
-const GdaTime *
-gda_value_get_time (const GdaValue *value)
+GdaTime *
+gda_value_get_time (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, NULL);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_TIME), NULL);
-	return (const GdaTime *) &value->value.v_time;
+	return &value->value.v_time;
 }
 
 /**
@@ -1610,7 +1610,7 @@
  * Stores @val into @value.
  */
 void
-gda_value_set_time (GdaValue *value, const GdaTime *val)
+gda_value_set_time (GdaValue *value, GdaTime *val)
 {
 	g_return_if_fail (value != NULL);
 	g_return_if_fail (val != NULL);
@@ -1629,12 +1629,12 @@
  *
  * Returns: the value stored in @value.
  */
-const GdaTimestamp *
-gda_value_get_timestamp (const GdaValue *value)
+GdaTimestamp *
+gda_value_get_timestamp (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, NULL);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_TIMESTAMP), NULL);
-	return (const GdaTimestamp *) &value->value.v_timestamp;
+	return &value->value.v_timestamp;
 }
 
 /**
@@ -1645,7 +1645,7 @@
  * Stores @val into @value.
  */
 void
-gda_value_set_timestamp (GdaValue *value, const GdaTimestamp *val)
+gda_value_set_timestamp (GdaValue *value, GdaTimestamp *val)
 {
 	g_return_if_fail (value != NULL);
 	g_return_if_fail (val != NULL);
@@ -1669,7 +1669,7 @@
  * Returns: the value stored in @value.
  */
 gchar
-gda_value_get_tinyint (const GdaValue *value)
+gda_value_get_tinyint (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, -1);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_TINYINT), -1);
@@ -1700,7 +1700,7 @@
  * Returns: the value stored in @value.
  */
 guchar
-gda_value_get_tinyuint (const GdaValue *value)
+gda_value_get_tinyuint (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, -1);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_TINYUINT), -1);
@@ -1731,7 +1731,7 @@
  * Returns: the value stored in @value.
  */
 guint
-gda_value_get_uinteger (const GdaValue *value)
+gda_value_get_uinteger (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, -1);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_UINTEGER), -1);
@@ -1762,7 +1762,7 @@
  * Returns: the value stored in @value.
  */
 GdaValueType
-gda_value_get_vtype (const GdaValue *value)
+gda_value_get_vtype (GdaValue *value)
 {
 	g_return_val_if_fail (value != NULL, GDA_VALUE_TYPE_UNKNOWN);
 	g_return_val_if_fail (gda_value_isa (value, GDA_VALUE_TYPE_TYPE), GDA_VALUE_TYPE_UNKNOWN);
@@ -1824,7 +1824,7 @@
  * Returns: %TRUE if successful, %FALSE otherwise.
  */
 gboolean
-gda_value_set_from_value (GdaValue *value, const GdaValue *from)
+gda_value_set_from_value (GdaValue *value, GdaValue *from)
 {
 	g_return_val_if_fail (value != NULL, FALSE);
 	g_return_val_if_fail (from != NULL, FALSE);
@@ -1922,15 +1922,15 @@
  * the preceding table.
  */
 gchar *
-gda_value_stringify (const GdaValue *value)
+gda_value_stringify (GdaValue *value)
 {
-	const GdaTime *gdatime;
-	const GdaDate *gdadate;
-	const GdaTimestamp *timestamp;
-	const GdaGeometricPoint *point;
-	const GdaValueList *list;
-	const GdaNumeric *numeric;
-	const GdaBlob *gdablob;
+	GdaTime *gdatime;
+	GdaDate *gdadate;
+	GdaTimestamp *timestamp;
+	GdaGeometricPoint *point;
+	GdaValueList *list;
+	GdaNumeric *numeric;
+	GdaBlob *gdablob;
 	GList *l;
 	GString *str = NULL;
 	gchar *retval = NULL;
@@ -2091,7 +2091,7 @@
  * an integer greater than 0 if @value1 is greater than @value2.
  */
 gint
-gda_value_compare (const GdaValue *value1, const GdaValue *value2)
+gda_value_compare (GdaValue *value1, GdaValue *value2)
 {
 	GList *l1, *l2;
 	gint retval;
@@ -2211,7 +2211,7 @@
  * because of some localization with gda_value_stingify ().
  */
 static gchar *
-to_string (const GdaValue *value)
+to_string (GdaValue *value)
 {
 	gchar *retval = NULL;
 
@@ -2241,7 +2241,7 @@
  * Returns: the XML node. Once not needed anymore, you should free it.
  */
 xmlNodePtr
-gda_value_to_xml (const GdaValue *value)
+gda_value_to_xml (GdaValue *value)
 {
 	gchar *valstr;
 	xmlNodePtr retval;
Index: libgda/gda-value.h
===================================================================
RCS file: /cvs/gnome/libgda/libgda/gda-value.h,v
retrieving revision 1.34
diff -u -r1.34 gda-value.h
--- libgda/gda-value.h	11 Nov 2003 16:48:36 -0000	1.34
+++ libgda/gda-value.h	18 Dec 2003 01:01:56 -0000
@@ -143,22 +143,22 @@
 GdaValue     *gda_value_new_bigint (gint64 val);
 GdaValue     *gda_value_new_biguint(guint64 val);
 GdaValue     *gda_value_new_binary (gconstpointer val, glong size);
-GdaValue     *gda_value_new_blob (const GdaBlob *val);
+GdaValue     *gda_value_new_blob (GdaBlob *val);
 GdaValue     *gda_value_new_boolean (gboolean val);
-GdaValue     *gda_value_new_date (const GdaDate *val);
+GdaValue     *gda_value_new_date (GdaDate *val);
 GdaValue     *gda_value_new_double (gdouble val);
-GdaValue     *gda_value_new_geometric_point (const GdaGeometricPoint *val);
-GdaValue     *gda_value_new_gobject (const GObject *val);
+GdaValue     *gda_value_new_geometric_point (GdaGeometricPoint *val);
+GdaValue     *gda_value_new_gobject (GObject *val);
 GdaValue     *gda_value_new_integer (gint val);
-GdaValue     *gda_value_new_list (const GdaValueList *val);
-GdaValue     *gda_value_new_money (const GdaMoney *val);
-GdaValue     *gda_value_new_numeric (const GdaNumeric *val);
+GdaValue     *gda_value_new_list (GdaValueList *val);
+GdaValue     *gda_value_new_money (GdaMoney *val);
+GdaValue     *gda_value_new_numeric (GdaNumeric *val);
 GdaValue     *gda_value_new_single (gfloat val);
 GdaValue     *gda_value_new_smallint (gshort val);
 GdaValue     *gda_value_new_smalluint (gushort val);
 GdaValue     *gda_value_new_string (const gchar *val);
-GdaValue     *gda_value_new_time (const GdaTime *val);
-GdaValue     *gda_value_new_timestamp (const GdaTimestamp *val);
+GdaValue     *gda_value_new_time (GdaTime *val);
+GdaValue     *gda_value_new_timestamp (GdaTimestamp *val);
 GdaValue     *gda_value_new_timestamp_from_timet (time_t val);
 GdaValue     *gda_value_new_tinyint (gchar val);
 GdaValue     *gda_value_new_tinyuint (guchar val);
@@ -170,69 +170,69 @@
 
 void          gda_value_free (GdaValue *value);
 
-GdaValueType  gda_value_get_type (const GdaValue *value);
+GdaValueType  gda_value_get_type (GdaValue *value);
 #define       gda_value_isa(value,type) (gda_value_get_type (value) == type)
-gboolean      gda_value_is_null (const GdaValue *value);
-gboolean      gda_value_is_number (const GdaValue *value);
-GdaValue     *gda_value_copy (const GdaValue *value);
+gboolean      gda_value_is_null (GdaValue *value);
+gboolean      gda_value_is_number (GdaValue *value);
+GdaValue     *gda_value_copy (GdaValue *value);
 
-gint64        gda_value_get_bigint (const GdaValue *value);
+gint64        gda_value_get_bigint (GdaValue *value);
 void          gda_value_set_bigint (GdaValue *value, gint64 val);
-guint64       gda_value_get_biguint (const GdaValue *value);
+guint64       gda_value_get_biguint (GdaValue *value);
 void          gda_value_set_biguint (GdaValue *value, guint64 val);
-G_CONST_RETURN gpointer gda_value_get_binary (const 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, glong size);
-G_CONST_RETURN GdaBlob *gda_value_get_blob (const GdaValue *value);
-void          gda_value_set_blob (GdaValue *value, const GdaBlob *val);
-gboolean      gda_value_get_boolean (const GdaValue *value);
+GdaBlob      *gda_value_get_blob (GdaValue *value);
+void          gda_value_set_blob (GdaValue *value, GdaBlob *val);
+gboolean      gda_value_get_boolean (GdaValue *value);
 void          gda_value_set_boolean (GdaValue *value, gboolean val);
-G_CONST_RETURN GdaDate *gda_value_get_date (const GdaValue *value);
-void          gda_value_set_date (GdaValue *value, const GdaDate *val);
-gdouble       gda_value_get_double (const GdaValue *value);
+GdaDate      *gda_value_get_date (GdaValue *value);
+void          gda_value_set_date (GdaValue *value, GdaDate *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 (const GdaValue *value);
-void          gda_value_set_geometric_point (GdaValue *value, const GdaGeometricPoint *val);
-G_CONST_RETURN GObject *gda_value_get_gobject (const GdaValue *value);
-void          gda_value_set_gobject (GdaValue *value, const GObject *val);
-gint          gda_value_get_integer (const GdaValue *value);
+GdaGeometricPoint *gda_value_get_geometric_point (GdaValue *value);
+void          gda_value_set_geometric_point (GdaValue *value, GdaGeometricPoint *val);
+GObject      *gda_value_get_gobject (GdaValue *value);
+void          gda_value_set_gobject (GdaValue *value, GObject *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 (const GdaValue *value);
-void          gda_value_set_list (GdaValue *value, const GdaValueList *val);
+GdaValueList *gda_value_get_list (GdaValue *value);
+void          gda_value_set_list (GdaValue *value, GdaValueList *val);
 void          gda_value_set_null (GdaValue *value);
-G_CONST_RETURN GdaMoney *gda_value_get_money (const GdaValue *value);
-void          gda_value_set_money (GdaValue *value, const GdaMoney *val);
-G_CONST_RETURN GdaNumeric *gda_value_get_numeric (const GdaValue *value);
-void          gda_value_set_numeric (GdaValue *value, const GdaNumeric *val);
-gfloat        gda_value_get_single (const GdaValue *value);
+GdaMoney     *gda_value_get_money (GdaValue *value);
+void          gda_value_set_money (GdaValue *value, GdaMoney *val);
+GdaNumeric   *gda_value_get_numeric (GdaValue *value);
+void          gda_value_set_numeric (GdaValue *value, GdaNumeric *val);
+gfloat        gda_value_get_single (GdaValue *value);
 void          gda_value_set_single (GdaValue *value, gfloat val);
-gshort        gda_value_get_smallint (const GdaValue *value);
+gshort        gda_value_get_smallint (GdaValue *value);
 void          gda_value_set_smallint (GdaValue *value, gshort val);
-gushort       gda_value_get_smalluint (const GdaValue *value);
+gushort       gda_value_get_smalluint (GdaValue *value);
 void          gda_value_set_smalluint (GdaValue *value, gushort val);
-G_CONST_RETURN gchar  *gda_value_get_string (const GdaValue *value);
+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 (const GdaValue *value);
-void          gda_value_set_time (GdaValue *value, const GdaTime *val);
-G_CONST_RETURN GdaTimestamp *gda_value_get_timestamp (const GdaValue *value);
-void          gda_value_set_timestamp (GdaValue *value, const GdaTimestamp *val);
-gchar         gda_value_get_tinyint (const GdaValue *value);
+GdaTime      *gda_value_get_time (GdaValue *value);
+void          gda_value_set_time (GdaValue *value, GdaTime *val);
+GdaTimestamp *gda_value_get_timestamp (GdaValue *value);
+void          gda_value_set_timestamp (GdaValue *value, GdaTimestamp *val);
+gchar         gda_value_get_tinyint (GdaValue *value);
 void          gda_value_set_tinyint (GdaValue *value, gchar val);
-guchar        gda_value_get_tinyuint (const GdaValue *value);
+guchar        gda_value_get_tinyuint (GdaValue *value);
 void          gda_value_set_tinyuint (GdaValue *value, guchar val);
-guint         gda_value_get_uinteger (const GdaValue *value);
+guint         gda_value_get_uinteger (GdaValue *value);
 void          gda_value_set_uinteger (GdaValue *value, guint val);
-GdaValueType  gda_value_get_vtype (const GdaValue *value);
+GdaValueType  gda_value_get_vtype (GdaValue *value);
 void          gda_value_set_vtype (GdaValue *value, GdaValueType type);
 gboolean      gda_value_set_from_string (GdaValue *value, 
 					 const gchar *as_string,
 					 GdaValueType type);
-gboolean      gda_value_set_from_value (GdaValue *value, const GdaValue *from);
+gboolean      gda_value_set_from_value (GdaValue *value, GdaValue *from);
 
 
-gint          gda_value_compare (const GdaValue *value1,
-				 const GdaValue *value2);
-gchar        *gda_value_stringify (const GdaValue *value);
-xmlNodePtr    gda_value_to_xml (const GdaValue *value);
+gint          gda_value_compare (GdaValue *value1,
+				 GdaValue *value2);
+gchar        *gda_value_stringify (GdaValue *value);
+xmlNodePtr    gda_value_to_xml (GdaValue *value);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]