mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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
@ -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,7 +65,7 @@ clutter_id_pool_free (ClutterIDPool *id_pool)
|
||||
}
|
||||
|
||||
guint32
|
||||
clutter_id_pool_add (ClutterIDPool *id_pool,
|
||||
_clutter_id_pool_add (ClutterIDPool *id_pool,
|
||||
gpointer ptr)
|
||||
{
|
||||
gpointer *array;
|
||||
@ -92,7 +92,7 @@ clutter_id_pool_add (ClutterIDPool *id_pool,
|
||||
}
|
||||
|
||||
void
|
||||
clutter_id_pool_remove (ClutterIDPool *id_pool,
|
||||
_clutter_id_pool_remove (ClutterIDPool *id_pool,
|
||||
guint32 id_)
|
||||
{
|
||||
gpointer *array;
|
||||
@ -109,7 +109,7 @@ clutter_id_pool_remove (ClutterIDPool *id_pool,
|
||||
}
|
||||
|
||||
gpointer
|
||||
clutter_id_pool_lookup (ClutterIDPool *id_pool,
|
||||
_clutter_id_pool_lookup (ClutterIDPool *id_pool,
|
||||
guint32 id_)
|
||||
{
|
||||
gpointer *array;
|
||||
|
@ -34,14 +34,14 @@ 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,
|
||||
guint32 _clutter_id_pool_add (ClutterIDPool *id_pool,
|
||||
gpointer ptr);
|
||||
void clutter_id_pool_remove (ClutterIDPool *id_pool,
|
||||
void _clutter_id_pool_remove (ClutterIDPool *id_pool,
|
||||
guint32 id_);
|
||||
gpointer clutter_id_pool_lookup (ClutterIDPool *id_pool,
|
||||
gpointer _clutter_id_pool_lookup (ClutterIDPool *id_pool,
|
||||
guint32 id_);
|
||||
|
||||
|
||||
|
@ -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 New Issue
Block a user