Stop dithering over GPrivate

Take out the half-private g_private_init() stuff and replace it with a
G_PRIVATE_INIT macro that allows specifying a GDestroyNotify.

Expose the GPrivate structure in a public header.

Add a g_private_replace() to (sort of) match the functionality of
g_static_mutex_set().

Improve the documentation.

Deprecate g_private_new().
This commit is contained in:
Ryan Lortie
2011-09-30 14:22:04 -04:00
parent 7a75f56aa1
commit 8e43470c38
12 changed files with 273 additions and 201 deletions

View File

@@ -691,9 +691,13 @@ g_cond_broadcast
<SUBSECTION>
GPrivate
g_private_new
G_PRIVATE_INIT
g_private_get
g_private_set
g_private_replace
<SUBSECTION>
g_private_new
<SUBSECTION>
GStaticPrivate