diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-05-18 10:01:53 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-05-18 10:01:53 +0000 |
commit | 0b74d7f4ee6d448ac811e2741e8cb1ed04f5ce76 (patch) | |
tree | be7bb1cb1020f4022e41c004e2fa9d561ea3580d /navit/file.h | |
parent | f46eb419c46011d6d103b7f06cb2c842a2cbe6c9 (diff) | |
download | navit-0b74d7f4ee6d448ac811e2741e8cb1ed04f5ce76.tar.gz |
Fix:Core:Renamed src to navit for cleanup of includes
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1059 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/file.h')
-rw-r--r-- | navit/file.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/navit/file.h b/navit/file.h new file mode 100644 index 000000000..475777b08 --- /dev/null +++ b/navit/file.h @@ -0,0 +1,46 @@ +#ifndef NAVIT_FILE_H +#define NAVIT_FILE_H + +#include "param.h" + +struct file { + unsigned char *begin; + unsigned char *end; + long long size; + char *name; + int fd; +#ifdef _WIN32 + long map_handle; + long map_file; +#endif + struct file *next; +}; + +/* prototypes */ +struct file; +struct file_wordexp; +struct param_list; +struct file *file_create(char *name); +int file_mmap(struct file *file); +unsigned char *file_data_read(struct file *file, long long offset, 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); +int file_exists(char *name); +void file_remap_readonly(struct file *f); +void file_remap_readonly_all(void); +void file_unmap(struct file *f); +void file_unmap_all(void); +void *file_opendir(char *dir); +char *file_readdir(void *hnd); +void file_closedir(void *hnd); +struct file *file_create_caseinsensitive(char *name); +void file_destroy(struct file *f); +struct file_wordexp *file_wordexp_new(const char *pattern); +int file_wordexp_get_count(struct file_wordexp *wexp); +char **file_wordexp_get_array(struct file_wordexp *wexp); +void file_wordexp_destroy(struct file_wordexp *wexp); +int file_get_param(struct file *file, struct param_list *param, int count); +/* end of prototypes */ + +#endif + |