orbea / cross / slibtool

Forked from cross/slibtool 3 years ago
Clone

Blame src/internal/slibtool_mapfile_impl.h

0f9f97
#ifndef SLIBTOOL_MAPFILE_IMPL_H
0f9f97
#define SLIBTOOL_MAPFILE_IMPL_H
0f9f97
0f9f97
#define SLBT_MAP_INPUT	0x0001
0f9f97
#define SLBT_MAP_OUTPUT	0x0002
0f9f97
0f9f97
struct slbt_map_info {
0f9f97
	void *	addr;
0f9f97
	size_t	size;
62ed2e
	char *	mark;
62ed2e
	char *	cap;
0f9f97
};
0f9f97
0f9f97
struct slbt_map_info * slbt_map_file(
0f9f97
	int, const char *,
0f9f97
	uint32_t);
0f9f97
0f9f97
void slbt_unmap_file(struct slbt_map_info *);
0f9f97
62ed2e
int  slbt_mapped_readline(
62ed2e
	const struct slbt_driver_ctx *,
62ed2e
	struct slbt_map_info *,
62ed2e
	char *, size_t);
62ed2e
0f9f97
#endif