--- profiles/midi/midi.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/profiles/midi/midi.c b/profiles/midi/midi.c index 1ee5cb16f..f08728e4b 100644 --- a/profiles/midi/midi.c +++ b/profiles/midi/midi.c @@ -71,20 +71,20 @@ struct midi { struct midi_write_parser midi_out; }; +static void foreach_cb(const struct midi_write_parser *parser, void *user_data) { + struct midi *midi = user_data; + bt_gatt_client_write_without_response(midi->client, + midi->midi_io_handle, + false, + midi_write_data(parser), + midi_write_data_size(parser)); +} + static bool midi_write_cb(struct io *io, void *user_data) { struct midi *midi = user_data; int err; - void foreach_cb(const struct midi_write_parser *parser, void *user_data) { - struct midi *midi = user_data; - bt_gatt_client_write_without_response(midi->client, - midi->midi_io_handle, - false, - midi_write_data(parser), - midi_write_data_size(parser)); - }; - do { snd_seq_event_t *event = NULL; -- 2.18.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html