commit 6ad98aa699ad8f265234ad727b7eda9fd9cbaa3d parent c447c4302e87d1d85933b959f744ac77333996cb Author: Florian Dold <florian@dold.me> Date: Wed, 21 Dec 2022 11:26:00 +0100 docc Diffstat:
| M | taler_wallet_core_lib.h | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/taler_wallet_core_lib.h b/taler_wallet_core_lib.h @@ -32,6 +32,9 @@ struct TALER_WALLET_Handle; /** * Handler for messages from the wallet. + * + * @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); @@ -81,6 +84,9 @@ TALER_WALLET_get_eventpipe (struct TALER_WALLET_Handle *h); * Look at the message at the head of the message queue. * * Only works when queueing is enabled. + * + * @returns message from wallet-core as a JSON string, valid until + * #TALER_WALLET_discard_message is called */ const char * TALER_WALLET_peek_message (struct TALER_WALLET_Handle *h);