]> err.no Git - libchamplain/commitdiff
New mappings
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Sun, 3 May 2009 20:30:20 +0000 (22:30 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 6 May 2009 03:16:02 +0000 (23:16 -0400)
bindings/perl/Champlain/maps
bindings/perl/Champlain/xs/ChamplainMapSourceFactory.xs [new file with mode: 0644]

index 43ec21652d581fb092700beb35e0846241395190..38055df930e30d98ff2916add9722c12992ec1da 100644 (file)
@@ -9,3 +9,4 @@ CHAMPLAIN_TYPE_TILE                ChamplainTile              GObject  Champlain
 CHAMPLAIN_TYPE_NETWORK_MAP_SOURCE  ChamplainNetworkMapSource  GObject  Champlain::NetworkMapSource
 CHAMPLAIN_TYPE_MAP_PROJECTION      ChamplainMapProjection     GEnum    Champlain::MapProjection
 CHAMPLAIN_TYPE_STATE               ChamplainState             GEnum    Champlain::State
+CHAMPLAIN_TYPE_MAP_SOURCE_FACTORY  ChamplainMapSourceFactory  GObject  Champlain::MapSourceFactory
diff --git a/bindings/perl/Champlain/xs/ChamplainMapSourceFactory.xs b/bindings/perl/Champlain/xs/ChamplainMapSourceFactory.xs
new file mode 100644 (file)
index 0000000..23d97e7
--- /dev/null
@@ -0,0 +1,65 @@
+#include "champlain-perl.h"
+
+
+MODULE = Champlain::MapSourceFactory  PACKAGE = Champlain::MapSourceFactory  PREFIX = champlain_map_source_factory_
+
+
+ChamplainMapSourceFactory*
+champlain_map_source_factory_get_default ()
+
+
+#gchar**
+#champlain_map_source_factory_get_list (ChamplainMapSourceFactory *factory)
+
+
+ChamplainMapSource*
+champlain_map_source_factory_create (ChamplainMapSourceFactory *factory, const gchar *id)
+
+
+#gboolean
+#champlain_map_source_factory_register (ChamplainMapSourceFactory *factory, const gchar *id, ChamplainMapSourceConstructor callback)
+
+
+const gchar*
+OSM_MAPNIK (class)
+       CODE:
+               RETVAL = CHAMPLAIN_MAP_SOURCE_OSM_MAPNIK;
+
+       OUTPUT:
+               RETVAL
+
+
+const gchar*
+OSM_OSMARENDER (class)
+       CODE:
+               RETVAL = CHAMPLAIN_MAP_SOURCE_OSM_OSMARENDER;
+
+       OUTPUT:
+               RETVAL
+
+
+const gchar*
+OSM_CYCLEMA (class)
+       CODE:
+               RETVAL = CHAMPLAIN_MAP_SOURCE_OSM_CYCLEMAP;
+
+       OUTPUT:
+               RETVAL
+
+
+const gchar*
+OAM (class)
+       CODE:
+               RETVAL = CHAMPLAIN_MAP_SOURCE_OAM;
+
+       OUTPUT:
+               RETVAL
+
+
+const gchar*
+MFF_RELIEF (class)
+       CODE:
+               RETVAL = CHAMPLAIN_MAP_SOURCE_MFF_RELIEF;
+
+       OUTPUT:
+               RETVAL