mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-30 06:29:48 +00:00
Add get_map_machine function.
Mostly useless except for testing.
This commit is contained in:
parent
db6dde7757
commit
95e57a8e19
@ -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_16bit vm_segment_get16(vm_segment *, size_t);
|
||||||
extern vm_8bit vm_segment_get(vm_segment *, size_t);
|
extern vm_8bit vm_segment_get(vm_segment *, size_t);
|
||||||
extern vm_segment *vm_segment_create(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_free(vm_segment *);
|
||||||
extern void vm_segment_set_map_machine(void *);
|
extern void vm_segment_set_map_machine(void *);
|
||||||
|
|
||||||
|
@ -294,3 +294,12 @@ vm_segment_set_map_machine(void *mach)
|
|||||||
{
|
{
|
||||||
map_mach = mach;
|
map_mach = mach;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return the map machine
|
||||||
|
*/
|
||||||
|
void *
|
||||||
|
vm_segment_get_map_machine()
|
||||||
|
{
|
||||||
|
return map_mach;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user