We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, only a single callback exists. Instead, multiple events should be recognized and passed to the user.
I have already decided to go with option nr. 3, but for the record, there were three options:
N callbacks registered separately
void tcedit_register_tabcomplete(int (*cb)(<...>), void* udata); void tcedit_register_echo(<...>, void* udata);
N callbacks registered at once (via a struct)
typedef struct TC_EditHandler { int (*tabcomplete)(<...>); <...> void* udata; } TC_EditHandler; void tcedit_register_handler(TC_EditHandler* handler);
A single callback which is passed an event type.
typedef struct TC_EditEvent { int type; TC_String* input; <...> } TC_EditEvent; typedef int TC_EditCallback(TC_EditEvent* event, void* udata); void tcedit_register_callback(TC_EditCallback* callback, void* udata);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, only a single callback exists. Instead, multiple events should be recognized and passed to the user.
I have already decided to go with option nr. 3, but for the record, there were three options:
N callbacks registered separately
N callbacks registered at once (via a struct)
A single callback which is passed an event type.
The text was updated successfully, but these errors were encountered: