Showing the changes to src/include/runtime.h (1 of 14 files). Show all
Unified · Split
| @@ -824,13 +824,12 @@ namespace disvm · 823 unmodified lines | |||
| 824 | virtual void set_tool_dispatch_on_all_threads(vm_tool_dispatch_t *dispatch) = 0; | 824 | virtual void set_tool_dispatch_on_all_threads(vm_tool_dispatch_t *dispatch) = 0; |
| 825 | }; | 825 | }; |
| 826 | 826 | ||
| 827 | // The supplied allocation is guaranteed to be valid for the lifetime of the callback. | ||
| 828 | using vm_alloc_callback_t = std::function<void(const vm_alloc_t *)>; | ||
| 829 | |||
| 827 | // VM garbage collector interface | 830 | // VM garbage collector interface |
| 828 | class vm_garbage_collector_t | 831 | class vm_garbage_collector_t |
| 829 | { | 832 | { |
| 830 | public: | ||
| 831 | // The supplied allocation is guaranteed to be valid for the lifetime of the callback. | ||
| 832 | using vm_alloc_callback_t = std::function<void(const vm_alloc_t *)>; | ||
| 833 | |||
| 834 | public: | 833 | public: |
| 835 | virtual ~vm_garbage_collector_t() = 0; | 834 | virtual ~vm_garbage_collector_t() = 0; |
| 836 | 835 | ||
| @@ -862,7 +861,7 @@ namespace disvm · 25 unmodified lines | |||
| 862 | virtual ~vm_tool_t() = 0; | 861 | virtual ~vm_tool_t() = 0; |
| 863 | 862 | ||
| 864 | // Called when the tool is loaded into the VM | 863 | // Called when the tool is loaded into the VM |
| 865 | virtual void on_load(vm_t &vm, vm_tool_controller_t &controller, std::size_t tool_id) = 0; | 864 | virtual void on_load(vm_tool_controller_t &controller, std::size_t tool_id) = 0; |
| 866 | 865 | ||
| 867 | // Called when the tool is unloaded from the VM. | 866 | // Called when the tool is unloaded from the VM. |
| 868 | // Note once the tool has been unloaded the vm and controller references supplied during load | 867 | // Note once the tool has been unloaded the vm and controller references supplied during load |