Commit d4e6841a authored by Matthieu Dorier's avatar Matthieu Dorier

Merge branch 'dev-deregister' into 'master'

added margo_deregister

See merge request !6
parents 56a2b658 d3892b41
......@@ -198,6 +198,18 @@ inline hg_id_t margo_register_name(
in_proc_cb, out_proc_cb, rpc_cb, 0, ABT_POOL_NULL);
}
/**
* Deregisters an RPC with margo
*
* \param [in] mid Margo instance
* \param [in] rpc_id Id of the RPC to deregister
*
* \return HG_SUCCESS or corresponding error code
*/
hg_return_t margo_deregister(
margo_instance_id mid,
hg_id_t rpc_id);
/*
* Indicate whether margo_register_name() has been called for the RPC specified by
* func_name.
......
......@@ -556,6 +556,13 @@ hg_id_t margo_provider_register_name(margo_instance_id mid, const char *func_nam
return(id);
}
hg_return_t margo_deregister(
margo_instance_id mid,
hg_id_t rpc_id)
{
return HG_Deregister(mid->hg_class, rpc_id);
}
hg_return_t margo_registered_name(margo_instance_id mid, const char *func_name,
hg_id_t *id, hg_bool_t *flag)
{
......
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