/usr/include/aqbanking5/aqbanking/banking.h is in libaqbanking33-dev 5.0.22-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 | /***************************************************************************
begin : Mon Mar 01 2004
copyright : (C) 2004 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* This file is part of the project "AqBanking". *
* Please see toplevel file COPYING of that project for license details. *
***************************************************************************/
/** @file
* @short The main interface of the aqbanking library
*/
#ifndef AQBANKING_BANKING_H
#define AQBANKING_BANKING_H
/** @addtogroup G_AB_BANKING Main Interface
*/
/*@{*/
/**
* Object to be operated on by functions in this group (@ref AB_BANKING).
*/
typedef struct AB_BANKING AB_BANKING;
/*@}*/
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/types.h>
#include <gwenhywfar/db.h>
#include <gwenhywfar/stringlist.h>
#include <gwenhywfar/plugindescr.h>
#include <gwenhywfar/dialog.h>
#include <aqbanking/error.h> /* for AQBANKING_API */
#include <aqbanking/version.h>
/* outsourced */
#include <aqbanking/banking_virt.h>
#include <aqbanking/banking_imex.h>
#include <aqbanking/banking_info.h>
#include <aqbanking/banking_ob.h>
#include <aqbanking/banking_simple.h>
#include <aqbanking/banking_cfg.h>
#include <aqbanking/provider.h>
#define AB_PM_LIBNAME "aqbanking"
#define AB_PM_SYSCONFDIR "sysconfdir"
#define AB_PM_DATADIR "datadir"
#define AB_PM_WIZARDDIR "wizarddir"
#define AB_PM_LOCALEDIR "localedir"
#ifdef __cplusplus
extern "C" {
#endif
/** @addtogroup G_AB_BANKING Main Interface
*
* @short This group contains the main API function group.
*
* <p>
* A program should first call @ref AB_Banking_Init to allow AqBanking
* to load its configuration files and initialize itself.
* </p>
* After that you may call any other function of this group (most likely
* the program will request a list of managed account via
* @ref AB_Banking_GetAccounts).
* </p>
* <p>
* When the program has finished its work it should call @ref AB_Banking_Fini
* as the last function of AqBanking (just before calling
* @ref AB_Banking_free).
* </p>
*/
/*@{*/
/** @name Extensions supported by the application
*
*/
/*@{*/
#define AB_BANKING_EXTENSION_NONE 0x00000000
/*@}*/
/**
* This object is prepared to be inherited (using @ref GWEN_INHERIT_SETDATA).
*/
GWEN_INHERIT_FUNCTION_LIB_DEFS(AB_BANKING, AQBANKING_API)
/** @name Constructor, Destructor, Init, Fini
*
*/
/*@{*/
/**
* <p>
* Creates an instance of AqBanking. Though AqBanking is quite object
* oriented (and thus allows multiple instances of AB_BANKING to co-exist)
* you should avoid having multiple AB_BANKING objects in parallel.
* </p>
* <p>
* This is just because the backends are loaded dynamically and might not like
* to be used with multiple instances of AB_BANKING in parallel.
* </p>
* <p>
* You should later free this object using @ref AB_Banking_free.
* </p>
* <p>
* This function does not actually load the configuration file or setup
* AqBanking, that is performed by @ref AB_Banking_Init and
* @ref AB_Banking_OnlineInit, respectively.
* </p>
*
* @return new instance of AB_BANKING
*
* @param appName name of the application which wants to use AqBanking.
* This allows AqBanking to separate settings and data for multiple
* applications.
*
* @param dname Path for the directory containing the user data of
* AqBanking. You should in most cases present a NULL for this
* parameter, which means AqBanking will choose the default user
* data folder which is "$HOME/.aqbanking".
* The configuration itself is handled using GWEN's GWEN_ConfigMgr
* module (see @ref GWEN_ConfigMgr_Factory). That module stores the
* configuration in AqBanking's subfolder "settings" (i.e. the
* full path to the user/account configuration is "$HOME/.aqbanking/settings").
*
* @param extensions use 0 for now.
*/
AQBANKING_API
AB_BANKING *AB_Banking_new(const char *appName,
const char *dname,
uint32_t extensions);
/**
* Destroys the given instance of AqBanking. Please note that if
* @ref AB_Banking_Init has been called on this object then
* @ref AB_Banking_Fini should be called before this function.
*/
AQBANKING_API
void AB_Banking_free(AB_BANKING *ab);
AQBANKING_API
void AB_Banking_GetVersion(int *major,
int *minor,
int *patchlevel,
int *build);
/**
* Initializes AqBanking.
* This sets up the plugins, plugin managers and path managers.
* If you want to use online banking tasks you must also call
* @ref AB_Banking_OnlineInit afterwards.
*
* @return 0 if ok, error code otherwise (see @ref AB_ERROR)
*
* @param ab banking interface
*/
AQBANKING_API
int AB_Banking_Init(AB_BANKING *ab);
/**
* Deinitializes AqBanking thus allowing it to save its data and to unload
* backends.
* Please remember to call @ref AB_Banking_OnlineFini before this function
* if you have used online banking functions.
*
* @return 0 if ok, error code otherwise (see @ref AB_ERROR)
*
* @param ab banking interface
*/
AQBANKING_API
int AB_Banking_Fini(AB_BANKING *ab);
/**
* Setup the online banking part of AqBanking. This function actually loads
* the users and accounts.
*
* @return 0 if ok, error code otherwise (see @ref AB_ERROR)
*
* @param ab banking interface
*/
AQBANKING_API
int AB_Banking_OnlineInit(AB_BANKING *ab);
/**
* Uninitialize the online banking part of AqBanking.
*
* @return 0 if ok, error code otherwise (see @ref AB_ERROR)
*
* @param ab banking interface
*/
AQBANKING_API
int AB_Banking_OnlineFini(AB_BANKING *ab);
/*@}*/
/** @name Working With Backends
*
*/
/*@{*/
/**
* Returns a list of the names of currently active providers.
*/
AQBANKING_API
const GWEN_STRINGLIST *AB_Banking_GetActiveProviders(const AB_BANKING *ab);
AQBANKING_API
GWEN_PLUGIN_DESCRIPTION_LIST2 *AB_Banking_GetProviderDescrs(AB_BANKING *ab);
/**
* Create a dialog which allows to create a new user.
*
* @return dialog
*
* @param ab pointer to the AqBanking object
*
* @param backend name of the backend for which a user is to be created
* (e.g. "aqhbci", "aqebics" etc)
*
* @param mode additional parameter depending on the backend. it can be used
* to specify the user type to be created (e.g. for HBCI those values
* specify whether PIN/TAN, keyfile or chipcard users are to be created,
* see @ref AqHBCI_NewUserDialog_CodeGeneric and following).
* Use value 0 for the generic dialog.
*/
AQBANKING_API
GWEN_DIALOG *AB_Banking_GetNewUserDialog(AB_BANKING *ab,
const char *backend,
int mode);
/*@}*/
/** @name Working With Backends (Deprecated)
*
* <p>
* These functions are now deprecated and will be removed prior to the release
* of AqBanking5.
* </p>
* <p>
* Since AqBanking5 configuration dialogs
* and assistents are implemented using GWEN's Dialog Framework. This framework
* allows for platform-independent dialogs (see @ref AB_ImporterDialog_new).
* </p>
*/
/*@{*/
/**
* This function is deprecated and will be removed for the final release
* of AqBanking5.
* You can use @ref AB_SetupDialog_new to create the new setup dialog within your
* application and run it via @ref GWEN_Dialog_Exec().
*/
AQBANKING_API AQBANKING_DEPRECATED
int AB_Banking_FindWizard(AB_BANKING *ab,
const char *backend,
const char *frontends,
GWEN_BUFFER *pbuf);
AQBANKING_API AQBANKING_DEPRECATED
int AB_Banking_FindDebugger(AB_BANKING *ab,
const char *backend,
const char *frontends,
GWEN_BUFFER *pbuf);
/*@}*/
/** @name Application Data
*
* Applications may let AqBanking store global application specific data.
*/
/*@{*/
/**
* Returns the application name as given to @ref AB_Banking_new.
* @param ab pointer to the AB_BANKING object
*/
AQBANKING_API
const char *AB_Banking_GetAppName(const AB_BANKING *ab);
/**
* Returns the escaped version of the application name. This name can
* safely be used to create file paths since all special characters (like
* '/', '.' etc) are escaped.
* @param ab pointer to the AB_BANKING object
*/
AQBANKING_API
const char *AB_Banking_GetEscapedAppName(const AB_BANKING *ab);
/**
* Returns the name of the user folder for AqBanking's data.
* Normally this is something like "/home/me/.aqbanking".
* @return 0 if ok, error code otherwise (see @ref AB_ERROR)
* @param ab pointer to the AB_BANKING object
* @param buf GWEN_BUFFER to append the path name to
*/
AQBANKING_API
int AB_Banking_GetUserDataDir(const AB_BANKING *ab, GWEN_BUFFER *buf);
/**
* Returns the name of the user folder for application data.
* Normally this is something like "/home/me/.aqbanking/apps".
* Your application may choose to create folders below this one to store
* user data. If you only add AqBanking to an existing program to add
* home banking support you will most likely use your own folders and thus
* won't need this function.
* @return 0 if ok, error code otherwise (see @ref AB_ERROR)
* @param ab pointer to the AB_BANKING object
* @param buf GWEN_BUFFER to append the path name to
*/
AQBANKING_API
int AB_Banking_GetAppUserDataDir(const AB_BANKING *ab, GWEN_BUFFER *buf);
/**
* Returns the path to a folder to which shared data can be stored.
* This might be used by multiple applications if they wish to share some
* of their data, e.g. QBankManager and AqMoney3 share their transaction
* storage so that both may work with it.
* Please note that this folder does not necessarily exist, but you are free
* to create it.
*/
AQBANKING_API
int AB_Banking_GetSharedDataDir(const AB_BANKING *ab,
const char *name,
GWEN_BUFFER *buf);
/** Returns the void pointer that was stored by
* AB_Banking_SetUserData(). This might be useful for passing data to
* the callback functions.
*
* On the other hand, we strongly encourage using the GWEN_INHERIT
* macros to store non-trivial data structures in this object.
*
* @param ab Pointer to the AB_BANKING object
*/
AQBANKING_API
void *AB_Banking_GetUserData(AB_BANKING *ab);
/** Save the void pointer that can be retrieved by
* AB_Banking_GetUserData(). This might be useful for passing data to
* the callback functions.
*
* On the other hand, we strongly encourage using the GWEN_INHERIT
* macros to store non-trivial data structures in this object.
*
* @param ab Pointer to the AB_BANKING object
* @param user_data Arbitrary pointer to be stored in the AB_BANKING
*/
AQBANKING_API
void AB_Banking_SetUserData(AB_BANKING *ab, void *user_data);
/*@}*/
/** @name Plugin Handling
*
* These functions are also obsolete and will be removed for AqBanking5.
*/
/*@{*/
AQBANKING_API AQBANKING_DEPRECATED
GWEN_PLUGIN_DESCRIPTION_LIST2 *AB_Banking_GetWizardDescrs(AB_BANKING *ab);
AQBANKING_API AQBANKING_DEPRECATED
GWEN_PLUGIN_DESCRIPTION_LIST2 *AB_Banking_GetDebuggerDescrs(AB_BANKING *ab,
const char *pn);
/*@}*/
/*@}*/ /* addtogroup */
#ifdef __cplusplus
}
#endif
#endif
|