diff options
author | midipix <writeonce@midipix.org> | 2018-06-27 20:12:56 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-06-29 01:37:41 -0400 |
commit | 0f9f9744d71f902054aa844bd2f136d8307a13dc (patch) | |
tree | ad7adcf27f939c8f38a78d1fcea5ba5fddbbf997 /src/internal/slibtool_mapfile_impl.h | |
parent | 089c8bfc743edc44058a665bbe695809c26c682c (diff) | |
download | slibtool-0f9f9744d71f902054aa844bd2f136d8307a13dc.tar.bz2 slibtool-0f9f9744d71f902054aa844bd2f136d8307a13dc.tar.xz |
internals: added slbt_map_file(), slbt_unmap_file().
Diffstat (limited to 'src/internal/slibtool_mapfile_impl.h')
-rw-r--r-- | src/internal/slibtool_mapfile_impl.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/internal/slibtool_mapfile_impl.h b/src/internal/slibtool_mapfile_impl.h new file mode 100644 index 0000000..567fc8f --- /dev/null +++ b/src/internal/slibtool_mapfile_impl.h @@ -0,0 +1,18 @@ +#ifndef SLIBTOOL_MAPFILE_IMPL_H +#define SLIBTOOL_MAPFILE_IMPL_H + +#define SLBT_MAP_INPUT 0x0001 +#define SLBT_MAP_OUTPUT 0x0002 + +struct slbt_map_info { + void * addr; + size_t size; +}; + +struct slbt_map_info * slbt_map_file( + int, const char *, + uint32_t); + +void slbt_unmap_file(struct slbt_map_info *); + +#endif |