Privatize all ClutterIdPool functions
The clutter-id-pool.h header is private and not installed; yet, all the clutter_id_pool_* symbols are public. Let's correct this oversight we've been stringing along since forever.
This commit is contained in:
parent
37fe8c509a
commit
3addeb91cc
3 changed files with 20 additions and 20 deletions
|
@ -42,7 +42,7 @@ struct _ClutterIDPool
|
|||
};
|
||||
|
||||
ClutterIDPool *
|
||||
clutter_id_pool_new (guint initial_size)
|
||||
_clutter_id_pool_new (guint initial_size)
|
||||
{
|
||||
ClutterIDPool *self;
|
||||
|
||||
|
@ -55,7 +55,7 @@ clutter_id_pool_new (guint initial_size)
|
|||
}
|
||||
|
||||
void
|
||||
clutter_id_pool_free (ClutterIDPool *id_pool)
|
||||
_clutter_id_pool_free (ClutterIDPool *id_pool)
|
||||
{
|
||||
g_return_if_fail (id_pool != NULL);
|
||||
|
||||
|
@ -65,8 +65,8 @@ clutter_id_pool_free (ClutterIDPool *id_pool)
|
|||
}
|
||||
|
||||
guint32
|
||||
clutter_id_pool_add (ClutterIDPool *id_pool,
|
||||
gpointer ptr)
|
||||
_clutter_id_pool_add (ClutterIDPool *id_pool,
|
||||
gpointer ptr)
|
||||
{
|
||||
gpointer *array;
|
||||
guint32 retval;
|
||||
|
@ -92,8 +92,8 @@ clutter_id_pool_add (ClutterIDPool *id_pool,
|
|||
}
|
||||
|
||||
void
|
||||
clutter_id_pool_remove (ClutterIDPool *id_pool,
|
||||
guint32 id_)
|
||||
_clutter_id_pool_remove (ClutterIDPool *id_pool,
|
||||
guint32 id_)
|
||||
{
|
||||
gpointer *array;
|
||||
|
||||
|
@ -109,8 +109,8 @@ clutter_id_pool_remove (ClutterIDPool *id_pool,
|
|||
}
|
||||
|
||||
gpointer
|
||||
clutter_id_pool_lookup (ClutterIDPool *id_pool,
|
||||
guint32 id_)
|
||||
_clutter_id_pool_lookup (ClutterIDPool *id_pool,
|
||||
guint32 id_)
|
||||
{
|
||||
gpointer *array;
|
||||
|
||||
|
|
|
@ -34,15 +34,15 @@ G_BEGIN_DECLS
|
|||
|
||||
typedef struct _ClutterIDPool ClutterIDPool;
|
||||
|
||||
ClutterIDPool *clutter_id_pool_new (guint initial_size);
|
||||
void clutter_id_pool_free (ClutterIDPool *id_pool);
|
||||
ClutterIDPool * _clutter_id_pool_new (guint initial_size);
|
||||
void _clutter_id_pool_free (ClutterIDPool *id_pool);
|
||||
|
||||
guint32 clutter_id_pool_add (ClutterIDPool *id_pool,
|
||||
gpointer ptr);
|
||||
void clutter_id_pool_remove (ClutterIDPool *id_pool,
|
||||
guint32 id_);
|
||||
gpointer clutter_id_pool_lookup (ClutterIDPool *id_pool,
|
||||
guint32 id_);
|
||||
guint32 _clutter_id_pool_add (ClutterIDPool *id_pool,
|
||||
gpointer ptr);
|
||||
void _clutter_id_pool_remove (ClutterIDPool *id_pool,
|
||||
guint32 id_);
|
||||
gpointer _clutter_id_pool_lookup (ClutterIDPool *id_pool,
|
||||
guint32 id_);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -293,7 +293,7 @@ _clutter_actor_get_by_id (guint32 actor_id)
|
|||
|
||||
g_assert (context->id_pool != NULL);
|
||||
|
||||
return clutter_id_pool_lookup (context->id_pool, actor_id);
|
||||
return _clutter_id_pool_lookup (context->id_pool, actor_id);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1571,7 +1571,7 @@ pre_parse_hook (GOptionContext *context,
|
|||
|
||||
clutter_context = _clutter_context_get_default ();
|
||||
|
||||
clutter_context->id_pool = clutter_id_pool_new (256);
|
||||
clutter_context->id_pool = _clutter_id_pool_new (256);
|
||||
|
||||
backend = clutter_context->backend;
|
||||
g_assert (CLUTTER_IS_BACKEND (backend));
|
||||
|
@ -3249,7 +3249,7 @@ _clutter_context_acquire_id (gpointer key)
|
|||
{
|
||||
ClutterMainContext *context = _clutter_context_get_default ();
|
||||
|
||||
return clutter_id_pool_add (context->id_pool, key);
|
||||
return _clutter_id_pool_add (context->id_pool, key);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -3257,7 +3257,7 @@ _clutter_context_release_id (guint32 id_)
|
|||
{
|
||||
ClutterMainContext *context = _clutter_context_get_default ();
|
||||
|
||||
return clutter_id_pool_remove (context->id_pool, id_);
|
||||
return _clutter_id_pool_remove (context->id_pool, id_);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue