summaryrefslogtreecommitdiff
path: root/taler_wallet_core_lib.h
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-01-02 18:43:28 +0100
committerFlorian Dold <florian@dold.me>2023-01-02 18:43:28 +0100
commit6dba524755c9b5a3dccc4372cf74cf1ed6d46586 (patch)
tree00692c15cefcf28e1dae541476da6be82bdca452 /taler_wallet_core_lib.h
parent04f223102329fccee543f3e0c5b38f094b8b3a20 (diff)
downloadquickjs-tart-6dba524755c9b5a3dccc4372cf74cf1ed6d46586.tar.gz
quickjs-tart-6dba524755c9b5a3dccc4372cf74cf1ed6d46586.tar.bz2
quickjs-tart-6dba524755c9b5a3dccc4372cf74cf1ed6d46586.zip
wip
Diffstat (limited to 'taler_wallet_core_lib.h')
-rw-r--r--taler_wallet_core_lib.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/taler_wallet_core_lib.h b/taler_wallet_core_lib.h
index 1e42cfb..78d6ad2 100644
--- a/taler_wallet_core_lib.h
+++ b/taler_wallet_core_lib.h
@@ -36,7 +36,7 @@ struct TALER_WALLET_Handle;
* @param handler_p opaque closure for the message handler
* @param message message from wallet-core as a JSON string
*/
-typedef void (*TALER_WALLET_MessageHandlerFn)(void *handler_p, char *message);
+typedef void (*TALER_WALLET_MessageHandlerFn)(void *handler_p, const char *message);
/**
* Create a new wallet-core handle.
@@ -52,7 +52,7 @@ TALER_WALLET_create(void);
*/
void
TALER_WALLET_set_handler(struct TALER_WALLET_Handle *h,
- TALER_WALLET_MessageHandlerFn *handler_f,
+ TALER_WALLET_MessageHandlerFn handler_f,
void *handler_p);
@@ -70,7 +70,7 @@ TALER_WALLET_set_jsfile(struct TALER_WALLET_Handle *h,
* Responses will be sent asynchronously to the message handler
* set with #TALER_WALLET_set_handler.
*/
-void
+int
TALER_WALLET_send_message (struct TALER_WALLET_Handle *h,
const char *msg);
@@ -80,7 +80,7 @@ TALER_WALLET_send_message (struct TALER_WALLET_Handle *h,
* This function creates a new thread and returns immediately.
*/
void
-TALER_WALLET_run (struct TALER_WLLET_Handle *h);
+TALER_WALLET_run (struct TALER_WALLET_Handle *h);
/**
* Destroy the wallet handle and free resources associated with it.