Commit 1dade6a2 authored by Matthieu Dorier's avatar Matthieu Dorier

corrected uint8_t to uint16_t provider id

parent 0a35291c
...@@ -51,7 +51,7 @@ int bake_client_finalize(bake_client_t client); ...@@ -51,7 +51,7 @@ int bake_client_finalize(bake_client_t client);
* *
* @param client client managing the provider handle * @param client client managing the provider handle
* @param addr address of the provider * @param addr address of the provider
* @param mplex_id multiplex id of the provider * @param provider_id id of the provider
* @param handle resulting handle * @param handle resulting handle
* *
* @return 0 on success, -1 on failure * @return 0 on success, -1 on failure
...@@ -59,7 +59,7 @@ int bake_client_finalize(bake_client_t client); ...@@ -59,7 +59,7 @@ int bake_client_finalize(bake_client_t client);
int bake_provider_handle_create( int bake_provider_handle_create(
bake_client_t client, bake_client_t client,
hg_addr_t addr, hg_addr_t addr,
uint8_t mplex_id, uint16_t provider_id,
bake_provider_handle_t* handle); bake_provider_handle_t* handle);
/** /**
......
...@@ -16,7 +16,7 @@ extern "C" { ...@@ -16,7 +16,7 @@ extern "C" {
#endif #endif
#define BAKE_ABT_POOL_DEFAULT ABT_POOL_NULL #define BAKE_ABT_POOL_DEFAULT ABT_POOL_NULL
#define BAKE_MPLEX_ID_DEFAULT 0 #define BAKE_PROVIDER_ID_DEFAULT 0
#define BAKE_PROVIDER_IGNORE NULL #define BAKE_PROVIDER_IGNORE NULL
typedef struct bake_server_context_t* bake_provider_t; typedef struct bake_server_context_t* bake_provider_t;
...@@ -41,7 +41,7 @@ int bake_makepool( ...@@ -41,7 +41,7 @@ int bake_makepool(
* Initializes a BAKE provider. * Initializes a BAKE provider.
* *
* @param[in] mid Margo instance identifier * @param[in] mid Margo instance identifier
* @param[in] mplex_id Multiplex id * @param[in] provider_id provider id
* @param[in] pool Pool on which to run the RPC handlers * @param[in] pool Pool on which to run the RPC handlers
* @param[in] target_name path to PMEM backend file * @param[in] target_name path to PMEM backend file
* @param[out] provider resulting provider * @param[out] provider resulting provider
...@@ -49,7 +49,7 @@ int bake_makepool( ...@@ -49,7 +49,7 @@ int bake_makepool(
*/ */
int bake_provider_register( int bake_provider_register(
margo_instance_id mid, margo_instance_id mid,
uint8_t mplex_id, uint16_t provider_id,
ABT_pool pool, ABT_pool pool,
bake_provider_t* provider); bake_provider_t* provider);
......
...@@ -39,7 +39,7 @@ struct bake_client ...@@ -39,7 +39,7 @@ struct bake_client
struct bake_provider_handle { struct bake_provider_handle {
struct bake_client* client; struct bake_client* client;
hg_addr_t addr; hg_addr_t addr;
uint8_t provider_id; uint16_t provider_id;
uint64_t refcount; uint64_t refcount;
uint64_t eager_limit; uint64_t eager_limit;
}; };
...@@ -187,7 +187,7 @@ int bake_probe( ...@@ -187,7 +187,7 @@ int bake_probe(
int bake_provider_handle_create( int bake_provider_handle_create(
bake_client_t client, bake_client_t client,
hg_addr_t addr, hg_addr_t addr,
uint8_t provider_id, uint16_t provider_id,
bake_provider_handle_t* handle) bake_provider_handle_t* handle)
{ {
if(client == BAKE_CLIENT_NULL) return -1; if(client == BAKE_CLIENT_NULL) return -1;
......
...@@ -77,7 +77,7 @@ int bake_makepool( ...@@ -77,7 +77,7 @@ int bake_makepool(
int bake_provider_register( int bake_provider_register(
margo_instance_id mid, margo_instance_id mid,
uint8_t provider_id, uint16_t provider_id,
ABT_pool abt_pool, ABT_pool abt_pool,
bake_provider_t* provider) bake_provider_t* provider)
{ {
......
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