aqbanking  5.7.8
banking_simple.h File Reference

Go to the source code of this file.

Functions

Mapping Application Accounts to Online Accounts

Functions in this group provide an optional service for account mapping. Most applications assign unique ids to their own accounts. This unique id can be mapped to an account of AqBanking.

void AB_Banking_SetAccountAlias (AB_BANKING *ab, AB_ACCOUNT *a, const char *alias)
 
AB_ACCOUNTAB_Banking_GetAccountByAlias (AB_BANKING *ab, const char *alias)
 

Function Documentation

◆ AB_Banking_GetAccountByAlias()

AB_ACCOUNT* AB_Banking_GetAccountByAlias ( AB_BANKING ab,
const char *  alias 
)

This function returns the AqBanking account to which the given alias (=unique id of your application's own account data) has been mapped.

AqBanking remains the owner of the object returned (if any), so you must not free it.

Please also note that the object returned is only valid until AB_Banking_Fini() has been called (or until the corresponding backend for this particular account has been deactivated).

Returns
corresponding AqBanking (or 0 if none)
Parameters
abAqBanking main object
aliasunique id of your application's own account structure

◆ AB_Banking_SetAccountAlias()

void AB_Banking_SetAccountAlias ( AB_BANKING ab,
AB_ACCOUNT a,
const char *  alias 
)

Sets an alias for the given AqBanking account. You can later use AB_Banking_GetAccountByAlias to refer to an online account by using the unique id of your application's account.

AqBanking separates the aliases for each application.

Parameters
abAqBanking main object
aonline account of AqBanking you wish to map your account to
aliasunique id of your application's own account structure