diff options
Diffstat (limited to 'ipc/test_util_mac.h')
-rw-r--r-- | ipc/test_util_mac.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ipc/test_util_mac.h b/ipc/test_util_mac.h index e976ce0..6ed4d19 100644 --- a/ipc/test_util_mac.h +++ b/ipc/test_util_mac.h @@ -50,6 +50,11 @@ mach_port_urefs_t GetMachRefCount(mach_port_name_t name, // Increments the ref count for the right/name pair. void IncrementMachRefCount(mach_port_name_t name, mach_port_right_t right); +// Gets the current and maximum protection levels of the memory region. +// Returns whether the operation was successful. +// |current| and |max| are output variables only populated on success. +bool GetMachProtections(void* address, size_t size, int* current, int* max); + } // namespace IPC #endif // IPC_TEST_UTIL_MAC_H_ |