From fb3a83820eda4211431e623e21b7c3b900503d61 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Wed, 21 Mar 2001 11:16:38 +0000 Subject: [PATCH] This takes a `const GValue *' argument. 2001-03-21 Martin Baulig * gboxed.[ch] (g_value_dup_boxed): This takes a `const GValue *' argument. --- gobject/ChangeLog | 5 +++++ gobject/gboxed.c | 2 +- gobject/gboxed.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 93f878a..37487b7 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,8 @@ +2001-03-21 Martin Baulig + + * gboxed.[ch] (g_value_dup_boxed): This takes a `const GValue *' + argument. + 2001-03-18 Tor Lillqvist * gobject.def: Correct some renamed functions. diff --git a/gobject/gboxed.c b/gobject/gboxed.c index 2924622..82fe36d 100644 --- a/gobject/gboxed.c +++ b/gobject/gboxed.c @@ -437,7 +437,7 @@ g_value_get_boxed (const GValue *value) } gpointer -g_value_dup_boxed (GValue *value) +g_value_dup_boxed (const GValue *value) { g_return_val_if_fail (G_VALUE_HOLDS_BOXED (value), NULL); g_return_val_if_fail (G_TYPE_IS_VALUE (G_VALUE_TYPE (value)), NULL); diff --git a/gobject/gboxed.h b/gobject/gboxed.h index e4e8f5e..742fd1d 100644 --- a/gobject/gboxed.h +++ b/gobject/gboxed.h @@ -45,7 +45,7 @@ void g_value_set_boxed (GValue *value, void g_value_set_static_boxed (GValue *value, gconstpointer boxed); gpointer g_value_get_boxed (const GValue *value); -gpointer g_value_dup_boxed (GValue *value); +gpointer g_value_dup_boxed (const GValue *value); /* --- convenience --- */ -- 2.7.4