summaryrefslogtreecommitdiff
path: root/navit/file.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-10-20 19:21:09 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-10-20 19:21:09 +0000
commit6ed67adccf9fe32ad3ceb4037f0d529700a53443 (patch)
tree09681f3265a030a9c0301d0a2a2bbe0f0d7b1701 /navit/file.h
parente32049ec89cd3b9d01edf92210abcc63c8c90826 (diff)
downloadnavit-6ed67adccf9fe32ad3ceb4037f0d529700a53443.tar.gz
Add:Core:Added support for checking a files version
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1520 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/file.h')
-rw-r--r--navit/file.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/navit/file.h b/navit/file.h
index 971e32d9c..bf05b6cca 100644
--- a/navit/file.h
+++ b/navit/file.h
@@ -20,6 +20,9 @@
#ifndef NAVIT_FILE_H
#define NAVIT_FILE_H
+#ifndef __CEGCC__
+#include <time.h>
+#endif
#include "param.h"
struct file {
@@ -29,9 +32,14 @@ struct file {
char *name;
int name_id;
int fd;
+#ifndef __CEGCC__
+ time_t mtime;
+ time_t ctime;
+ int version;
+#endif
#if defined(_WIN32) || defined(__CEGCC__)
- long map_handle;
- long map_file;
+ long map_handle;
+ long map_file;
#endif
struct file *next;
};
@@ -49,9 +57,7 @@ unsigned char *file_data_read_compressed(struct file *file, long long offset, in
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);
@@ -62,6 +68,7 @@ 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);
+int file_version(struct file *file, int byname);
/* end of prototypes */
#endif