@@ -19,6 +19,8 @@ extern "C" {
19
19
20
20
typedef struct umf_ipc_data_t * umf_ipc_handle_t ;
21
21
22
+ typedef void * umf_ipc_handler_handle_t ;
23
+
22
24
///
23
25
/// @brief Returns the size of IPC handles for the specified pool.
24
26
/// @param hPool [in] Pool handle
@@ -44,11 +46,11 @@ umf_result_t umfPutIPCHandle(umf_ipc_handle_t ipcHandle);
44
46
45
47
///
46
48
/// @brief Open IPC handle retrieved by umfGetIPCHandle.
47
- /// @param hPool [in] Pool handle where to open the the IPC handle.
49
+ /// @param hIPCHandler [in] IPC Handler handle used to open the IPC handle.
48
50
/// @param ipcHandle [in] IPC handle.
49
51
/// @param ptr [out] pointer to the memory in the current process.
50
52
/// @return UMF_RESULT_SUCCESS on success or appropriate error code on failure.
51
- umf_result_t umfOpenIPCHandle (umf_memory_pool_handle_t hPool ,
53
+ umf_result_t umfOpenIPCHandle (umf_ipc_handler_handle_t hIPCHandler ,
52
54
umf_ipc_handle_t ipcHandle , void * * ptr );
53
55
54
56
///
@@ -57,6 +59,13 @@ umf_result_t umfOpenIPCHandle(umf_memory_pool_handle_t hPool,
57
59
/// @return UMF_RESULT_SUCCESS on success or appropriate error code on failure.
58
60
umf_result_t umfCloseIPCHandle (void * ptr );
59
61
62
+ /// @brief Get handle to the IPC handler from existing pool.
63
+ /// @param hPool [in] Pool handle
64
+ /// @param hIPCHandler [out] handle to the IPC handler
65
+ /// @return UMF_RESULT_SUCCESS on success or appropriate error code on failure.
66
+ umf_result_t umfPoolGetIPCHandler (umf_memory_pool_handle_t hPool ,
67
+ umf_ipc_handler_handle_t * hIPCHandler );
68
+
60
69
#ifdef __cplusplus
61
70
}
62
71
#endif
0 commit comments