diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-08-21 10:17:11 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-08-21 10:17:11 +0000 |
commit | 4c85aa8182e032cb2724795c020f628b38b68777 (patch) | |
tree | 508bb6f46ac890eee7985d073f8ad5697f2ce39d /navit/file.h | |
parent | 480e30970f5260fe3e8aa1fda3e4adaad65f63ad (diff) | |
download | navit-4c85aa8182e032cb2724795c020f628b38b68777.tar.gz |
Add:xslt:More scripts
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2513 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/file.h')
-rw-r--r-- | navit/file.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/navit/file.h b/navit/file.h index f5dae8eab..a8003263d 100644 --- a/navit/file.h +++ b/navit/file.h @@ -27,6 +27,7 @@ #include <time.h> #endif #include "param.h" +#include <stdio.h> struct file { struct file *next; @@ -45,6 +46,8 @@ struct file { long map_file; #endif char *name; + FILE *stdfile; + int special; }; /* prototypes */ @@ -53,11 +56,12 @@ struct file_wordexp; struct param_list; struct file *file_create(char *name); int file_is_dir(char *name); -int file_size(struct file *file); +long long file_size(struct file *file); int file_mkdir(char *name, int pflag); int file_mmap(struct file *file); unsigned char *file_data_read(struct file *file, long long offset, int size); unsigned char *file_data_read_all(struct file *file); +int file_data_write(struct file *file, long long offset, int size, unsigned char *data); int file_get_contents(char *name, unsigned char **buffer, int *size); unsigned char *file_data_read_compressed(struct file *file, long long offset, int size, int size_uncomp); void file_data_free(struct file *file, unsigned char *data); |