[mapserver-commits] r8926 - sandbox/graphics

svn at osgeo.org svn at osgeo.org
Sun Apr 19 13:22:34 EDT 2009


Author: tamas
Date: 2009-04-19 13:22:34 -0400 (Sun, 19 Apr 2009)
New Revision: 8926

Modified:
   sandbox/graphics/mapserver.h
Log:
Allow the SWIG bindings to compile

Modified: sandbox/graphics/mapserver.h
===================================================================
--- sandbox/graphics/mapserver.h	2009-04-19 14:18:49 UTC (rev 8925)
+++ sandbox/graphics/mapserver.h	2009-04-19 17:22:34 UTC (rev 8926)
@@ -2453,14 +2453,16 @@
 
 } labelStyleObj;
 
-
+#ifndef SWIG
 void msFreeRasterBuffer(rasterBufferObj *b);
+#endif /* SWIG */
 
 /* ==================================================================== */
 /*      Prototypes for functions in mapogl.cpp                          */
 /* ==================================================================== */
 
 #ifdef USE_OGL
+#ifndef SWIG
 void msDrawLineOgl(imageObj *img, shapeObj *p, colorObj *c, double width, int patternlength, double* pattern);
 imageObj* msImageCreateOgl(int width, int height, outputFormatObj *format, colorObj* bg);
 int msSaveImageOgl(imageObj *img, char *filename, outputFormatObj *format);
@@ -2506,6 +2508,7 @@
 void msCloseNewLayerOgl(imageObj *img, double opacity);
 void msFreeSymbolOgl(symbolObj *s);
 
+#endif /* SWIG */
 #endif  /* USE_OGL  */
 
 
@@ -2513,6 +2516,7 @@
 /*      prototypes for functions in mapcairo.c                        */
 /* ==================================================================== */
 #ifdef USE_CAIRO
+#ifndef SWIG
 	void renderLineCairo(imageObj *img, shapeObj *p, strokeStyleObj *s);
     imageObj* msImageCreateCairo(int width, int height, outputFormatObj *format, colorObj* bg);
     void getRasterBufferCairo(imageObj *img,rasterBufferObj *rb);
@@ -2554,11 +2558,13 @@
     void msStartNewLayerCairo(imageObj *img, double opacity);
     void msCloseNewLayerCairo(imageObj *img, double opacity);
     void msFreeSymbolCairo(symbolObj *s);
+#endif /* SWIG */
 #endif
 /* ==================================================================== */
 /*      end of prototypes for functions in mapcairo.c                 */
 /* ==================================================================== */   
 
+#ifndef SWIG
 renderObj* msCreateRenderer(int type);
 
 //allocate 50k for starters
@@ -2648,6 +2654,8 @@
     void (*freeSymbol)(symbolObj *symbol);
 } ;
 
+#endif /* SWIG */
+
 #ifdef __cplusplus
 }
 #endif



More information about the mapserver-commits mailing list