navit  0.5.3-trunk
zip.c File Reference
#include <zlib.h>
#include <string.h>
#include <stdlib.h>
#include "debug.h"
#include "maptool.h"
#include "config.h"
#include "zipfile.h"

Data Structures

struct  zip_info
 

Functions

static int zip_write (struct zip_info *info, void *data, int len)
 
void write_zipmember (struct zip_info *zip_info, char *name, int filelen, char *data, int data_size)
 
int zip_write_index (struct zip_info *info)
 
static void zip_write_file_data (struct zip_info *info, FILE *in)
 
int zip_write_directory (struct zip_info *info)
 
struct zip_infozip_new (void)
 
void zip_set_zip64 (struct zip_info *info, int on)
 
void zip_set_compression_level (struct zip_info *info, int level)
 
void zip_set_maxnamelen (struct zip_info *info, int max)
 
int zip_get_maxnamelen (struct zip_info *info)
 
int zip_add_member (struct zip_info *info)
 
int zip_set_timestamp (struct zip_info *info, char *timestamp)
 
int zip_open (struct zip_info *info, char *out, char *dir, char *index)
 
FILE * zip_get_index (struct zip_info *info)
 
int zip_get_zipnum (struct zip_info *info)
 
void zip_set_zipnum (struct zip_info *info, int num)
 
void zip_close (struct zip_info *info)
 
void zip_destroy (struct zip_info *info)
 

Function Documentation

◆ write_zipmember()

◆ zip_add_member()

int zip_add_member ( struct zip_info info)

References info.

Referenced by add_aux_tile(), write_aux_tiles(), and write_tilesdir().

◆ zip_close()

void zip_close ( struct zip_info info)

References info.

Referenced by maptool_assemble_map().

◆ zip_destroy()

void zip_destroy ( struct zip_info info)

References info.

Referenced by maptool_assemble_map().

◆ zip_get_index()

FILE* zip_get_index ( struct zip_info info)

◆ zip_get_maxnamelen()

int zip_get_maxnamelen ( struct zip_info info)

References info.

Referenced by ch_assemble_map(), process_slice(), and write_aux_tiles().

◆ zip_get_zipnum()

int zip_get_zipnum ( struct zip_info info)

◆ zip_new()

struct zip_info* zip_new ( void  )

◆ zip_open()

int zip_open ( struct zip_info info,
char *  out,
char *  dir,
char *  index 
)

References zip_info::dir, zip_info::index, and info.

Referenced by maptool_assemble_map().

◆ zip_set_compression_level()

void zip_set_compression_level ( struct zip_info info,
int  level 
)

References info.

Referenced by maptool_assemble_map().

◆ zip_set_maxnamelen()

void zip_set_maxnamelen ( struct zip_info info,
int  max 
)

References info, and max.

Referenced by maptool_assemble_map().

◆ zip_set_timestamp()

int zip_set_timestamp ( struct zip_info info,
char *  timestamp 
)

References info.

Referenced by maptool_assemble_map(), and maptool_generate_tiles().

◆ zip_set_zip64()

void zip_set_zip64 ( struct zip_info info,
int  on 
)

References info.

Referenced by maptool_assemble_map(), and maptool_generate_tiles().

◆ zip_set_zipnum()

void zip_set_zipnum ( struct zip_info info,
int  num 
)

◆ zip_write()

static int zip_write ( struct zip_info info,
void *  data,
int  len 
)
static

◆ zip_write_directory()

◆ zip_write_file_data()

static void zip_write_file_data ( struct zip_info info,
FILE *  in 
)
static

References info, size, and zip_write().

Referenced by zip_write_directory().

◆ zip_write_index()

int zip_write_index ( struct zip_info info)

References dbg, info, lvl_warning, size, and write_zipmember().

Referenced by maptool_assemble_map().