Commit 28dea58d authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

corrected bug

parent 8a92d75b
......@@ -77,16 +77,16 @@ int bake_provider_handle_ref_incr(bake_provider_handle_t handle);
* margo_addr_free.
*
* @param handle Provider handle
* @param mid Returned margo instance (ignored if NULL)
* @param client Returned bake client (ignored if NULL)
* @param addr Returned address (ignored if NULL)
* @param provider_id Returned provider id (ignored if NULL)
*
* @return BAKE_SUCCESS or corresponding error code.
*/
int bake_provider_get_info(bake_provider_handle_t handle,
margo_instance_id *mid,
hg_addr_t *addr,
uint16_t *provider_id);
int bake_provider_handle_get_info(bake_provider_handle_t handle,
bake_client_t *client,
hg_addr_t *addr,
uint16_t *provider_id);
/**
* Get the limit (in bytes) bellow which this provider handle will use
......
......@@ -269,15 +269,15 @@ int bake_provider_handle_ref_incr(bake_provider_handle_t handle)
return BAKE_SUCCESS;
}
int bake_provider_get_info(bake_provider_handle_t handle,
margo_instance_id *mid,
int bake_provider_handle_get_info(bake_provider_handle_t handle,
bake_client_t *client,
hg_addr_t *addr,
uint16_t *provider_id)
{
int ret = BAKE_SUCCESS;
hg_return_t hret = HG_SUCCESS;
if(handle == BAKE_PROVIDER_HANDLE_NULL) return BAKE_ERR_INVALID_ARG;
if(mid) *mid = handle->mid;
if(client) *client = handle->client;
if(addr) hret = margo_addr_dup(handle->mid, handle->addr, addr);
if(provider_id) *provider_id = handle->provider_id;
if(hret != HG_SUCCESS)
......
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