[Cogl] [PATCH 52/53] build: Hide cogl_pipeline_cache_{new,free}()

Damien Lespiau damien.lespiau at gmail.com
Tue Jan 1 06:31:28 PST 2013


From: Damien Lespiau <damien.lespiau at intel.com>

Those symbols should not be public and were exported as they started
with cogl_.
---
 cogl/cogl-context.c        |    4 ++--
 cogl/cogl-pipeline-cache.c |    4 ++--
 cogl/cogl-pipeline-cache.h |    4 ++--
 cogl/cogl.symbols          |    2 --
 4 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/cogl/cogl-context.c b/cogl/cogl-context.c
index b33a9a3..30d4f21 100644
--- a/cogl/cogl-context.c
+++ b/cogl/cogl-context.c
@@ -321,7 +321,7 @@ cogl_context_new (CoglDisplay *display,
   context->depth_range_near_cache = 0;
   context->depth_range_far_cache = 1;
 
-  context->pipeline_cache = cogl_pipeline_cache_new ();
+  context->pipeline_cache = _cogl_pipeline_cache_new ();
 
   for (i = 0; i < COGL_BUFFER_BIND_TARGET_COUNT; i++)
     context->current_buffer[i] = NULL;
@@ -489,7 +489,7 @@ _cogl_context_free (CoglContext *context)
   _cogl_matrix_entry_cache_destroy (&context->builtin_flushed_projection);
   _cogl_matrix_entry_cache_destroy (&context->builtin_flushed_modelview);
 
-  cogl_pipeline_cache_free (context->pipeline_cache);
+  _cogl_pipeline_cache_free (context->pipeline_cache);
 
   _cogl_sampler_cache_free (context->sampler_cache);
 
diff --git a/cogl/cogl-pipeline-cache.c b/cogl/cogl-pipeline-cache.c
index eb2fe45..fab3614 100644
--- a/cogl/cogl-pipeline-cache.c
+++ b/cogl/cogl-pipeline-cache.c
@@ -143,7 +143,7 @@ pipeline_combined_equal (const void *a, const void *b)
 }
 
 CoglPipelineCache *
-cogl_pipeline_cache_new (void)
+_cogl_pipeline_cache_new (void)
 {
   CoglPipelineCache *cache = g_new (CoglPipelineCache, 1);
 
@@ -164,7 +164,7 @@ cogl_pipeline_cache_new (void)
 }
 
 void
-cogl_pipeline_cache_free (CoglPipelineCache *cache)
+_cogl_pipeline_cache_free (CoglPipelineCache *cache)
 {
   g_hash_table_destroy (cache->fragment_hash);
   g_hash_table_destroy (cache->vertex_hash);
diff --git a/cogl/cogl-pipeline-cache.h b/cogl/cogl-pipeline-cache.h
index c9a5d6a..6bc15fd 100644
--- a/cogl/cogl-pipeline-cache.h
+++ b/cogl/cogl-pipeline-cache.h
@@ -29,10 +29,10 @@
 typedef struct _CoglPipelineCache CoglPipelineCache;
 
 CoglPipelineCache *
-cogl_pipeline_cache_new (void);
+_cogl_pipeline_cache_new (void);
 
 void
-cogl_pipeline_cache_free (CoglPipelineCache *cache);
+_cogl_pipeline_cache_free (CoglPipelineCache *cache);
 
 /*
  * Gets a pipeline from the cache that has the same state as
diff --git a/cogl/cogl.symbols b/cogl/cogl.symbols
index 21dd5a7..3ecd020 100644
--- a/cogl/cogl.symbols
+++ b/cogl/cogl.symbols
@@ -366,8 +366,6 @@ cogl_perspective
 
 cogl_pipeline_add_layer_snippet
 cogl_pipeline_add_snippet
-cogl_pipeline_cache_free
-cogl_pipeline_cache_new
 cogl_pipeline_copy
 cogl_pipeline_foreach_layer
 cogl_pipeline_get_alpha_test_function
-- 
1.7.7.5



More information about the Cogl mailing list