packio-simple
diff src/memmap.h @ 2:4767e7769c32
packio-simple has more chances to ever get done
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 09 Aug 2015 05:14:29 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/memmap.h Sun Aug 09 05:14:29 2015 +0300 1.3 @@ -0,0 +1,12 @@ 1.4 +#ifndef MEMMAP_H_ 1.5 +#define MEMMAP_H_ 1.6 + 1.7 +struct mmfile { 1.8 + void *ptr; 1.9 + unsigned long size; 1.10 +}; 1.11 + 1.12 +int map_file(struct mmfile *mm, const char *fname); 1.13 +void unmap_file(struct mmfile *mm); 1.14 + 1.15 +#endif /* MEMMAP_H_ */