From c0a1b8f02faa8f3d1ef174c578cb9061a39c8ec4 Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez Date: Wed, 6 May 2009 11:10:26 +0200 Subject: [PATCH] Add the macro CHAMPLAIN_MAP_SOURCE_DESC() for nicer casting --- champlain/champlain-map-source-desc.h | 2 ++ 1 file changed, 2 insertions(+) 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: * -- 2.39.5