Commit: b9e93e01161cf5392f0cbea3400cfa2dae54643d
Parent: 2b063f47ab7044e4c744b51f5d400b77b1ea3b2f
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2023-07-17 22:36:15
Tree: df2c1e8df3d9811dc2b7b4a15f2639df8bbf7429

midi: Fix build errors This fixes the following build errors: unit/test-midi.c:541:82: error: function definition is not allowed here void compare_events_cb(const struct midi_write_parser *parser, void *user_data) { ^ unit/test-midi.c:587:17: error: use of undeclared identifier 'compare_events_cb'; did you mean 'compare_events'? compare_events_cb, &midi_data); ^~~~~~~~~~~~~~~~~ compare_events profiles/midi/midi.c:61:75: error: function definition is not allowed here void foreach_cb(const struct midi_write_parser *parser, void *user_data) { ^ profiles/midi/midi.c:78:40: error: use of undeclared identifier 'foreach_cb' midi_read_ev(&midi->midi_out, event, foreach_cb, midi); ^

Diffstat

M profiles/midi/midi.c | 27 ++++++++++++++- - - - - - - - - - - - -
M unit/test-midi.c | 74 +++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

2 files changed, 53 insertions(+), 48 deletions(-)

View Full Diff | Patch