Since the constructor is a callback it is now passed an extra gpointer. This
will allow the bindings to properly pass a custom parameter that will wrap a
language defined function with the extra parameters.
The type ChamplainMapSourceDesc has been enhanced with an extra gpointer.
G_BEGIN_DECLS
+
+typedef struct _ChamplainMapSourceDesc ChamplainMapSourceDesc;
+
+
/**
* ChamplainMapSourceConstructor:
*
*
* Since: 0.4
*/
-typedef ChamplainMapSource * (*ChamplainMapSourceConstructor) ();
+typedef ChamplainMapSource * (*ChamplainMapSourceConstructor) (
+ ChamplainMapSourceDesc *desc, gpointer *data);
#define CHAMPLAIN_MAP_SOURCE_CONSTRUCTOR (f) ((ChamplainMapSourceConstructor) (f))
#define CHAMPLAIN_MAP_SOURCE_DESC(obj) ((ChamplainMapSourceDesc *) (obj))
*
* Since: 0.4
*/
-typedef struct {
+struct _ChamplainMapSourceDesc {
gchar *id;
gchar *name;
gchar *license;
gint max_zoom_level;
ChamplainMapProjection projection;
ChamplainMapSourceConstructor constructor;
-} ChamplainMapSourceDesc;
+ gpointer *data;
+};
G_END_DECLS