bank_lib.h (1143B)
1 #ifndef BANK_LIB_H 2 #define BANK_LIB_H 3 #ifdef __cplusplus 4 extern "C" 5 { 6 #endif 7 8 9 //Allow to directly include amount lib, might lead to other bugs.. 10 #define __TALER_UTIL_LIB_H_INSIDE__ 11 #include <taler/taler_amount_lib.h> 12 13 typedef void (*bankCommunicationInitCallback_t)(); 14 typedef void (*bankCommunicationWithdrawalCallback_t)(); 15 typedef void (*bankCommunicationWithdrawalConfirmCallback_t)(); 16 typedef void (*bankCommunicationWithdrawalIDInfoCallback_t)(); 17 18 19 void bankCommunicationInit(bankCommunicationInitCallback_t callback); 20 void bankCommunicationWithdrawalRequest(struct TALER_Amount *amount, struct TALER_Amount *suggestedAmount, bool *noAmountToWallet, const char **res_withdrawal_id, const char **res_taler_withdraw_uri, bankCommunicationWithdrawalCallback_t callback); 21 void bankCommunicationWithdrawalIDInfoRequest(const char *withdrawal_id, const char **res_status, bankCommunicationWithdrawalIDInfoCallback_t callback); 22 void bankCommunicationWithdrawalConfirmRequest(const char *withdrawal_id, struct TALER_Amount *amount, bankCommunicationWithdrawalConfirmCallback_t callback); 23 24 25 26 #ifdef __cplusplus 27 } // extern "C" 28 #endif 29 #endif