From: Debarshi Ray Date: Sun, 11 Oct 2009 16:25:31 +0000 (-0400) Subject: Fix 597272: Adjust the typedefs to to keep the C++ bindings happy X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e56f6fbda11b8f0269cf1040d781fccdf007d0a5;p=libchamplain Fix 597272: Adjust the typedefs to to keep the C++ bindings happy --- diff --git a/champlain/champlain-cache.h b/champlain/champlain-cache.h index 818aa76..7eedc24 100644 --- a/champlain/champlain-cache.h +++ b/champlain/champlain-cache.h @@ -44,13 +44,16 @@ G_BEGIN_DECLS #define CHAMPLAIN_CACHE_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), CHAMPLAIN_TYPE_CACHE, ChamplainCacheClass)) -typedef struct { +typedef struct _ChamplainCache ChamplainCache; +typedef struct _ChamplainCacheClass ChamplainCacheClass; + +struct _ChamplainCache { GObject parent; -} ChamplainCache; +}; -typedef struct { +struct _ChamplainCacheClass { GObjectClass parent_class; -} ChamplainCacheClass; +}; GType champlain_cache_get_type (void); diff --git a/champlain/champlain-layer.h b/champlain/champlain-layer.h index b8469f6..e088421 100644 --- a/champlain/champlain-layer.h +++ b/champlain/champlain-layer.h @@ -48,13 +48,16 @@ G_BEGIN_DECLS #define CHAMPLAIN_LAYER_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), CHAMPLAIN_TYPE_LAYER, ChamplainLayerClass)) -typedef struct { +typedef struct _ChamplainLayer ChamplainLayer; +typedef struct _ChamplainLayerClass ChamplainLayerClass; + +struct _ChamplainLayer { ClutterGroup parent; -} ChamplainLayer; +}; -typedef struct { +struct _ChamplainLayerClass { ClutterGroupClass parent_class; -} ChamplainLayerClass; +}; GType champlain_layer_get_type (void); diff --git a/champlain/champlain-polygon.h b/champlain/champlain-polygon.h index 74d1269..7654e07 100644 --- a/champlain/champlain-polygon.h +++ b/champlain/champlain-polygon.h @@ -49,14 +49,17 @@ G_BEGIN_DECLS typedef struct _ChamplainPolygonPrivate ChamplainPolygonPrivate; -typedef struct { +typedef struct _ChamplainPolygon ChamplainPolygon; +typedef struct _ChamplainPolygonClass ChamplainPolygonClass; + +struct _ChamplainPolygon { GInitiallyUnowned parent; ChamplainPolygonPrivate *priv; -} ChamplainPolygon; +}; -typedef struct { +struct _ChamplainPolygonClass { GInitiallyUnownedClass parent_class; -} ChamplainPolygonClass; +}; GType champlain_polygon_get_type (void); diff --git a/champlain/champlain-selection-layer.h b/champlain/champlain-selection-layer.h index ab911f4..89344e1 100644 --- a/champlain/champlain-selection-layer.h +++ b/champlain/champlain-selection-layer.h @@ -65,15 +65,18 @@ typedef enum { CHAMPLAIN_SELECTION_MULTIPLE } ChamplainSelectionMode; -typedef struct { +typedef struct _ChamplainSelectionLayer ChamplainSelectionLayer; +typedef struct _ChamplainSelectionLayerClass ChamplainSelectionLayerClass; + +struct _ChamplainSelectionLayer { ChamplainLayer parent; ChamplainSelectionLayerPrivate *priv; -} ChamplainSelectionLayer; +}; -typedef struct { +struct _ChamplainSelectionLayerClass { ChamplainLayerClass parent_class; -} ChamplainSelectionLayerClass; +}; GType champlain_selection_layer_get_type (void); diff --git a/champlain/champlain-tile.h b/champlain/champlain-tile.h index 01c7fe4..0ed5941 100644 --- a/champlain/champlain-tile.h +++ b/champlain/champlain-tile.h @@ -45,15 +45,18 @@ G_BEGIN_DECLS typedef struct _ChamplainTilePrivate ChamplainTilePrivate; -typedef struct { +typedef struct _ChamplainTile ChamplainTile; +typedef struct _ChamplainTileClass ChamplainTileClass; + +struct _ChamplainTile { GObject parent; ChamplainTilePrivate *priv; -} ChamplainTile; +}; -typedef struct { +struct _ChamplainTileClass { GObjectClass parent_class; -} ChamplainTileClass; +}; GType champlain_tile_get_type (void);