brailcom/speechd

Adding user data context parameter to callbacks

Open

#856 opened on Sep 16, 2023

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C (86 forks)auto 404
enhancementgood first issuehelp wantedpriority

Repository metrics

Stars
 (325 stars)
PR merge metrics
 (PR metrics pending)

Description

Is your feature request related to a problem? Please describe.

When a callback is called, it is generally useful to have the context of the callback (e.g. OO container etc.)

Describe the solution you'd like

The callbacks should have an additional pointer parameter that can be decided at callback registration.

Describe alternatives you've considered

Using client_id is possible, but not very convenient.

Contributor guide