1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-23 23:32:45 +00:00

Add get_map_machine function.

Mostly useless except for testing.
This commit is contained in:
Peter Evans 2018-01-07 20:00:09 -06:00
parent db6dde7757
commit 95e57a8e19
2 changed files with 10 additions and 0 deletions

View File

@ -62,6 +62,7 @@ extern int vm_segment_write_map(vm_segment *, size_t, vm_segment_write_fn);
extern vm_16bit vm_segment_get16(vm_segment *, size_t);
extern vm_8bit vm_segment_get(vm_segment *, size_t);
extern vm_segment *vm_segment_create(size_t);
extern void *vm_segment_get_map_machine();
extern void vm_segment_free(vm_segment *);
extern void vm_segment_set_map_machine(void *);

View File

@ -294,3 +294,12 @@ vm_segment_set_map_machine(void *mach)
{
map_mach = mach;
}
/*
* Return the map machine
*/
void *
vm_segment_get_map_machine()
{
return map_mach;
}