Commit c5ec5ae6 authored by Matthieu Dorier's avatar Matthieu Dorier

added function allowing to set the ABT-IO instance to use for client

parent 877a2067
......@@ -119,6 +119,18 @@ int remi_fileset_migrate(
int mode,
int* status);
/**
* @brief Sets the ABT-IO instance to use for I/O.
*
* @param client Client.
* @param abtio ABT-IO instance.
*
* @return REMI_SUCCESS or error code defined in remi-common.h.
*/
int remi_client_set_abt_io_instance(
remi_client_t client,
abt_io_instance_id abtio);
#if defined(__cplusplus)
}
#endif
......
......@@ -74,6 +74,18 @@ extern "C" int remi_client_finalize(remi_client_t client)
return REMI_SUCCESS;
}
extern "C" int remi_client_set_abt_io_instance(
remi_client_t client,
abt_io_instance_id abtio)
{
if(client) {
client->m_abtio = abtio;
return REMI_SUCCESS;
} else {
return REMI_ERR_INVALID_ARG;
}
}
extern "C" int remi_provider_handle_create(
remi_client_t client,
hg_addr_t addr,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment