Make g_rc_box_dup()/g_arc_box_dup() more generic
commit8990c3c4d3a875e3360f9208d655d917669f54cf
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 11 Jun 2018 16:14:12 +0000 (11 17:14 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 9 Jul 2018 09:11:42 +0000 (9 10:11 +0100)
tree307d7388556a87c303fa8c46bfde47cf6c730c17
parentb607927a4338cb6906ac67586268828a9aa8eed8
Make g_rc_box_dup()/g_arc_box_dup() more generic

It's more useful to have a dup() function that copies any blob of memory
into a reference counted allocation, than to have a dup() that only
copies a reference counted allocation.
glib/garcbox.c
glib/grcbox.c
glib/grcbox.h
glib/tests/rcbox.c