1 /***************************************************************************
2     begin       : Mon Mar 01 2004
3     copyright   : (C) 2018 by Martin Preuss
4     email       : martin@libchipcard.de
5 
6  ***************************************************************************
7  *          Please see toplevel file COPYING for license details           *
8  ***************************************************************************/
9 
10 #ifndef AO_ACCOUNT_P_H
11 #define AO_ACCOUNT_P_H
12 
13 #include "account.h"
14 
15 typedef struct AO_ACCOUNT AO_ACCOUNT;
16 struct AO_ACCOUNT {
17   int maxPurposeLines;
18   int debitAllowed;
19 
20   AB_ACCOUNT_READFROMDB_FN readFromDbFn;
21   AB_ACCOUNT_WRITETODB_FN writeToDbFn;
22 };
23 
24 static void GWENHYWFAR_CB AO_Account_freeData(void *bp, void *p);
25 
26 static int AO_Account_ReadFromDb(AB_ACCOUNT *a, GWEN_DB_NODE *db);
27 static int AO_Account_WriteToDb(const AB_ACCOUNT *a, GWEN_DB_NODE *db);
28 
29 
30 #endif
31