#ifndef _MAPPER_FILE_H
#define _MAPPER_FILE_H
-gboolean file_save(gchar *dir, gchar *file, GnomeVFSHandle **vfs);
-gboolean file_open(gchar *dir, gchar *file, GnomeVFSHandle **vfs);
+gboolean file_save(gchar **dir, gchar **file, GnomeVFSHandle **vfs);
+gboolean file_open(gchar **dir, gchar **file, GnomeVFSHandle **vfs);
gboolean open_file(gchar ** bytes_out, GnomeVFSHandle ** handle_out, gint * size_out,
gchar ** dir, gchar ** file, GtkFileChooserAction chooser_action);
{
GnomeVFSHandle *handle;
-if (file_save(_route_dir_uri, _route_dir_uri, &handle)) {
+if (file_save(&_route_dir_uri, &_route_dir_uri, &handle)) {
if (write_gpx(&_route, handle)) {
MACRO_BANNER_SHOW_INFO(_window, _("Route Saved"));
} else {
GnomeVFSHandle *handle;
gboolean r = FALSE;
- if (file_save(_track_file_uri, _track_file_uri, &handle)) {
+ if (file_save(&_track_file_uri, &_track_file_uri, &handle)) {
if (write_gpx(&_track, handle)) {
MACRO_BANNER_SHOW_INFO(_window, _("Track Saved"));
r = TRUE;