quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

commit 77a896362ff717048bd9f3936b6fa4adc69b14d5
parent 3ea0e3b12e324d3747931984556991a4d599be89
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 12 Jan 2023 16:26:35 +0100

naming

Diffstat:
Mtaler_wallet_core_lib.c | 14+++++++-------
Mtaler_wallet_core_lib.h | 2+-
2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/taler_wallet_core_lib.c b/taler_wallet_core_lib.c @@ -80,22 +80,22 @@ static JSContext *JS_NewCustomContext(JSRuntime *rt) } void -TALER_WALLET_set_message_handler(struct TALER_WALLET_Instance *h, +TALER_WALLET_set_message_handler(struct TALER_WALLET_Instance *twi, TALER_WALLET_MessageHandlerFn handler_f, void *handler_cls) { - h->handler_cls = handler_cls; - h->handler_f = handler_f; + twi->handler_cls = handler_cls; + twi->handler_f = handler_f; } int -TALER_WALLET_send_request (struct TALER_WALLET_Instance *h, +TALER_WALLET_send_request (struct TALER_WALLET_Instance *twi, const char *msg) { int ret; - pthread_mutex_lock(&h->handle_mutex); - pthread_mutex_unlock(&h->handle_mutex); - ret = js_os_post_message_from_host(h->ctx, msg); + pthread_mutex_lock(&twi->handle_mutex); + pthread_mutex_unlock(&twi->handle_mutex); + ret = js_os_post_message_from_host(twi->ctx, msg); return 0; } diff --git a/taler_wallet_core_lib.h b/taler_wallet_core_lib.h @@ -62,7 +62,7 @@ TALER_WALLET_set_message_handler(struct TALER_WALLET_Instance *twi, */ // FIXME: Not implemented! //void -//TALER_WALLET_set_jsfile(struct TALER_WALLET_Instance *h, +//TALER_WALLET_set_jsfile(struct TALER_WALLET_Instance *twi, // const char *filename); /**