[cogl/cogl-latest-win: 3/21] cogl/deprecated: Mark public APIs for export




commit c0f230ca853b84c18bb59e7c000acb5133aa8696
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Feb 11 17:01:09 2019 +0800

    cogl/deprecated: Mark public APIs for export
    
    This way we can reduce maintenance burden for the cogl.symbols file by
    using compiler directives to export public symbols.  cogl.symbols is
    still now kept as we still need to get rid of the private API calls
    within Cogl-Pango and Cogl-Path.

 cogl/deprecated/cogl-clutter-xlib.h |  2 +-
 cogl/deprecated/cogl-clutter.h      |  2 +-
 cogl/deprecated/cogl-fixed.h        | 31 ++++++++++++++++---------------
 3 files changed, 18 insertions(+), 17 deletions(-)
---
diff --git a/cogl/deprecated/cogl-clutter-xlib.h b/cogl/deprecated/cogl-clutter-xlib.h
index 424ff49b..fcc1064b 100644
--- a/cogl/deprecated/cogl-clutter-xlib.h
+++ b/cogl/deprecated/cogl-clutter-xlib.h
@@ -38,7 +38,7 @@
 COGL_BEGIN_DECLS
 
 #define cogl_clutter_winsys_xlib_get_visual_info cogl_clutter_winsys_xlib_get_visual_info_CLUTTER
-XVisualInfo *
+COGL_API XVisualInfo *
 cogl_clutter_winsys_xlib_get_visual_info (void);
 
 COGL_END_DECLS
diff --git a/cogl/deprecated/cogl-clutter.h b/cogl/deprecated/cogl-clutter.h
index cc6c4464..4af662d9 100644
--- a/cogl/deprecated/cogl-clutter.h
+++ b/cogl/deprecated/cogl-clutter.h
@@ -46,7 +46,7 @@ CoglBool
 cogl_clutter_winsys_has_feature (CoglWinsysFeature feature);
 
 #define cogl_onscreen_clutter_backend_set_size cogl_onscreen_clutter_backend_set_size_CLUTTER
-void
+COGL_API void
 cogl_onscreen_clutter_backend_set_size (int width, int height);
 
 COGL_END_DECLS
diff --git a/cogl/deprecated/cogl-fixed.h b/cogl/deprecated/cogl-fixed.h
index 106c5138..4c3dd4e5 100644
--- a/cogl/deprecated/cogl-fixed.h
+++ b/cogl/deprecated/cogl-fixed.h
@@ -475,7 +475,7 @@ COGL_BEGIN_DECLS
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_fixed_sin (CoglFixed angle);
 
 /**
@@ -488,7 +488,7 @@ cogl_fixed_sin (CoglFixed angle);
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_fixed_tan (CoglFixed angle);
 
 /**
@@ -501,6 +501,7 @@ cogl_fixed_tan (CoglFixed angle);
  *
  * Since: 1.0
  */
+COGL_API
 CoglFixed cogl_fixed_cos (CoglFixed angle);
 
 /**
@@ -513,7 +514,7 @@ CoglFixed cogl_fixed_cos (CoglFixed angle);
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_fixed_atan (CoglFixed a);
 
 /**
@@ -529,7 +530,7 @@ cogl_fixed_atan (CoglFixed a);
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_fixed_atan2 (CoglFixed a,
                   CoglFixed b);
 
@@ -627,7 +628,7 @@ cogl_fixed_mul_div (CoglFixed a,
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_fixed_sqrt (CoglFixed x);
 
 /**
@@ -643,7 +644,7 @@ cogl_fixed_sqrt (CoglFixed x);
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_fixed_log2 (unsigned int x);
 
 /**
@@ -659,7 +660,7 @@ cogl_fixed_log2 (unsigned int x);
  *
  * Since: 1.0
  */
-unsigned int
+COGL_API unsigned int
 cogl_fixed_pow2 (CoglFixed x);
 
 /**
@@ -673,7 +674,7 @@ cogl_fixed_pow2 (CoglFixed x);
  *
  * Since: 1.0
  */
-unsigned int
+COGL_API unsigned int
 cogl_fixed_pow  (unsigned int x,
                  CoglFixed y);
 
@@ -693,7 +694,7 @@ cogl_fixed_pow  (unsigned int x,
  *
  * Since: 1.0
  */
-int
+COGL_API int
 cogl_sqrti (int x);
 
 /**
@@ -747,7 +748,7 @@ cogl_sqrti (int x);
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_angle_sin (CoglAngle angle);
 
 /**
@@ -760,7 +761,7 @@ cogl_angle_sin (CoglAngle angle);
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_angle_tan (CoglAngle angle);
 
 /**
@@ -773,16 +774,16 @@ cogl_angle_tan (CoglAngle angle);
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_angle_cos (CoglAngle angle);
 
-CoglFixed
+COGL_API CoglFixed
 cogl_double_to_fixed (double value);
 
-int
+COGL_API int
 cogl_double_to_int   (double value);
 
-unsigned int
+COGL_API unsigned int
 cogl_double_to_uint (double value);
 
 COGL_END_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]