1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-02 14:46:45 +02:00

Rename callback implementations to be of the form on_$event.

So it's easy to map from implementation to the event without looking at
the `tox_callback_*` calls.
This commit is contained in:
iphydf
2018-07-18 15:41:17 +00:00
parent f2b796940e
commit 20b5e46850
8 changed files with 74 additions and 78 deletions

View File

@ -137,7 +137,7 @@ void kill_prompt_window(ToxWindow *self)
}
/* callback: Updates own connection status in prompt statusbar */
void prompt_onSelfConnectionChange(Tox *m, TOX_CONNECTION connection_status, void *userdata)
void on_self_connection_status(Tox *m, TOX_CONNECTION connection_status, void *userdata)
{
StatusBar *statusbar = prompt->stb;
statusbar->connection = connection_status;