tls: Replace tls->ready_handle with tls->ready_handler
PATCH 2/3 tls: Replace tls->ready_handle with tls->ready_handler
In general the naming should be "handler" instead of "handle" if it is a callback function.
--- ell/tls-private.h | 2 +- ell/tls.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
ell/tls-private.h +1 -1
@@ -200,7 +200,7 @@ struct l_tls {bool server;l_tls_write_cb_t tx, rx; -l_tls_ready_cb_t ready_handle; +l_tls_ready_cb_t ready_handler;l_tls_disconnect_cb_t disconnected;void *user_data;l_tls_debug_cb_t debug_handler;
ell/tls.c +2 -2
@@ -3072,7 +3072,7 @@ static void tls_finished(struct l_tls *tls)if (!renegotiation) { tls->in_callback = true; - tls->ready_handle (peer_identity, tls->user_data); + tls->ready_handler (peer_identity, tls->user_data); tls->in_callback = false; }
@@ -3361,7 +3361,7 @@ LIB_EXPORT struct l_tls *l_tls_new(bool server, tls->server = server; tls->rx = app_data_handler; tls->tx = tx_handler; - tls->ready_handle = ready_handler; + tls->ready_handler = ready_handler; tls->disconnected = disconnect_handler; tls->user_data = user_data; tls->cipher_suite_pref_list = tls_cipher_suite_pref;
Signature · 1 line
2.39.0