From: Emmanuel Rodriguez Date: Mon, 23 Mar 2009 20:54:33 +0000 (+0100) Subject: Strings are const X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca759abf37d06dbd76576270189c8a5c3684884c;p=libchamplain Strings are const --- diff --git a/bindings/perl/Champlain/xs/ChamplainNetworkMapSource.xs b/bindings/perl/Champlain/xs/ChamplainNetworkMapSource.xs index 0d4c0a5..f0570f4 100644 --- a/bindings/perl/Champlain/xs/ChamplainNetworkMapSource.xs +++ b/bindings/perl/Champlain/xs/ChamplainNetworkMapSource.xs @@ -11,7 +11,7 @@ champlain_network_map_source_new_full (class, gchar *name, gchar *license, gchar C_ARGS: name, license, license_uri, min_zoom, map_zoom, tile_size, projection, uri_format -gchar* +const gchar* champlain_network_map_source_get_tile_uri (ChamplainNetworkMapSource *source, gint x, gint y, gint z) diff --git a/bindings/perl/Champlain/xs/ChamplainTile.xs b/bindings/perl/Champlain/xs/ChamplainTile.xs index 54fb242..15f58f4 100644 --- a/bindings/perl/Champlain/xs/ChamplainTile.xs +++ b/bindings/perl/Champlain/xs/ChamplainTile.xs @@ -36,11 +36,11 @@ ChamplainState champlain_tile_get_state (ChamplainTile *self) -gchar* +const gchar* champlain_tile_get_uri (ChamplainTile *self) -gchar* +const gchar* champlain_tile_get_filename (ChamplainTile *self) @@ -69,11 +69,11 @@ champlain_tile_set_state (ChamplainTile *self, ChamplainState state) void -champlain_tile_set_uri (ChamplainTile *self, gchar* uri) +champlain_tile_set_uri (ChamplainTile *self, const gchar* uri) void -champlain_tile_set_filename (ChamplainTile *self, gchar* filename) +champlain_tile_set_filename (ChamplainTile *self, const gchar* filename) void