~ubuntu-branches/ubuntu/trusty/foxtrotgps/trusty

« back to all changes in this revision

Viewing changes to src/tile_management.c

  • Committer: Package Import Robot
  • Author(s): Daniel Baumann
  • Date: 2012-02-14 06:13:28 UTC
  • mfrom: (11.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20120214061328-3pa58mr5jtibvi2k
Tags: 1.1.0-1
* Using compression level 9 also for binary packages.
* Merging upstream version 1.1.0:
  - includes osb2tango and poi2osm (Closes: #647986).
* Removing curl.patch, included upstream.
* Updating to debhelper version 9.
* Updating years in copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
 
 
3
#include <sys/types.h>
 
4
#include <sys/stat.h>
 
5
#include <unistd.h>
3
6
#include <gtk/gtk.h>
4
7
#include <glib.h>
5
8
#include <glib/gprintf.h>
6
9
#include <string.h>
7
10
#include <curl/curl.h>
 
11
#include <curl/easy.h> 
8
12
#include <math.h>
9
13
#include "globals.h"
10
14
#include "tile_management.h"
207
211
 
208
212
        int mkres;
209
213
        tile_data = ptr;
210
 
        
 
214
 
 
215
        arr1 = g_strsplit(tile_data,"|",3);
 
216
 
 
217
        if (global_no_redownload)
 
218
        {
 
219
                struct stat outfile_buf;
 
220
                if (!stat(arr1[1], &outfile_buf) && outfile_buf.st_size != 0)
 
221
                {
 
222
                        printf("Tile exists - not redownladed: %s\n", arr1[1]);
 
223
                        return NULL;
 
224
                }
 
225
        }
 
226
 
211
227
        number_threads = update_thread_number(1);
212
 
        
213
 
        arr1 = g_strsplit(tile_data,"|",3);
214
 
 
215
 
        
216
 
        
 
228
 
 
229
 
217
230
        mkres = g_mkdir_with_parents(arr1[2],0700);
218
231
        
219
232