Ryan Lortie dbb65b5465 GVariant: add new g_variant_new_take_string() API
Lots of people have variously asked for APIs like
g_variant_new_string_printf() in order to avoid having to use
g_strdup_printf(), create a GVariant using g_variant_new_string(), then
free the temporary string.

Instead of supporting that, plus a million other potential cases,
introduce g_variant_new_take_string() as a compromise.

It's not possible to write:

 v = g_variant_new_take_string (g_strdup_printf (....));

to get the desired result and avoid the extra copies.  In addition, it
works with many other functions.

https://bugzilla.gnome.org/show_bug.cgi?id=698455
2013-04-20 18:58:24 -04:00
..
2012-04-23 02:46:18 +01:00
2013-02-03 13:25:56 -05:00
2012-06-25 23:23:58 -04:00
2012-08-03 23:36:45 -04:00
2012-08-16 17:21:03 -04:00
2000-12-05 20:43:58 +00:00
2000-12-05 20:43:58 +00:00
2000-12-05 20:43:58 +00:00
2000-12-05 20:43:58 +00:00
2012-09-14 19:40:24 -04:00
2012-04-23 02:46:18 +01:00
2002-11-23 01:37:17 +00:00