Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
bake
Commits
28dea58d
Commit
28dea58d
authored
Apr 07, 2020
by
Matthieu Dorier
Browse files
corrected bug
parent
8a92d75b
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/bake-client.h
View file @
28dea58d
...
...
@@ -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
...
...
src/bake-client.c
View file @
28dea58d
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment