summaryrefslogtreecommitdiff
path: root/gobject/gvaluetypes.h
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-09-12 20:11:38 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-09-12 20:11:38 +0000
commitc3acb9da0c9dfff02b129258b9a8dc667514599c (patch)
tree12c46e05d0c5fc3409b8fd08a2161a1e4fe7beb7 /gobject/gvaluetypes.h
parent7c9f0a10f52074d81db915e9f3c94dc377b3c6c4 (diff)
downloadglib-c3acb9da0c9dfff02b129258b9a8dc667514599c.tar.gz
Make the g_value_set_x_take_ownership() functions "official" part of the
2003-09-12 Matthias Clasen <maclas@gmx.de> Make the g_value_set_x_take_ownership() functions "official" part of the API (#100948): * gvaluetypes.[hc]: Add g_value_take_string() (synonym to the now deprecated g_value_set_string_take_ownership()). * gparam.[hc]: Add g_value_take_param() (synonym to the now deprecated g_value_set_param_take_ownership()). * gobject.[hc]: Add g_value_take_object() (synonym to the now deprecated g_value_set_object_take_ownership()). * gboxed.[hc]: Add g_value_take_boxed() (synonym to the now deprecated g_value_set_boxed_take_ownership()). * gobject/gobject-sections.txt: Add new g_value_take_x() functions. * gobject/tmpl/param_value_types.sgml: Document new g_value_take_x() functions. (#100948)
Diffstat (limited to 'gobject/gvaluetypes.h')
-rw-r--r--gobject/gvaluetypes.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gobject/gvaluetypes.h b/gobject/gvaluetypes.h
index 4649bc856..dfe9ce3d3 100644
--- a/gobject/gvaluetypes.h
+++ b/gobject/gvaluetypes.h
@@ -97,9 +97,12 @@ GType g_pointer_type_register_static (const gchar *name);
gchar* g_strdup_value_contents (const GValue *value);
-/* --- marshaller specific --- */
+void g_value_take_string (GValue *value,
+ gchar *v_string);
+#ifndef G_DISABLE_DEPRECATED
void g_value_set_string_take_ownership (GValue *value,
gchar *v_string);
+#endif
/* humpf, need a C representable type name for G_TYPE_STRING */