2015-01-13 11:16:18

by Lukasz Rymanowski

[permalink] [raw]
Subject: [PATCH] shared/gatt-client: Fix callback type in struct write_op

Callback type in struct write_op should be bt_gatt_client_callback_t as
that type is provided by user in bt_gatt_client_write_value()
---
src/shared/gatt-client.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index 3042a6c..8acc752 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -1975,7 +1975,7 @@ bool bt_gatt_client_write_without_response(struct bt_gatt_client *client,
}

struct write_op {
- bt_gatt_result_callback_t callback;
+ bt_gatt_client_callback_t callback;
void *user_data;
bt_gatt_destroy_func_t destroy;
};
--
1.8.4



2015-01-13 16:14:48

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [PATCH] shared/gatt-client: Fix callback type in struct write_op

Hi Lukasz,

On Tue, Jan 13, 2015 at 9:16 AM, Lukasz Rymanowski
<[email protected]> wrote:
> Callback type in struct write_op should be bt_gatt_client_callback_t as
> that type is provided by user in bt_gatt_client_write_value()
> ---
> src/shared/gatt-client.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
> index 3042a6c..8acc752 100644
> --- a/src/shared/gatt-client.c
> +++ b/src/shared/gatt-client.c
> @@ -1975,7 +1975,7 @@ bool bt_gatt_client_write_without_response(struct bt_gatt_client *client,
> }
>
> struct write_op {
> - bt_gatt_result_callback_t callback;
> + bt_gatt_client_callback_t callback;
> void *user_data;
> bt_gatt_destroy_func_t destroy;
> };
> --
> 1.8.4

Applied, thanks.


--
Luiz Augusto von Dentz