[cogl/cogl.msvc.new: 7/19] cogl/deprecated: Mark public APIs for export



commit 96455d0897d8d47012568f8d875eedcb27bb97ac
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 73d0ed59..25fe52da 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);
 
@@ -601,7 +602,7 @@ cogl_fixed_mul_div (CoglFixed a,
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_fixed_sqrt (CoglFixed x);
 
 /**
@@ -617,7 +618,7 @@ cogl_fixed_sqrt (CoglFixed x);
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_fixed_log2 (unsigned int x);
 
 /**
@@ -633,7 +634,7 @@ cogl_fixed_log2 (unsigned int x);
  *
  * Since: 1.0
  */
-unsigned int
+COGL_API unsigned int
 cogl_fixed_pow2 (CoglFixed x);
 
 /**
@@ -647,7 +648,7 @@ cogl_fixed_pow2 (CoglFixed x);
  *
  * Since: 1.0
  */
-unsigned int
+COGL_API unsigned int
 cogl_fixed_pow  (unsigned int x,
                  CoglFixed y);
 
@@ -667,7 +668,7 @@ cogl_fixed_pow  (unsigned int x,
  *
  * Since: 1.0
  */
-int
+COGL_API int
 cogl_sqrti (int x);
 
 /**
@@ -721,7 +722,7 @@ cogl_sqrti (int x);
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_angle_sin (CoglAngle angle);
 
 /**
@@ -734,7 +735,7 @@ cogl_angle_sin (CoglAngle angle);
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_angle_tan (CoglAngle angle);
 
 /**
@@ -747,7 +748,7 @@ cogl_angle_tan (CoglAngle angle);
  *
  * Since: 1.0
  */
-CoglFixed
+COGL_API CoglFixed
 cogl_angle_cos (CoglAngle angle);
 
 /*< private >*/
@@ -797,13 +798,13 @@ cogl_fixed_mul_div (CoglFixed a,
 }
 #endif
 
-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]