Project

General

Profile

Revision f4a16f5b src/libs/aqbanking/types2/imexporter_accountinfo.xml

View differences:

src/libs/aqbanking/types2/imexporter_accountinfo.xml
126 126
        </inline>
127 127

  
128 128

  
129

  
130 129
        <inline loc="end" access="public">
131 130
          <content>
132
             $(api) AB_ACCOUNT_STATUS *$(struct_prefix)_GetFirstAccountStatus(const $(struct_type) *as);
131
             $(api) AB_BALANCE *$(struct_prefix)_GetFirstBalance(const $(struct_type) *as);
133 132
          </content>
134 133
        </inline>
135 134

  
136 135
        <inline loc="code">
137 136
          <content>
138
             AB_ACCOUNT_STATUS *$(struct_prefix)_GetFirstAccountStatus(const $(struct_type) *as) {
139
               assert(as);
140
               if (as->accountStatusList)
141
                 return AB_AccountStatus_List_First(as->accountStatusList);
137
             AB_BALANCE *$(struct_prefix)_GetFirstBalance(const $(struct_type) *st) {
138
               assert(st);
139
               if (st->balanceList)
140
                 return AB_Balance_List_First(st->balanceList);
142 141
               return NULL;
143 142
             }
144 143
          </content>
145 144
        </inline>
146 145

  
147 146

  
148

  
149 147
        <inline loc="end" access="public">
150 148
          <content>
151
             $(api) void $(struct_prefix)_AddAccountStatus($(struct_type) *st, AB_ACCOUNT_STATUS *as);
149
             $(api) void $(struct_prefix)_AddBalance($(struct_type) *st, AB_BALANCE *bal);
152 150
          </content>
153 151
        </inline>
154 152

  
155 153
        <inline loc="code">
156 154
          <content>
157
             void $(struct_prefix)_AddAccountStatus($(struct_type) *st, AB_ACCOUNT_STATUS *as) {
158
               assert(as);
159
               if (NULL==st->accountStatusList)
160
                 st->accountStatusList=AB_AccountStatus_List_new();
161
               AB_AccountStatus_List_Add(as, st->accountStatusList);
155
             void $(struct_prefix)_AddBalance($(struct_type) *st, AB_BALANCE *bal) {
156
               assert(bal);
157
               if (NULL==st->balanceList)
158
                 st->balanceList=AB_Balance_List_new();
159
               AB_Balance_List_Add(bal, st->balanceList);
162 160
             }
163 161
          </content>
164 162
        </inline>
......
218 216
               assert(st);
219 217
               if (st->transactionList)
220 218
                 AB_Transaction_List_Clear(st->transactionList);
221
               if (st->accountStatusList)
222
                 AB_AccountStatus_List_Clear(st->accountStatusList);
219
               if (st->balanceList)
220
                 AB_Balance_List_Clear(st->balanceList);
223 221
               if (st->eStatementList)
224 222
                 AB_Document_List_Clear(st->eStatementList);
225 223
             }
......
934 932
        </descr>
935 933
      </member>
936 934

  
937
      <member name="accountStatusList" type="AB_ACCOUNT_STATUS_LIST" elementName="status">
935
      <member name="balanceList" type="AB_BALANCE_LIST" elementName="balance">
938 936
        <descr>
939 937
        </descr>
940 938
        <default>NULL</default>
941
        <preset>AB_AccountStatus_List_new()</preset>
939
        <preset>AB_Balance_List_new()</preset>
942 940
        <access>public</access>
943 941
        <flags>own</flags>
944 942
        <setflags>nodup</setflags>

Also available in: Unified diff