From: Emmanuel Rodriguez Date: Wed, 6 May 2009 09:10:26 +0000 (+0200) Subject: Add the macro CHAMPLAIN_MAP_SOURCE_DESC() for nicer casting X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0a1b8f02faa8f3d1ef174c578cb9061a39c8ec4;p=libchamplain Add the macro CHAMPLAIN_MAP_SOURCE_DESC() for nicer casting --- diff --git a/champlain/champlain-map-source-desc.h b/champlain/champlain-map-source-desc.h index e7e9f40..358b67a 100644 --- a/champlain/champlain-map-source-desc.h +++ b/champlain/champlain-map-source-desc.h @@ -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: *