]> err.no Git - libchamplain/commitdiff
Add the macro CHAMPLAIN_MAP_SOURCE_DESC() for nicer casting
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Wed, 6 May 2009 09:10:26 +0000 (11:10 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Thu, 7 May 2009 12:58:12 +0000 (08:58 -0400)
champlain/champlain-map-source-desc.h

index e7e9f40c7af5fd2e54ce4c73450657aa5978f422..358b67a6397beb0373c0f15e8abf991043e63d42 100644 (file)
@@ -38,6 +38,8 @@ G_BEGIN_DECLS
 typedef ChamplainMapSource * (*ChamplainMapSourceConstructor) ();
 #define CHAMPLAIN_MAP_SOURCE_CONSTRUCTOR (f) ((ChamplainMapSourceConstructor) (f))
 
+#define CHAMPLAIN_MAP_SOURCE_DESC(obj)     ((ChamplainMapSourceDesc *) (obj))
+
 /**
  * ChamplainMapSourceDesc:
  *