Commit 123611a5 authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

adapted to new version of Bedrock API

parent 4ad979c4
...@@ -76,11 +76,12 @@ static char* bake_get_provider_config(bedrock_module_provider_t provider) ...@@ -76,11 +76,12 @@ static char* bake_get_provider_config(bedrock_module_provider_t provider)
return (bake_provider_get_config(provider)); return (bake_provider_get_config(provider));
} }
static int bake_init_client(margo_instance_id mid, static int bake_init_client(bedrock_args_t args,
bedrock_module_client_t* client) bedrock_module_client_t* client)
{ {
int ret; int ret;
margo_instance_id mid = bedrock_args_get_margo_instance(args);
BAKE_TRACE(mid, "bake_init_client()"); BAKE_TRACE(mid, "bake_init_client()");
ret = bake_client_init(mid, (bake_client_t*)client); ret = bake_client_init(mid, (bake_client_t*)client);
...@@ -99,6 +100,11 @@ static int bake_finalize_client(bedrock_module_client_t client) ...@@ -99,6 +100,11 @@ static int bake_finalize_client(bedrock_module_client_t client)
return BEDROCK_SUCCESS; return BEDROCK_SUCCESS;
} }
static char* bake_get_client_config(bedrock_module_client_t client)
{
return strdup("{}");
}
static int bake_create_provider_handle(bedrock_module_client_t client, static int bake_create_provider_handle(bedrock_module_client_t client,
hg_addr_t address, hg_addr_t address,
uint16_t provider_id, uint16_t provider_id,
...@@ -128,19 +134,24 @@ static int bake_destroy_provider_handle(bedrock_module_provider_handle_t ph) ...@@ -128,19 +134,24 @@ static int bake_destroy_provider_handle(bedrock_module_provider_handle_t ph)
* - if needed by not provided as a dependency, then the backend will create * - if needed by not provided as a dependency, then the backend will create
* one of it's own implicitly * one of it's own implicitly
*/ */
struct bedrock_dependency bake_deps[4] = {{"abt_io", "abt_io", 0}, struct bedrock_dependency bake_provider_deps[4]
= {{"abt_io", "abt_io", 0},
{"remi_provider", "remi", 0}, {"remi_provider", "remi", 0},
{"remi_client", "remi", 0}, {"remi_client", "remi", 0},
BEDROCK_NO_MORE_DEPENDENCIES}; BEDROCK_NO_MORE_DEPENDENCIES};
struct bedrock_dependency bake_client_deps[1] = {BEDROCK_NO_MORE_DEPENDENCIES};
static struct bedrock_module bake static struct bedrock_module bake
= {.register_provider = bake_register_provider, = {.register_provider = bake_register_provider,
.deregister_provider = bake_deregister_provider, .deregister_provider = bake_deregister_provider,
.get_provider_config = bake_get_provider_config, .get_provider_config = bake_get_provider_config,
.init_client = bake_init_client, .init_client = bake_init_client,
.finalize_client = bake_finalize_client, .finalize_client = bake_finalize_client,
.get_client_config = bake_get_client_config,
.create_provider_handle = bake_create_provider_handle, .create_provider_handle = bake_create_provider_handle,
.destroy_provider_handle = bake_destroy_provider_handle, .destroy_provider_handle = bake_destroy_provider_handle,
.dependencies = bake_deps}; .provider_dependencies = bake_provider_deps,
.client_dependencies = bake_client_deps};
BEDROCK_REGISTER_MODULE(bake, bake) BEDROCK_REGISTER_MODULE(bake, bake)
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