1 /**********************************************************
2 * This file has been automatically created by "typemaker2"
3 * from the file "transactionlimits.xml".
4 * Please do not edit this file, all changes will be lost.
5 * Better edit the mentioned source file instead.
6 **********************************************************/
7
8 #ifdef HAVE_CONFIG_H
9 # include <config.h>
10 #endif
11
12 #include "./transactionlimits_p.h"
13
14 #include <gwenhywfar/misc.h>
15 #include <gwenhywfar/debug.h>
16
17 /* code headers */
18
19 /* macro functions */
GWEN_LIST_FUNCTIONS(AB_TRANSACTION_LIMITS,AB_TransactionLimits)20 GWEN_LIST_FUNCTIONS(AB_TRANSACTION_LIMITS, AB_TransactionLimits)
21 GWEN_LIST2_FUNCTIONS(AB_TRANSACTION_LIMITS, AB_TransactionLimits)
22
23
24 AB_TRANSACTION_LIMITS *AB_TransactionLimits_new(void)
25 {
26 AB_TRANSACTION_LIMITS *p_struct;
27
28 GWEN_NEW_OBJECT(AB_TRANSACTION_LIMITS, p_struct)
29 p_struct->_refCount=1;
30 GWEN_LIST_INIT(AB_TRANSACTION_LIMITS, p_struct)
31 /* members */
32 p_struct->command=0;
33 p_struct->maxLenLocalName=0;
34 p_struct->minLenLocalName=0;
35 p_struct->maxLenRemoteName=0;
36 p_struct->minLenRemoteName=0;
37 p_struct->maxLenCustomerReference=0;
38 p_struct->minLenCustomerReference=0;
39 p_struct->maxLenBankReference=0;
40 p_struct->minLenBankReference=0;
41 p_struct->maxLenPurpose=0;
42 p_struct->minLenPurpose=0;
43 p_struct->maxLinesPurpose=0;
44 p_struct->minLinesPurpose=0;
45 p_struct->needDate=0;
46 p_struct->minValueSetupTime=0;
47 p_struct->maxValueSetupTime=0;
48 p_struct->minValueSetupTimeFirst=0;
49 p_struct->maxValueSetupTimeFirst=0;
50 p_struct->minValueSetupTimeOnce=0;
51 p_struct->maxValueSetupTimeOnce=0;
52 p_struct->minValueSetupTimeRecurring=0;
53 p_struct->maxValueSetupTimeRecurring=0;
54 p_struct->minValueSetupTimeFinal=0;
55 p_struct->maxValueSetupTimeFinal=0;
56 memset(p_struct->valuesCycleWeek, 0, 64);
57 p_struct->valuesCycleWeekUsed=0;
58 memset(p_struct->valuesCycleMonth, 0, 64);
59 p_struct->valuesCycleMonthUsed=0;
60 memset(p_struct->valuesExecutionDayWeek, 0, 16);
61 p_struct->valuesExecutionDayWeekUsed=0;
62 memset(p_struct->valuesExecutionDayMonth, 0, 64);
63 p_struct->valuesExecutionDayMonthUsed=0;
64 p_struct->allowMonthly=0;
65 p_struct->allowWeekly=0;
66 p_struct->allowChangeRecipientAccount=0;
67 p_struct->allowChangeRecipientName=0;
68 p_struct->allowChangeValue=0;
69 p_struct->allowChangeTextKey=0;
70 p_struct->allowChangePurpose=0;
71 p_struct->allowChangeFirstExecutionDate=0;
72 p_struct->allowChangeLastExecutionDate=0;
73 p_struct->allowChangeCycle=0;
74 p_struct->allowChangePeriod=0;
75 p_struct->allowChangeExecutionDay=0;
76 /* virtual functions */
77
78 return p_struct;
79 }
80
AB_TransactionLimits_free(AB_TRANSACTION_LIMITS * p_struct)81 void AB_TransactionLimits_free(AB_TRANSACTION_LIMITS *p_struct)
82 {
83 if (p_struct) {
84 assert(p_struct->_refCount);
85 if (p_struct->_refCount==1) {
86 GWEN_LIST_FINI(AB_TRANSACTION_LIMITS, p_struct)
87 /* members */
88 p_struct->_refCount=0;
89 GWEN_FREE_OBJECT(p_struct);
90 }
91 else
92 p_struct->_refCount--;
93 }
94 }
95
AB_TransactionLimits_Attach(AB_TRANSACTION_LIMITS * p_struct)96 void AB_TransactionLimits_Attach(AB_TRANSACTION_LIMITS *p_struct)
97 {
98 assert(p_struct);
99 assert(p_struct->_refCount);
100 p_struct->_refCount++;
101 }
102
AB_TransactionLimits_dup(const AB_TRANSACTION_LIMITS * p_src)103 AB_TRANSACTION_LIMITS *AB_TransactionLimits_dup(const AB_TRANSACTION_LIMITS *p_src)
104 {
105 AB_TRANSACTION_LIMITS *p_struct;
106
107 assert(p_src);
108 p_struct=AB_TransactionLimits_new();
109 /* member "command" */
110 p_struct->command=p_src->command;
111
112 /* member "maxLenLocalName" */
113 p_struct->maxLenLocalName=p_src->maxLenLocalName;
114
115 /* member "minLenLocalName" */
116 p_struct->minLenLocalName=p_src->minLenLocalName;
117
118 /* member "maxLenRemoteName" */
119 p_struct->maxLenRemoteName=p_src->maxLenRemoteName;
120
121 /* member "minLenRemoteName" */
122 p_struct->minLenRemoteName=p_src->minLenRemoteName;
123
124 /* member "maxLenCustomerReference" */
125 p_struct->maxLenCustomerReference=p_src->maxLenCustomerReference;
126
127 /* member "minLenCustomerReference" */
128 p_struct->minLenCustomerReference=p_src->minLenCustomerReference;
129
130 /* member "maxLenBankReference" */
131 p_struct->maxLenBankReference=p_src->maxLenBankReference;
132
133 /* member "minLenBankReference" */
134 p_struct->minLenBankReference=p_src->minLenBankReference;
135
136 /* member "maxLenPurpose" */
137 p_struct->maxLenPurpose=p_src->maxLenPurpose;
138
139 /* member "minLenPurpose" */
140 p_struct->minLenPurpose=p_src->minLenPurpose;
141
142 /* member "maxLinesPurpose" */
143 p_struct->maxLinesPurpose=p_src->maxLinesPurpose;
144
145 /* member "minLinesPurpose" */
146 p_struct->minLinesPurpose=p_src->minLinesPurpose;
147
148 /* member "needDate" */
149 p_struct->needDate=p_src->needDate;
150
151 /* member "minValueSetupTime" */
152 p_struct->minValueSetupTime=p_src->minValueSetupTime;
153
154 /* member "maxValueSetupTime" */
155 p_struct->maxValueSetupTime=p_src->maxValueSetupTime;
156
157 /* member "minValueSetupTimeFirst" */
158 p_struct->minValueSetupTimeFirst=p_src->minValueSetupTimeFirst;
159
160 /* member "maxValueSetupTimeFirst" */
161 p_struct->maxValueSetupTimeFirst=p_src->maxValueSetupTimeFirst;
162
163 /* member "minValueSetupTimeOnce" */
164 p_struct->minValueSetupTimeOnce=p_src->minValueSetupTimeOnce;
165
166 /* member "maxValueSetupTimeOnce" */
167 p_struct->maxValueSetupTimeOnce=p_src->maxValueSetupTimeOnce;
168
169 /* member "minValueSetupTimeRecurring" */
170 p_struct->minValueSetupTimeRecurring=p_src->minValueSetupTimeRecurring;
171
172 /* member "maxValueSetupTimeRecurring" */
173 p_struct->maxValueSetupTimeRecurring=p_src->maxValueSetupTimeRecurring;
174
175 /* member "minValueSetupTimeFinal" */
176 p_struct->minValueSetupTimeFinal=p_src->minValueSetupTimeFinal;
177
178 /* member "maxValueSetupTimeFinal" */
179 p_struct->maxValueSetupTimeFinal=p_src->maxValueSetupTimeFinal;
180
181 /* member "valuesCycleWeek" */
182 memmove(p_struct->valuesCycleWeek, p_src->valuesCycleWeek, 64);
183
184 /* member "valuesCycleWeekUsed" */
185 p_struct->valuesCycleWeekUsed=p_src->valuesCycleWeekUsed;
186
187 /* member "valuesCycleMonth" */
188 memmove(p_struct->valuesCycleMonth, p_src->valuesCycleMonth, 64);
189
190 /* member "valuesCycleMonthUsed" */
191 p_struct->valuesCycleMonthUsed=p_src->valuesCycleMonthUsed;
192
193 /* member "valuesExecutionDayWeek" */
194 memmove(p_struct->valuesExecutionDayWeek, p_src->valuesExecutionDayWeek, 16);
195
196 /* member "valuesExecutionDayWeekUsed" */
197 p_struct->valuesExecutionDayWeekUsed=p_src->valuesExecutionDayWeekUsed;
198
199 /* member "valuesExecutionDayMonth" */
200 memmove(p_struct->valuesExecutionDayMonth, p_src->valuesExecutionDayMonth, 64);
201
202 /* member "valuesExecutionDayMonthUsed" */
203 p_struct->valuesExecutionDayMonthUsed=p_src->valuesExecutionDayMonthUsed;
204
205 /* member "allowMonthly" */
206 p_struct->allowMonthly=p_src->allowMonthly;
207
208 /* member "allowWeekly" */
209 p_struct->allowWeekly=p_src->allowWeekly;
210
211 /* member "allowChangeRecipientAccount" */
212 p_struct->allowChangeRecipientAccount=p_src->allowChangeRecipientAccount;
213
214 /* member "allowChangeRecipientName" */
215 p_struct->allowChangeRecipientName=p_src->allowChangeRecipientName;
216
217 /* member "allowChangeValue" */
218 p_struct->allowChangeValue=p_src->allowChangeValue;
219
220 /* member "allowChangeTextKey" */
221 p_struct->allowChangeTextKey=p_src->allowChangeTextKey;
222
223 /* member "allowChangePurpose" */
224 p_struct->allowChangePurpose=p_src->allowChangePurpose;
225
226 /* member "allowChangeFirstExecutionDate" */
227 p_struct->allowChangeFirstExecutionDate=p_src->allowChangeFirstExecutionDate;
228
229 /* member "allowChangeLastExecutionDate" */
230 p_struct->allowChangeLastExecutionDate=p_src->allowChangeLastExecutionDate;
231
232 /* member "allowChangeCycle" */
233 p_struct->allowChangeCycle=p_src->allowChangeCycle;
234
235 /* member "allowChangePeriod" */
236 p_struct->allowChangePeriod=p_src->allowChangePeriod;
237
238 /* member "allowChangeExecutionDay" */
239 p_struct->allowChangeExecutionDay=p_src->allowChangeExecutionDay;
240
241 return p_struct;
242 }
243
AB_TransactionLimits_copy(AB_TRANSACTION_LIMITS * p_struct,const AB_TRANSACTION_LIMITS * p_src)244 AB_TRANSACTION_LIMITS *AB_TransactionLimits_copy(AB_TRANSACTION_LIMITS *p_struct, const AB_TRANSACTION_LIMITS *p_src)
245 {
246 assert(p_struct);
247 assert(p_src);
248 /* member "command" */
249 p_struct->command=p_src->command;
250
251 /* member "maxLenLocalName" */
252 p_struct->maxLenLocalName=p_src->maxLenLocalName;
253
254 /* member "minLenLocalName" */
255 p_struct->minLenLocalName=p_src->minLenLocalName;
256
257 /* member "maxLenRemoteName" */
258 p_struct->maxLenRemoteName=p_src->maxLenRemoteName;
259
260 /* member "minLenRemoteName" */
261 p_struct->minLenRemoteName=p_src->minLenRemoteName;
262
263 /* member "maxLenCustomerReference" */
264 p_struct->maxLenCustomerReference=p_src->maxLenCustomerReference;
265
266 /* member "minLenCustomerReference" */
267 p_struct->minLenCustomerReference=p_src->minLenCustomerReference;
268
269 /* member "maxLenBankReference" */
270 p_struct->maxLenBankReference=p_src->maxLenBankReference;
271
272 /* member "minLenBankReference" */
273 p_struct->minLenBankReference=p_src->minLenBankReference;
274
275 /* member "maxLenPurpose" */
276 p_struct->maxLenPurpose=p_src->maxLenPurpose;
277
278 /* member "minLenPurpose" */
279 p_struct->minLenPurpose=p_src->minLenPurpose;
280
281 /* member "maxLinesPurpose" */
282 p_struct->maxLinesPurpose=p_src->maxLinesPurpose;
283
284 /* member "minLinesPurpose" */
285 p_struct->minLinesPurpose=p_src->minLinesPurpose;
286
287 /* member "needDate" */
288 p_struct->needDate=p_src->needDate;
289
290 /* member "minValueSetupTime" */
291 p_struct->minValueSetupTime=p_src->minValueSetupTime;
292
293 /* member "maxValueSetupTime" */
294 p_struct->maxValueSetupTime=p_src->maxValueSetupTime;
295
296 /* member "minValueSetupTimeFirst" */
297 p_struct->minValueSetupTimeFirst=p_src->minValueSetupTimeFirst;
298
299 /* member "maxValueSetupTimeFirst" */
300 p_struct->maxValueSetupTimeFirst=p_src->maxValueSetupTimeFirst;
301
302 /* member "minValueSetupTimeOnce" */
303 p_struct->minValueSetupTimeOnce=p_src->minValueSetupTimeOnce;
304
305 /* member "maxValueSetupTimeOnce" */
306 p_struct->maxValueSetupTimeOnce=p_src->maxValueSetupTimeOnce;
307
308 /* member "minValueSetupTimeRecurring" */
309 p_struct->minValueSetupTimeRecurring=p_src->minValueSetupTimeRecurring;
310
311 /* member "maxValueSetupTimeRecurring" */
312 p_struct->maxValueSetupTimeRecurring=p_src->maxValueSetupTimeRecurring;
313
314 /* member "minValueSetupTimeFinal" */
315 p_struct->minValueSetupTimeFinal=p_src->minValueSetupTimeFinal;
316
317 /* member "maxValueSetupTimeFinal" */
318 p_struct->maxValueSetupTimeFinal=p_src->maxValueSetupTimeFinal;
319
320 /* member "valuesCycleWeek" */
321 memmove(p_struct->valuesCycleWeek, p_src->valuesCycleWeek, 64);
322
323 /* member "valuesCycleWeekUsed" */
324 p_struct->valuesCycleWeekUsed=p_src->valuesCycleWeekUsed;
325
326 /* member "valuesCycleMonth" */
327 memmove(p_struct->valuesCycleMonth, p_src->valuesCycleMonth, 64);
328
329 /* member "valuesCycleMonthUsed" */
330 p_struct->valuesCycleMonthUsed=p_src->valuesCycleMonthUsed;
331
332 /* member "valuesExecutionDayWeek" */
333 memmove(p_struct->valuesExecutionDayWeek, p_src->valuesExecutionDayWeek, 16);
334
335 /* member "valuesExecutionDayWeekUsed" */
336 p_struct->valuesExecutionDayWeekUsed=p_src->valuesExecutionDayWeekUsed;
337
338 /* member "valuesExecutionDayMonth" */
339 memmove(p_struct->valuesExecutionDayMonth, p_src->valuesExecutionDayMonth, 64);
340
341 /* member "valuesExecutionDayMonthUsed" */
342 p_struct->valuesExecutionDayMonthUsed=p_src->valuesExecutionDayMonthUsed;
343
344 /* member "allowMonthly" */
345 p_struct->allowMonthly=p_src->allowMonthly;
346
347 /* member "allowWeekly" */
348 p_struct->allowWeekly=p_src->allowWeekly;
349
350 /* member "allowChangeRecipientAccount" */
351 p_struct->allowChangeRecipientAccount=p_src->allowChangeRecipientAccount;
352
353 /* member "allowChangeRecipientName" */
354 p_struct->allowChangeRecipientName=p_src->allowChangeRecipientName;
355
356 /* member "allowChangeValue" */
357 p_struct->allowChangeValue=p_src->allowChangeValue;
358
359 /* member "allowChangeTextKey" */
360 p_struct->allowChangeTextKey=p_src->allowChangeTextKey;
361
362 /* member "allowChangePurpose" */
363 p_struct->allowChangePurpose=p_src->allowChangePurpose;
364
365 /* member "allowChangeFirstExecutionDate" */
366 p_struct->allowChangeFirstExecutionDate=p_src->allowChangeFirstExecutionDate;
367
368 /* member "allowChangeLastExecutionDate" */
369 p_struct->allowChangeLastExecutionDate=p_src->allowChangeLastExecutionDate;
370
371 /* member "allowChangeCycle" */
372 p_struct->allowChangeCycle=p_src->allowChangeCycle;
373
374 /* member "allowChangePeriod" */
375 p_struct->allowChangePeriod=p_src->allowChangePeriod;
376
377 /* member "allowChangeExecutionDay" */
378 p_struct->allowChangeExecutionDay=p_src->allowChangeExecutionDay;
379
380 return p_struct;
381 }
382
AB_TransactionLimits_GetCommand(const AB_TRANSACTION_LIMITS * p_struct)383 int AB_TransactionLimits_GetCommand(const AB_TRANSACTION_LIMITS *p_struct)
384 {
385 assert(p_struct);
386 return p_struct->command;
387 }
388
AB_TransactionLimits_GetMaxLenLocalName(const AB_TRANSACTION_LIMITS * p_struct)389 int AB_TransactionLimits_GetMaxLenLocalName(const AB_TRANSACTION_LIMITS *p_struct)
390 {
391 assert(p_struct);
392 return p_struct->maxLenLocalName;
393 }
394
AB_TransactionLimits_GetMinLenLocalName(const AB_TRANSACTION_LIMITS * p_struct)395 int AB_TransactionLimits_GetMinLenLocalName(const AB_TRANSACTION_LIMITS *p_struct)
396 {
397 assert(p_struct);
398 return p_struct->minLenLocalName;
399 }
400
AB_TransactionLimits_GetMaxLenRemoteName(const AB_TRANSACTION_LIMITS * p_struct)401 int AB_TransactionLimits_GetMaxLenRemoteName(const AB_TRANSACTION_LIMITS *p_struct)
402 {
403 assert(p_struct);
404 return p_struct->maxLenRemoteName;
405 }
406
AB_TransactionLimits_GetMinLenRemoteName(const AB_TRANSACTION_LIMITS * p_struct)407 int AB_TransactionLimits_GetMinLenRemoteName(const AB_TRANSACTION_LIMITS *p_struct)
408 {
409 assert(p_struct);
410 return p_struct->minLenRemoteName;
411 }
412
AB_TransactionLimits_GetMaxLenCustomerReference(const AB_TRANSACTION_LIMITS * p_struct)413 int AB_TransactionLimits_GetMaxLenCustomerReference(const AB_TRANSACTION_LIMITS *p_struct)
414 {
415 assert(p_struct);
416 return p_struct->maxLenCustomerReference;
417 }
418
AB_TransactionLimits_GetMinLenCustomerReference(const AB_TRANSACTION_LIMITS * p_struct)419 int AB_TransactionLimits_GetMinLenCustomerReference(const AB_TRANSACTION_LIMITS *p_struct)
420 {
421 assert(p_struct);
422 return p_struct->minLenCustomerReference;
423 }
424
AB_TransactionLimits_GetMaxLenBankReference(const AB_TRANSACTION_LIMITS * p_struct)425 int AB_TransactionLimits_GetMaxLenBankReference(const AB_TRANSACTION_LIMITS *p_struct)
426 {
427 assert(p_struct);
428 return p_struct->maxLenBankReference;
429 }
430
AB_TransactionLimits_GetMinLenBankReference(const AB_TRANSACTION_LIMITS * p_struct)431 int AB_TransactionLimits_GetMinLenBankReference(const AB_TRANSACTION_LIMITS *p_struct)
432 {
433 assert(p_struct);
434 return p_struct->minLenBankReference;
435 }
436
AB_TransactionLimits_GetMaxLenPurpose(const AB_TRANSACTION_LIMITS * p_struct)437 int AB_TransactionLimits_GetMaxLenPurpose(const AB_TRANSACTION_LIMITS *p_struct)
438 {
439 assert(p_struct);
440 return p_struct->maxLenPurpose;
441 }
442
AB_TransactionLimits_GetMinLenPurpose(const AB_TRANSACTION_LIMITS * p_struct)443 int AB_TransactionLimits_GetMinLenPurpose(const AB_TRANSACTION_LIMITS *p_struct)
444 {
445 assert(p_struct);
446 return p_struct->minLenPurpose;
447 }
448
AB_TransactionLimits_GetMaxLinesPurpose(const AB_TRANSACTION_LIMITS * p_struct)449 int AB_TransactionLimits_GetMaxLinesPurpose(const AB_TRANSACTION_LIMITS *p_struct)
450 {
451 assert(p_struct);
452 return p_struct->maxLinesPurpose;
453 }
454
AB_TransactionLimits_GetMinLinesPurpose(const AB_TRANSACTION_LIMITS * p_struct)455 int AB_TransactionLimits_GetMinLinesPurpose(const AB_TRANSACTION_LIMITS *p_struct)
456 {
457 assert(p_struct);
458 return p_struct->minLinesPurpose;
459 }
460
AB_TransactionLimits_GetNeedDate(const AB_TRANSACTION_LIMITS * p_struct)461 int AB_TransactionLimits_GetNeedDate(const AB_TRANSACTION_LIMITS *p_struct)
462 {
463 assert(p_struct);
464 return p_struct->needDate;
465 }
466
AB_TransactionLimits_GetMinValueSetupTime(const AB_TRANSACTION_LIMITS * p_struct)467 int AB_TransactionLimits_GetMinValueSetupTime(const AB_TRANSACTION_LIMITS *p_struct)
468 {
469 assert(p_struct);
470 return p_struct->minValueSetupTime;
471 }
472
AB_TransactionLimits_GetMaxValueSetupTime(const AB_TRANSACTION_LIMITS * p_struct)473 int AB_TransactionLimits_GetMaxValueSetupTime(const AB_TRANSACTION_LIMITS *p_struct)
474 {
475 assert(p_struct);
476 return p_struct->maxValueSetupTime;
477 }
478
AB_TransactionLimits_GetMinValueSetupTimeFirst(const AB_TRANSACTION_LIMITS * p_struct)479 int AB_TransactionLimits_GetMinValueSetupTimeFirst(const AB_TRANSACTION_LIMITS *p_struct)
480 {
481 assert(p_struct);
482 return p_struct->minValueSetupTimeFirst;
483 }
484
AB_TransactionLimits_GetMaxValueSetupTimeFirst(const AB_TRANSACTION_LIMITS * p_struct)485 int AB_TransactionLimits_GetMaxValueSetupTimeFirst(const AB_TRANSACTION_LIMITS *p_struct)
486 {
487 assert(p_struct);
488 return p_struct->maxValueSetupTimeFirst;
489 }
490
AB_TransactionLimits_GetMinValueSetupTimeOnce(const AB_TRANSACTION_LIMITS * p_struct)491 int AB_TransactionLimits_GetMinValueSetupTimeOnce(const AB_TRANSACTION_LIMITS *p_struct)
492 {
493 assert(p_struct);
494 return p_struct->minValueSetupTimeOnce;
495 }
496
AB_TransactionLimits_GetMaxValueSetupTimeOnce(const AB_TRANSACTION_LIMITS * p_struct)497 int AB_TransactionLimits_GetMaxValueSetupTimeOnce(const AB_TRANSACTION_LIMITS *p_struct)
498 {
499 assert(p_struct);
500 return p_struct->maxValueSetupTimeOnce;
501 }
502
AB_TransactionLimits_GetMinValueSetupTimeRecurring(const AB_TRANSACTION_LIMITS * p_struct)503 int AB_TransactionLimits_GetMinValueSetupTimeRecurring(const AB_TRANSACTION_LIMITS *p_struct)
504 {
505 assert(p_struct);
506 return p_struct->minValueSetupTimeRecurring;
507 }
508
AB_TransactionLimits_GetMaxValueSetupTimeRecurring(const AB_TRANSACTION_LIMITS * p_struct)509 int AB_TransactionLimits_GetMaxValueSetupTimeRecurring(const AB_TRANSACTION_LIMITS *p_struct)
510 {
511 assert(p_struct);
512 return p_struct->maxValueSetupTimeRecurring;
513 }
514
AB_TransactionLimits_GetMinValueSetupTimeFinal(const AB_TRANSACTION_LIMITS * p_struct)515 int AB_TransactionLimits_GetMinValueSetupTimeFinal(const AB_TRANSACTION_LIMITS *p_struct)
516 {
517 assert(p_struct);
518 return p_struct->minValueSetupTimeFinal;
519 }
520
AB_TransactionLimits_GetMaxValueSetupTimeFinal(const AB_TRANSACTION_LIMITS * p_struct)521 int AB_TransactionLimits_GetMaxValueSetupTimeFinal(const AB_TRANSACTION_LIMITS *p_struct)
522 {
523 assert(p_struct);
524 return p_struct->maxValueSetupTimeFinal;
525 }
526
AB_TransactionLimits_GetValuesCycleWeek(const AB_TRANSACTION_LIMITS * p_struct)527 const uint8_t *AB_TransactionLimits_GetValuesCycleWeek(const AB_TRANSACTION_LIMITS *p_struct)
528 {
529 assert(p_struct);
530 return p_struct->valuesCycleWeek;
531 }
532
AB_TransactionLimits_GetValuesCycleWeekUsed(const AB_TRANSACTION_LIMITS * p_struct)533 int AB_TransactionLimits_GetValuesCycleWeekUsed(const AB_TRANSACTION_LIMITS *p_struct)
534 {
535 assert(p_struct);
536 return p_struct->valuesCycleWeekUsed;
537 }
538
AB_TransactionLimits_GetValuesCycleMonth(const AB_TRANSACTION_LIMITS * p_struct)539 const uint8_t *AB_TransactionLimits_GetValuesCycleMonth(const AB_TRANSACTION_LIMITS *p_struct)
540 {
541 assert(p_struct);
542 return p_struct->valuesCycleMonth;
543 }
544
AB_TransactionLimits_GetValuesCycleMonthUsed(const AB_TRANSACTION_LIMITS * p_struct)545 int AB_TransactionLimits_GetValuesCycleMonthUsed(const AB_TRANSACTION_LIMITS *p_struct)
546 {
547 assert(p_struct);
548 return p_struct->valuesCycleMonthUsed;
549 }
550
AB_TransactionLimits_GetValuesExecutionDayWeek(const AB_TRANSACTION_LIMITS * p_struct)551 const uint8_t *AB_TransactionLimits_GetValuesExecutionDayWeek(const AB_TRANSACTION_LIMITS *p_struct)
552 {
553 assert(p_struct);
554 return p_struct->valuesExecutionDayWeek;
555 }
556
AB_TransactionLimits_GetValuesExecutionDayWeekUsed(const AB_TRANSACTION_LIMITS * p_struct)557 int AB_TransactionLimits_GetValuesExecutionDayWeekUsed(const AB_TRANSACTION_LIMITS *p_struct)
558 {
559 assert(p_struct);
560 return p_struct->valuesExecutionDayWeekUsed;
561 }
562
AB_TransactionLimits_GetValuesExecutionDayMonth(const AB_TRANSACTION_LIMITS * p_struct)563 const uint8_t *AB_TransactionLimits_GetValuesExecutionDayMonth(const AB_TRANSACTION_LIMITS *p_struct)
564 {
565 assert(p_struct);
566 return p_struct->valuesExecutionDayMonth;
567 }
568
AB_TransactionLimits_GetValuesExecutionDayMonthUsed(const AB_TRANSACTION_LIMITS * p_struct)569 int AB_TransactionLimits_GetValuesExecutionDayMonthUsed(const AB_TRANSACTION_LIMITS *p_struct)
570 {
571 assert(p_struct);
572 return p_struct->valuesExecutionDayMonthUsed;
573 }
574
AB_TransactionLimits_GetAllowMonthly(const AB_TRANSACTION_LIMITS * p_struct)575 int AB_TransactionLimits_GetAllowMonthly(const AB_TRANSACTION_LIMITS *p_struct)
576 {
577 assert(p_struct);
578 return p_struct->allowMonthly;
579 }
580
AB_TransactionLimits_GetAllowWeekly(const AB_TRANSACTION_LIMITS * p_struct)581 int AB_TransactionLimits_GetAllowWeekly(const AB_TRANSACTION_LIMITS *p_struct)
582 {
583 assert(p_struct);
584 return p_struct->allowWeekly;
585 }
586
AB_TransactionLimits_GetAllowChangeRecipientAccount(const AB_TRANSACTION_LIMITS * p_struct)587 int AB_TransactionLimits_GetAllowChangeRecipientAccount(const AB_TRANSACTION_LIMITS *p_struct)
588 {
589 assert(p_struct);
590 return p_struct->allowChangeRecipientAccount;
591 }
592
AB_TransactionLimits_GetAllowChangeRecipientName(const AB_TRANSACTION_LIMITS * p_struct)593 int AB_TransactionLimits_GetAllowChangeRecipientName(const AB_TRANSACTION_LIMITS *p_struct)
594 {
595 assert(p_struct);
596 return p_struct->allowChangeRecipientName;
597 }
598
AB_TransactionLimits_GetAllowChangeValue(const AB_TRANSACTION_LIMITS * p_struct)599 int AB_TransactionLimits_GetAllowChangeValue(const AB_TRANSACTION_LIMITS *p_struct)
600 {
601 assert(p_struct);
602 return p_struct->allowChangeValue;
603 }
604
AB_TransactionLimits_GetAllowChangeTextKey(const AB_TRANSACTION_LIMITS * p_struct)605 int AB_TransactionLimits_GetAllowChangeTextKey(const AB_TRANSACTION_LIMITS *p_struct)
606 {
607 assert(p_struct);
608 return p_struct->allowChangeTextKey;
609 }
610
AB_TransactionLimits_GetAllowChangePurpose(const AB_TRANSACTION_LIMITS * p_struct)611 int AB_TransactionLimits_GetAllowChangePurpose(const AB_TRANSACTION_LIMITS *p_struct)
612 {
613 assert(p_struct);
614 return p_struct->allowChangePurpose;
615 }
616
AB_TransactionLimits_GetAllowChangeFirstExecutionDate(const AB_TRANSACTION_LIMITS * p_struct)617 int AB_TransactionLimits_GetAllowChangeFirstExecutionDate(const AB_TRANSACTION_LIMITS *p_struct)
618 {
619 assert(p_struct);
620 return p_struct->allowChangeFirstExecutionDate;
621 }
622
AB_TransactionLimits_GetAllowChangeLastExecutionDate(const AB_TRANSACTION_LIMITS * p_struct)623 int AB_TransactionLimits_GetAllowChangeLastExecutionDate(const AB_TRANSACTION_LIMITS *p_struct)
624 {
625 assert(p_struct);
626 return p_struct->allowChangeLastExecutionDate;
627 }
628
AB_TransactionLimits_GetAllowChangeCycle(const AB_TRANSACTION_LIMITS * p_struct)629 int AB_TransactionLimits_GetAllowChangeCycle(const AB_TRANSACTION_LIMITS *p_struct)
630 {
631 assert(p_struct);
632 return p_struct->allowChangeCycle;
633 }
634
AB_TransactionLimits_GetAllowChangePeriod(const AB_TRANSACTION_LIMITS * p_struct)635 int AB_TransactionLimits_GetAllowChangePeriod(const AB_TRANSACTION_LIMITS *p_struct)
636 {
637 assert(p_struct);
638 return p_struct->allowChangePeriod;
639 }
640
AB_TransactionLimits_GetAllowChangeExecutionDay(const AB_TRANSACTION_LIMITS * p_struct)641 int AB_TransactionLimits_GetAllowChangeExecutionDay(const AB_TRANSACTION_LIMITS *p_struct)
642 {
643 assert(p_struct);
644 return p_struct->allowChangeExecutionDay;
645 }
646
AB_TransactionLimits_SetCommand(AB_TRANSACTION_LIMITS * p_struct,int p_src)647 void AB_TransactionLimits_SetCommand(AB_TRANSACTION_LIMITS *p_struct, int p_src)
648 {
649 assert(p_struct);
650 p_struct->command=p_src;
651 }
652
AB_TransactionLimits_SetMaxLenLocalName(AB_TRANSACTION_LIMITS * p_struct,int p_src)653 void AB_TransactionLimits_SetMaxLenLocalName(AB_TRANSACTION_LIMITS *p_struct, int p_src)
654 {
655 assert(p_struct);
656 p_struct->maxLenLocalName=p_src;
657 }
658
AB_TransactionLimits_SetMinLenLocalName(AB_TRANSACTION_LIMITS * p_struct,int p_src)659 void AB_TransactionLimits_SetMinLenLocalName(AB_TRANSACTION_LIMITS *p_struct, int p_src)
660 {
661 assert(p_struct);
662 p_struct->minLenLocalName=p_src;
663 }
664
AB_TransactionLimits_SetMaxLenRemoteName(AB_TRANSACTION_LIMITS * p_struct,int p_src)665 void AB_TransactionLimits_SetMaxLenRemoteName(AB_TRANSACTION_LIMITS *p_struct, int p_src)
666 {
667 assert(p_struct);
668 p_struct->maxLenRemoteName=p_src;
669 }
670
AB_TransactionLimits_SetMinLenRemoteName(AB_TRANSACTION_LIMITS * p_struct,int p_src)671 void AB_TransactionLimits_SetMinLenRemoteName(AB_TRANSACTION_LIMITS *p_struct, int p_src)
672 {
673 assert(p_struct);
674 p_struct->minLenRemoteName=p_src;
675 }
676
AB_TransactionLimits_SetMaxLenCustomerReference(AB_TRANSACTION_LIMITS * p_struct,int p_src)677 void AB_TransactionLimits_SetMaxLenCustomerReference(AB_TRANSACTION_LIMITS *p_struct, int p_src)
678 {
679 assert(p_struct);
680 p_struct->maxLenCustomerReference=p_src;
681 }
682
AB_TransactionLimits_SetMinLenCustomerReference(AB_TRANSACTION_LIMITS * p_struct,int p_src)683 void AB_TransactionLimits_SetMinLenCustomerReference(AB_TRANSACTION_LIMITS *p_struct, int p_src)
684 {
685 assert(p_struct);
686 p_struct->minLenCustomerReference=p_src;
687 }
688
AB_TransactionLimits_SetMaxLenBankReference(AB_TRANSACTION_LIMITS * p_struct,int p_src)689 void AB_TransactionLimits_SetMaxLenBankReference(AB_TRANSACTION_LIMITS *p_struct, int p_src)
690 {
691 assert(p_struct);
692 p_struct->maxLenBankReference=p_src;
693 }
694
AB_TransactionLimits_SetMinLenBankReference(AB_TRANSACTION_LIMITS * p_struct,int p_src)695 void AB_TransactionLimits_SetMinLenBankReference(AB_TRANSACTION_LIMITS *p_struct, int p_src)
696 {
697 assert(p_struct);
698 p_struct->minLenBankReference=p_src;
699 }
700
AB_TransactionLimits_SetMaxLenPurpose(AB_TRANSACTION_LIMITS * p_struct,int p_src)701 void AB_TransactionLimits_SetMaxLenPurpose(AB_TRANSACTION_LIMITS *p_struct, int p_src)
702 {
703 assert(p_struct);
704 p_struct->maxLenPurpose=p_src;
705 }
706
AB_TransactionLimits_SetMinLenPurpose(AB_TRANSACTION_LIMITS * p_struct,int p_src)707 void AB_TransactionLimits_SetMinLenPurpose(AB_TRANSACTION_LIMITS *p_struct, int p_src)
708 {
709 assert(p_struct);
710 p_struct->minLenPurpose=p_src;
711 }
712
AB_TransactionLimits_SetMaxLinesPurpose(AB_TRANSACTION_LIMITS * p_struct,int p_src)713 void AB_TransactionLimits_SetMaxLinesPurpose(AB_TRANSACTION_LIMITS *p_struct, int p_src)
714 {
715 assert(p_struct);
716 p_struct->maxLinesPurpose=p_src;
717 }
718
AB_TransactionLimits_SetMinLinesPurpose(AB_TRANSACTION_LIMITS * p_struct,int p_src)719 void AB_TransactionLimits_SetMinLinesPurpose(AB_TRANSACTION_LIMITS *p_struct, int p_src)
720 {
721 assert(p_struct);
722 p_struct->minLinesPurpose=p_src;
723 }
724
AB_TransactionLimits_SetNeedDate(AB_TRANSACTION_LIMITS * p_struct,int p_src)725 void AB_TransactionLimits_SetNeedDate(AB_TRANSACTION_LIMITS *p_struct, int p_src)
726 {
727 assert(p_struct);
728 p_struct->needDate=p_src;
729 }
730
AB_TransactionLimits_SetMinValueSetupTime(AB_TRANSACTION_LIMITS * p_struct,int p_src)731 void AB_TransactionLimits_SetMinValueSetupTime(AB_TRANSACTION_LIMITS *p_struct, int p_src)
732 {
733 assert(p_struct);
734 p_struct->minValueSetupTime=p_src;
735 }
736
AB_TransactionLimits_SetMaxValueSetupTime(AB_TRANSACTION_LIMITS * p_struct,int p_src)737 void AB_TransactionLimits_SetMaxValueSetupTime(AB_TRANSACTION_LIMITS *p_struct, int p_src)
738 {
739 assert(p_struct);
740 p_struct->maxValueSetupTime=p_src;
741 }
742
AB_TransactionLimits_SetMinValueSetupTimeFirst(AB_TRANSACTION_LIMITS * p_struct,int p_src)743 void AB_TransactionLimits_SetMinValueSetupTimeFirst(AB_TRANSACTION_LIMITS *p_struct, int p_src)
744 {
745 assert(p_struct);
746 p_struct->minValueSetupTimeFirst=p_src;
747 }
748
AB_TransactionLimits_SetMaxValueSetupTimeFirst(AB_TRANSACTION_LIMITS * p_struct,int p_src)749 void AB_TransactionLimits_SetMaxValueSetupTimeFirst(AB_TRANSACTION_LIMITS *p_struct, int p_src)
750 {
751 assert(p_struct);
752 p_struct->maxValueSetupTimeFirst=p_src;
753 }
754
AB_TransactionLimits_SetMinValueSetupTimeOnce(AB_TRANSACTION_LIMITS * p_struct,int p_src)755 void AB_TransactionLimits_SetMinValueSetupTimeOnce(AB_TRANSACTION_LIMITS *p_struct, int p_src)
756 {
757 assert(p_struct);
758 p_struct->minValueSetupTimeOnce=p_src;
759 }
760
AB_TransactionLimits_SetMaxValueSetupTimeOnce(AB_TRANSACTION_LIMITS * p_struct,int p_src)761 void AB_TransactionLimits_SetMaxValueSetupTimeOnce(AB_TRANSACTION_LIMITS *p_struct, int p_src)
762 {
763 assert(p_struct);
764 p_struct->maxValueSetupTimeOnce=p_src;
765 }
766
AB_TransactionLimits_SetMinValueSetupTimeRecurring(AB_TRANSACTION_LIMITS * p_struct,int p_src)767 void AB_TransactionLimits_SetMinValueSetupTimeRecurring(AB_TRANSACTION_LIMITS *p_struct, int p_src)
768 {
769 assert(p_struct);
770 p_struct->minValueSetupTimeRecurring=p_src;
771 }
772
AB_TransactionLimits_SetMaxValueSetupTimeRecurring(AB_TRANSACTION_LIMITS * p_struct,int p_src)773 void AB_TransactionLimits_SetMaxValueSetupTimeRecurring(AB_TRANSACTION_LIMITS *p_struct, int p_src)
774 {
775 assert(p_struct);
776 p_struct->maxValueSetupTimeRecurring=p_src;
777 }
778
AB_TransactionLimits_SetMinValueSetupTimeFinal(AB_TRANSACTION_LIMITS * p_struct,int p_src)779 void AB_TransactionLimits_SetMinValueSetupTimeFinal(AB_TRANSACTION_LIMITS *p_struct, int p_src)
780 {
781 assert(p_struct);
782 p_struct->minValueSetupTimeFinal=p_src;
783 }
784
AB_TransactionLimits_SetMaxValueSetupTimeFinal(AB_TRANSACTION_LIMITS * p_struct,int p_src)785 void AB_TransactionLimits_SetMaxValueSetupTimeFinal(AB_TRANSACTION_LIMITS *p_struct, int p_src)
786 {
787 assert(p_struct);
788 p_struct->maxValueSetupTimeFinal=p_src;
789 }
790
AB_TransactionLimits_SetValuesCycleWeekUsed(AB_TRANSACTION_LIMITS * p_struct,int p_src)791 void AB_TransactionLimits_SetValuesCycleWeekUsed(AB_TRANSACTION_LIMITS *p_struct, int p_src)
792 {
793 assert(p_struct);
794 p_struct->valuesCycleWeekUsed=p_src;
795 }
796
AB_TransactionLimits_SetValuesCycleMonthUsed(AB_TRANSACTION_LIMITS * p_struct,int p_src)797 void AB_TransactionLimits_SetValuesCycleMonthUsed(AB_TRANSACTION_LIMITS *p_struct, int p_src)
798 {
799 assert(p_struct);
800 p_struct->valuesCycleMonthUsed=p_src;
801 }
802
AB_TransactionLimits_SetValuesExecutionDayWeekUsed(AB_TRANSACTION_LIMITS * p_struct,int p_src)803 void AB_TransactionLimits_SetValuesExecutionDayWeekUsed(AB_TRANSACTION_LIMITS *p_struct, int p_src)
804 {
805 assert(p_struct);
806 p_struct->valuesExecutionDayWeekUsed=p_src;
807 }
808
AB_TransactionLimits_SetValuesExecutionDayMonthUsed(AB_TRANSACTION_LIMITS * p_struct,int p_src)809 void AB_TransactionLimits_SetValuesExecutionDayMonthUsed(AB_TRANSACTION_LIMITS *p_struct, int p_src)
810 {
811 assert(p_struct);
812 p_struct->valuesExecutionDayMonthUsed=p_src;
813 }
814
AB_TransactionLimits_SetAllowMonthly(AB_TRANSACTION_LIMITS * p_struct,int p_src)815 void AB_TransactionLimits_SetAllowMonthly(AB_TRANSACTION_LIMITS *p_struct, int p_src)
816 {
817 assert(p_struct);
818 p_struct->allowMonthly=p_src;
819 }
820
AB_TransactionLimits_SetAllowWeekly(AB_TRANSACTION_LIMITS * p_struct,int p_src)821 void AB_TransactionLimits_SetAllowWeekly(AB_TRANSACTION_LIMITS *p_struct, int p_src)
822 {
823 assert(p_struct);
824 p_struct->allowWeekly=p_src;
825 }
826
AB_TransactionLimits_SetAllowChangeRecipientAccount(AB_TRANSACTION_LIMITS * p_struct,int p_src)827 void AB_TransactionLimits_SetAllowChangeRecipientAccount(AB_TRANSACTION_LIMITS *p_struct, int p_src)
828 {
829 assert(p_struct);
830 p_struct->allowChangeRecipientAccount=p_src;
831 }
832
AB_TransactionLimits_SetAllowChangeRecipientName(AB_TRANSACTION_LIMITS * p_struct,int p_src)833 void AB_TransactionLimits_SetAllowChangeRecipientName(AB_TRANSACTION_LIMITS *p_struct, int p_src)
834 {
835 assert(p_struct);
836 p_struct->allowChangeRecipientName=p_src;
837 }
838
AB_TransactionLimits_SetAllowChangeValue(AB_TRANSACTION_LIMITS * p_struct,int p_src)839 void AB_TransactionLimits_SetAllowChangeValue(AB_TRANSACTION_LIMITS *p_struct, int p_src)
840 {
841 assert(p_struct);
842 p_struct->allowChangeValue=p_src;
843 }
844
AB_TransactionLimits_SetAllowChangeTextKey(AB_TRANSACTION_LIMITS * p_struct,int p_src)845 void AB_TransactionLimits_SetAllowChangeTextKey(AB_TRANSACTION_LIMITS *p_struct, int p_src)
846 {
847 assert(p_struct);
848 p_struct->allowChangeTextKey=p_src;
849 }
850
AB_TransactionLimits_SetAllowChangePurpose(AB_TRANSACTION_LIMITS * p_struct,int p_src)851 void AB_TransactionLimits_SetAllowChangePurpose(AB_TRANSACTION_LIMITS *p_struct, int p_src)
852 {
853 assert(p_struct);
854 p_struct->allowChangePurpose=p_src;
855 }
856
AB_TransactionLimits_SetAllowChangeFirstExecutionDate(AB_TRANSACTION_LIMITS * p_struct,int p_src)857 void AB_TransactionLimits_SetAllowChangeFirstExecutionDate(AB_TRANSACTION_LIMITS *p_struct, int p_src)
858 {
859 assert(p_struct);
860 p_struct->allowChangeFirstExecutionDate=p_src;
861 }
862
AB_TransactionLimits_SetAllowChangeLastExecutionDate(AB_TRANSACTION_LIMITS * p_struct,int p_src)863 void AB_TransactionLimits_SetAllowChangeLastExecutionDate(AB_TRANSACTION_LIMITS *p_struct, int p_src)
864 {
865 assert(p_struct);
866 p_struct->allowChangeLastExecutionDate=p_src;
867 }
868
AB_TransactionLimits_SetAllowChangeCycle(AB_TRANSACTION_LIMITS * p_struct,int p_src)869 void AB_TransactionLimits_SetAllowChangeCycle(AB_TRANSACTION_LIMITS *p_struct, int p_src)
870 {
871 assert(p_struct);
872 p_struct->allowChangeCycle=p_src;
873 }
874
AB_TransactionLimits_SetAllowChangePeriod(AB_TRANSACTION_LIMITS * p_struct,int p_src)875 void AB_TransactionLimits_SetAllowChangePeriod(AB_TRANSACTION_LIMITS *p_struct, int p_src)
876 {
877 assert(p_struct);
878 p_struct->allowChangePeriod=p_src;
879 }
880
AB_TransactionLimits_SetAllowChangeExecutionDay(AB_TRANSACTION_LIMITS * p_struct,int p_src)881 void AB_TransactionLimits_SetAllowChangeExecutionDay(AB_TRANSACTION_LIMITS *p_struct, int p_src)
882 {
883 assert(p_struct);
884 p_struct->allowChangeExecutionDay=p_src;
885 }
886
887 /* list1 functions */
AB_TransactionLimits_List_dup(const AB_TRANSACTION_LIMITS_LIST * p_src)888 AB_TRANSACTION_LIMITS_LIST *AB_TransactionLimits_List_dup(const AB_TRANSACTION_LIMITS_LIST *p_src)
889 {
890 AB_TRANSACTION_LIMITS_LIST *p_dest;
891 AB_TRANSACTION_LIMITS *p_elem;
892
893 assert(p_src);
894 p_dest=AB_TransactionLimits_List_new();
895 p_elem=AB_TransactionLimits_List_First(p_src);
896 while (p_elem) {
897 AB_TRANSACTION_LIMITS *p_cpy;
898
899 p_cpy=AB_TransactionLimits_dup(p_elem);
900 AB_TransactionLimits_List_Add(p_cpy, p_dest);
901 p_elem=AB_TransactionLimits_List_Next(p_elem);
902 }
903
904 return p_dest;
905 }
906
AB_TransactionLimits_ReadDb(AB_TRANSACTION_LIMITS * p_struct,GWEN_DB_NODE * p_db)907 void AB_TransactionLimits_ReadDb(AB_TRANSACTION_LIMITS *p_struct, GWEN_DB_NODE *p_db)
908 {
909 assert(p_struct);
910 /* member "command" */
911 p_struct->command=GWEN_DB_GetIntValue(p_db, "command", 0, 0);
912
913 /* member "maxLenLocalName" */
914 p_struct->maxLenLocalName=GWEN_DB_GetIntValue(p_db, "maxLenLocalName", 0, 0);
915
916 /* member "minLenLocalName" */
917 p_struct->minLenLocalName=GWEN_DB_GetIntValue(p_db, "minLenLocalName", 0, 0);
918
919 /* member "maxLenRemoteName" */
920 p_struct->maxLenRemoteName=GWEN_DB_GetIntValue(p_db, "maxLenRemoteName", 0, 0);
921
922 /* member "minLenRemoteName" */
923 p_struct->minLenRemoteName=GWEN_DB_GetIntValue(p_db, "minLenRemoteName", 0, 0);
924
925 /* member "maxLenCustomerReference" */
926 p_struct->maxLenCustomerReference=GWEN_DB_GetIntValue(p_db, "maxLenCustomerReference", 0, 0);
927
928 /* member "minLenCustomerReference" */
929 p_struct->minLenCustomerReference=GWEN_DB_GetIntValue(p_db, "minLenCustomerReference", 0, 0);
930
931 /* member "maxLenBankReference" */
932 p_struct->maxLenBankReference=GWEN_DB_GetIntValue(p_db, "maxLenBankReference", 0, 0);
933
934 /* member "minLenBankReference" */
935 p_struct->minLenBankReference=GWEN_DB_GetIntValue(p_db, "minLenBankReference", 0, 0);
936
937 /* member "maxLenPurpose" */
938 p_struct->maxLenPurpose=GWEN_DB_GetIntValue(p_db, "maxLenPurpose", 0, 0);
939
940 /* member "minLenPurpose" */
941 p_struct->minLenPurpose=GWEN_DB_GetIntValue(p_db, "minLenPurpose", 0, 0);
942
943 /* member "maxLinesPurpose" */
944 p_struct->maxLinesPurpose=GWEN_DB_GetIntValue(p_db, "maxLinesPurpose", 0, 0);
945
946 /* member "minLinesPurpose" */
947 p_struct->minLinesPurpose=GWEN_DB_GetIntValue(p_db, "minLinesPurpose", 0, 0);
948
949 /* member "needDate" */
950 p_struct->needDate=GWEN_DB_GetIntValue(p_db, "needDate", 0, 0);
951
952 /* member "minValueSetupTime" */
953 p_struct->minValueSetupTime=GWEN_DB_GetIntValue(p_db, "minValueSetupTime", 0, 0);
954
955 /* member "maxValueSetupTime" */
956 p_struct->maxValueSetupTime=GWEN_DB_GetIntValue(p_db, "maxValueSetupTime", 0, 0);
957
958 /* member "minValueSetupTimeFirst" */
959 p_struct->minValueSetupTimeFirst=GWEN_DB_GetIntValue(p_db, "minValueSetupTimeFirst", 0, 0);
960
961 /* member "maxValueSetupTimeFirst" */
962 p_struct->maxValueSetupTimeFirst=GWEN_DB_GetIntValue(p_db, "maxValueSetupTimeFirst", 0, 0);
963
964 /* member "minValueSetupTimeOnce" */
965 p_struct->minValueSetupTimeOnce=GWEN_DB_GetIntValue(p_db, "minValueSetupTimeOnce", 0, 0);
966
967 /* member "maxValueSetupTimeOnce" */
968 p_struct->maxValueSetupTimeOnce=GWEN_DB_GetIntValue(p_db, "maxValueSetupTimeOnce", 0, 0);
969
970 /* member "minValueSetupTimeRecurring" */
971 p_struct->minValueSetupTimeRecurring=GWEN_DB_GetIntValue(p_db, "minValueSetupTimeRecurring", 0, 0);
972
973 /* member "maxValueSetupTimeRecurring" */
974 p_struct->maxValueSetupTimeRecurring=GWEN_DB_GetIntValue(p_db, "maxValueSetupTimeRecurring", 0, 0);
975
976 /* member "minValueSetupTimeFinal" */
977 p_struct->minValueSetupTimeFinal=GWEN_DB_GetIntValue(p_db, "minValueSetupTimeFinal", 0, 0);
978
979 /* member "maxValueSetupTimeFinal" */
980 p_struct->maxValueSetupTimeFinal=GWEN_DB_GetIntValue(p_db, "maxValueSetupTimeFinal", 0, 0);
981
982 /* member "valuesCycleWeek" */
983 {
984 int i;
985 memset(p_struct->valuesCycleWeek, 0, (64)*sizeof(uint8_t));
986 for (i=0; i < 64; i++) {
987 int v;
988 v=GWEN_DB_GetIntValue(p_db, "valuesCycleWeek", i, 0);
989 if (v==0)
990 break;
991 p_struct->valuesCycleWeek[i]=v;
992 }
993 }
994
995 /* member "valuesCycleWeekUsed" */
996 p_struct->valuesCycleWeekUsed=GWEN_DB_GetIntValue(p_db, "valuesCycleWeekUsed", 0, 0);
997
998 /* member "valuesCycleMonth" */
999 {
1000 int i;
1001 memset(p_struct->valuesCycleMonth, 0, (64)*sizeof(uint8_t));
1002 for (i=0; i < 64; i++) {
1003 int v;
1004 v=GWEN_DB_GetIntValue(p_db, "valuesCycleMonth", i, 0);
1005 if (v==0)
1006 break;
1007 p_struct->valuesCycleMonth[i]=v;
1008 }
1009 }
1010
1011 /* member "valuesCycleMonthUsed" */
1012 p_struct->valuesCycleMonthUsed=GWEN_DB_GetIntValue(p_db, "valuesCycleMonthUsed", 0, 0);
1013
1014 /* member "valuesExecutionDayWeek" */
1015 {
1016 int i;
1017 memset(p_struct->valuesExecutionDayWeek, 0, (16)*sizeof(uint8_t));
1018 for (i=0; i < 16; i++) {
1019 int v;
1020 v=GWEN_DB_GetIntValue(p_db, "valuesExecutionDayWeek", i, 0);
1021 if (v==0)
1022 break;
1023 p_struct->valuesExecutionDayWeek[i]=v;
1024 }
1025 }
1026
1027 /* member "valuesExecutionDayWeekUsed" */
1028 p_struct->valuesExecutionDayWeekUsed=GWEN_DB_GetIntValue(p_db, "valuesExecutionDayWeekUsed", 0, 0);
1029
1030 /* member "valuesExecutionDayMonth" */
1031 {
1032 int i;
1033 memset(p_struct->valuesExecutionDayMonth, 0, (64)*sizeof(uint8_t));
1034 for (i=0; i < 64; i++) {
1035 int v;
1036 v=GWEN_DB_GetIntValue(p_db, "valuesExecutionDayMonth", i, 0);
1037 if (v==0)
1038 break;
1039 p_struct->valuesExecutionDayMonth[i]=v;
1040 }
1041 }
1042
1043 /* member "valuesExecutionDayMonthUsed" */
1044 p_struct->valuesExecutionDayMonthUsed=GWEN_DB_GetIntValue(p_db, "valuesExecutionDayMonthUsed", 0, 0);
1045
1046 /* member "allowMonthly" */
1047 p_struct->allowMonthly=GWEN_DB_GetIntValue(p_db, "allowMonthly", 0, 0);
1048
1049 /* member "allowWeekly" */
1050 p_struct->allowWeekly=GWEN_DB_GetIntValue(p_db, "allowWeekly", 0, 0);
1051
1052 /* member "allowChangeRecipientAccount" */
1053 p_struct->allowChangeRecipientAccount=GWEN_DB_GetIntValue(p_db, "allowChangeRecipientAccount", 0, 0);
1054
1055 /* member "allowChangeRecipientName" */
1056 p_struct->allowChangeRecipientName=GWEN_DB_GetIntValue(p_db, "allowChangeRecipientName", 0, 0);
1057
1058 /* member "allowChangeValue" */
1059 p_struct->allowChangeValue=GWEN_DB_GetIntValue(p_db, "allowChangeValue", 0, 0);
1060
1061 /* member "allowChangeTextKey" */
1062 p_struct->allowChangeTextKey=GWEN_DB_GetIntValue(p_db, "allowChangeTextKey", 0, 0);
1063
1064 /* member "allowChangePurpose" */
1065 p_struct->allowChangePurpose=GWEN_DB_GetIntValue(p_db, "allowChangePurpose", 0, 0);
1066
1067 /* member "allowChangeFirstExecutionDate" */
1068 p_struct->allowChangeFirstExecutionDate=GWEN_DB_GetIntValue(p_db, "allowChangeFirstExecutionDate", 0, 0);
1069
1070 /* member "allowChangeLastExecutionDate" */
1071 p_struct->allowChangeLastExecutionDate=GWEN_DB_GetIntValue(p_db, "allowChangeLastExecutionDate", 0, 0);
1072
1073 /* member "allowChangeCycle" */
1074 p_struct->allowChangeCycle=GWEN_DB_GetIntValue(p_db, "allowChangeCycle", 0, 0);
1075
1076 /* member "allowChangePeriod" */
1077 p_struct->allowChangePeriod=GWEN_DB_GetIntValue(p_db, "allowChangePeriod", 0, 0);
1078
1079 /* member "allowChangeExecutionDay" */
1080 p_struct->allowChangeExecutionDay=GWEN_DB_GetIntValue(p_db, "allowChangeExecutionDay", 0, 0);
1081
1082 }
1083
AB_TransactionLimits_WriteDb(const AB_TRANSACTION_LIMITS * p_struct,GWEN_DB_NODE * p_db)1084 int AB_TransactionLimits_WriteDb(const AB_TRANSACTION_LIMITS *p_struct, GWEN_DB_NODE *p_db)
1085 {
1086 int p_rv;
1087
1088 assert(p_struct);
1089 /* member "command" */
1090 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "command", p_struct->command);
1091 if (p_rv<0) {
1092 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1093 return p_rv;
1094 }
1095
1096 /* member "maxLenLocalName" */
1097 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "maxLenLocalName", p_struct->maxLenLocalName);
1098 if (p_rv<0) {
1099 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1100 return p_rv;
1101 }
1102
1103 /* member "minLenLocalName" */
1104 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "minLenLocalName", p_struct->minLenLocalName);
1105 if (p_rv<0) {
1106 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1107 return p_rv;
1108 }
1109
1110 /* member "maxLenRemoteName" */
1111 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "maxLenRemoteName", p_struct->maxLenRemoteName);
1112 if (p_rv<0) {
1113 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1114 return p_rv;
1115 }
1116
1117 /* member "minLenRemoteName" */
1118 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "minLenRemoteName", p_struct->minLenRemoteName);
1119 if (p_rv<0) {
1120 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1121 return p_rv;
1122 }
1123
1124 /* member "maxLenCustomerReference" */
1125 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "maxLenCustomerReference",
1126 p_struct->maxLenCustomerReference);
1127 if (p_rv<0) {
1128 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1129 return p_rv;
1130 }
1131
1132 /* member "minLenCustomerReference" */
1133 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "minLenCustomerReference",
1134 p_struct->minLenCustomerReference);
1135 if (p_rv<0) {
1136 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1137 return p_rv;
1138 }
1139
1140 /* member "maxLenBankReference" */
1141 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "maxLenBankReference", p_struct->maxLenBankReference);
1142 if (p_rv<0) {
1143 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1144 return p_rv;
1145 }
1146
1147 /* member "minLenBankReference" */
1148 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "minLenBankReference", p_struct->minLenBankReference);
1149 if (p_rv<0) {
1150 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1151 return p_rv;
1152 }
1153
1154 /* member "maxLenPurpose" */
1155 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "maxLenPurpose", p_struct->maxLenPurpose);
1156 if (p_rv<0) {
1157 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1158 return p_rv;
1159 }
1160
1161 /* member "minLenPurpose" */
1162 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "minLenPurpose", p_struct->minLenPurpose);
1163 if (p_rv<0) {
1164 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1165 return p_rv;
1166 }
1167
1168 /* member "maxLinesPurpose" */
1169 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "maxLinesPurpose", p_struct->maxLinesPurpose);
1170 if (p_rv<0) {
1171 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1172 return p_rv;
1173 }
1174
1175 /* member "minLinesPurpose" */
1176 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "minLinesPurpose", p_struct->minLinesPurpose);
1177 if (p_rv<0) {
1178 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1179 return p_rv;
1180 }
1181
1182 /* member "needDate" */
1183 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "needDate", p_struct->needDate);
1184 if (p_rv<0) {
1185 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1186 return p_rv;
1187 }
1188
1189 /* member "minValueSetupTime" */
1190 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "minValueSetupTime", p_struct->minValueSetupTime);
1191 if (p_rv<0) {
1192 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1193 return p_rv;
1194 }
1195
1196 /* member "maxValueSetupTime" */
1197 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "maxValueSetupTime", p_struct->maxValueSetupTime);
1198 if (p_rv<0) {
1199 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1200 return p_rv;
1201 }
1202
1203 /* member "minValueSetupTimeFirst" */
1204 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "minValueSetupTimeFirst",
1205 p_struct->minValueSetupTimeFirst);
1206 if (p_rv<0) {
1207 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1208 return p_rv;
1209 }
1210
1211 /* member "maxValueSetupTimeFirst" */
1212 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "maxValueSetupTimeFirst",
1213 p_struct->maxValueSetupTimeFirst);
1214 if (p_rv<0) {
1215 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1216 return p_rv;
1217 }
1218
1219 /* member "minValueSetupTimeOnce" */
1220 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "minValueSetupTimeOnce", p_struct->minValueSetupTimeOnce);
1221 if (p_rv<0) {
1222 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1223 return p_rv;
1224 }
1225
1226 /* member "maxValueSetupTimeOnce" */
1227 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "maxValueSetupTimeOnce", p_struct->maxValueSetupTimeOnce);
1228 if (p_rv<0) {
1229 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1230 return p_rv;
1231 }
1232
1233 /* member "minValueSetupTimeRecurring" */
1234 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "minValueSetupTimeRecurring",
1235 p_struct->minValueSetupTimeRecurring);
1236 if (p_rv<0) {
1237 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1238 return p_rv;
1239 }
1240
1241 /* member "maxValueSetupTimeRecurring" */
1242 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "maxValueSetupTimeRecurring",
1243 p_struct->maxValueSetupTimeRecurring);
1244 if (p_rv<0) {
1245 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1246 return p_rv;
1247 }
1248
1249 /* member "minValueSetupTimeFinal" */
1250 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "minValueSetupTimeFinal",
1251 p_struct->minValueSetupTimeFinal);
1252 if (p_rv<0) {
1253 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1254 return p_rv;
1255 }
1256
1257 /* member "maxValueSetupTimeFinal" */
1258 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "maxValueSetupTimeFinal",
1259 p_struct->maxValueSetupTimeFinal);
1260 if (p_rv<0) {
1261 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1262 return p_rv;
1263 }
1264
1265 /* member "valuesCycleWeek" */
1266 {
1267 int i=0;
1268 int result=0;
1269 for (i=0; i < 64; i++) {
1270 result=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "valuesCycleWeek", p_struct->valuesCycleWeek[i]);
1271 }
1272 p_rv=result;
1273 }
1274 if (p_rv<0) {
1275 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1276 return p_rv;
1277 }
1278
1279 /* member "valuesCycleWeekUsed" */
1280 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "valuesCycleWeekUsed", p_struct->valuesCycleWeekUsed);
1281 if (p_rv<0) {
1282 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1283 return p_rv;
1284 }
1285
1286 /* member "valuesCycleMonth" */
1287 {
1288 int i=0;
1289 int result=0;
1290 for (i=0; i < 64; i++) {
1291 result=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "valuesCycleMonth", p_struct->valuesCycleMonth[i]);
1292 }
1293 p_rv=result;
1294 }
1295 if (p_rv<0) {
1296 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1297 return p_rv;
1298 }
1299
1300 /* member "valuesCycleMonthUsed" */
1301 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "valuesCycleMonthUsed", p_struct->valuesCycleMonthUsed);
1302 if (p_rv<0) {
1303 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1304 return p_rv;
1305 }
1306
1307 /* member "valuesExecutionDayWeek" */
1308 {
1309 int i=0;
1310 int result=0;
1311 for (i=0; i < 16; i++) {
1312 result=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "valuesExecutionDayWeek",
1313 p_struct->valuesExecutionDayWeek[i]);
1314 }
1315 p_rv=result;
1316 }
1317 if (p_rv<0) {
1318 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1319 return p_rv;
1320 }
1321
1322 /* member "valuesExecutionDayWeekUsed" */
1323 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "valuesExecutionDayWeekUsed",
1324 p_struct->valuesExecutionDayWeekUsed);
1325 if (p_rv<0) {
1326 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1327 return p_rv;
1328 }
1329
1330 /* member "valuesExecutionDayMonth" */
1331 {
1332 int i=0;
1333 int result=0;
1334 for (i=0; i < 64; i++) {
1335 result=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "valuesExecutionDayMonth",
1336 p_struct->valuesExecutionDayMonth[i]);
1337 }
1338 p_rv=result;
1339 }
1340 if (p_rv<0) {
1341 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1342 return p_rv;
1343 }
1344
1345 /* member "valuesExecutionDayMonthUsed" */
1346 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "valuesExecutionDayMonthUsed",
1347 p_struct->valuesExecutionDayMonthUsed);
1348 if (p_rv<0) {
1349 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1350 return p_rv;
1351 }
1352
1353 /* member "allowMonthly" */
1354 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "allowMonthly", p_struct->allowMonthly);
1355 if (p_rv<0) {
1356 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1357 return p_rv;
1358 }
1359
1360 /* member "allowWeekly" */
1361 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "allowWeekly", p_struct->allowWeekly);
1362 if (p_rv<0) {
1363 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1364 return p_rv;
1365 }
1366
1367 /* member "allowChangeRecipientAccount" */
1368 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "allowChangeRecipientAccount",
1369 p_struct->allowChangeRecipientAccount);
1370 if (p_rv<0) {
1371 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1372 return p_rv;
1373 }
1374
1375 /* member "allowChangeRecipientName" */
1376 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "allowChangeRecipientName",
1377 p_struct->allowChangeRecipientName);
1378 if (p_rv<0) {
1379 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1380 return p_rv;
1381 }
1382
1383 /* member "allowChangeValue" */
1384 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "allowChangeValue", p_struct->allowChangeValue);
1385 if (p_rv<0) {
1386 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1387 return p_rv;
1388 }
1389
1390 /* member "allowChangeTextKey" */
1391 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "allowChangeTextKey", p_struct->allowChangeTextKey);
1392 if (p_rv<0) {
1393 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1394 return p_rv;
1395 }
1396
1397 /* member "allowChangePurpose" */
1398 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "allowChangePurpose", p_struct->allowChangePurpose);
1399 if (p_rv<0) {
1400 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1401 return p_rv;
1402 }
1403
1404 /* member "allowChangeFirstExecutionDate" */
1405 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "allowChangeFirstExecutionDate",
1406 p_struct->allowChangeFirstExecutionDate);
1407 if (p_rv<0) {
1408 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1409 return p_rv;
1410 }
1411
1412 /* member "allowChangeLastExecutionDate" */
1413 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "allowChangeLastExecutionDate",
1414 p_struct->allowChangeLastExecutionDate);
1415 if (p_rv<0) {
1416 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1417 return p_rv;
1418 }
1419
1420 /* member "allowChangeCycle" */
1421 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "allowChangeCycle", p_struct->allowChangeCycle);
1422 if (p_rv<0) {
1423 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1424 return p_rv;
1425 }
1426
1427 /* member "allowChangePeriod" */
1428 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "allowChangePeriod", p_struct->allowChangePeriod);
1429 if (p_rv<0) {
1430 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1431 return p_rv;
1432 }
1433
1434 /* member "allowChangeExecutionDay" */
1435 p_rv=GWEN_DB_SetIntValue(p_db, GWEN_DB_FLAGS_OVERWRITE_VARS, "allowChangeExecutionDay",
1436 p_struct->allowChangeExecutionDay);
1437 if (p_rv<0) {
1438 DBG_INFO(GWEN_LOGDOMAIN, "here (%d)\n", p_rv);
1439 return p_rv;
1440 }
1441
1442 return 0;
1443 }
1444
AB_TransactionLimits_fromDb(GWEN_DB_NODE * p_db)1445 AB_TRANSACTION_LIMITS *AB_TransactionLimits_fromDb(GWEN_DB_NODE *p_db)
1446 {
1447 AB_TRANSACTION_LIMITS *p_struct;
1448 p_struct=AB_TransactionLimits_new();
1449 AB_TransactionLimits_ReadDb(p_struct, p_db);
1450 return p_struct;
1451 }
1452
AB_TransactionLimits_toDb(const AB_TRANSACTION_LIMITS * p_struct,GWEN_DB_NODE * p_db)1453 int AB_TransactionLimits_toDb(const AB_TRANSACTION_LIMITS *p_struct, GWEN_DB_NODE *p_db)
1454 {
1455 return AB_TransactionLimits_WriteDb(p_struct, p_db);
1456 }
1457
AB_TransactionLimits_ReadXml(AB_TRANSACTION_LIMITS * p_struct,GWEN_XMLNODE * p_db)1458 void AB_TransactionLimits_ReadXml(AB_TRANSACTION_LIMITS *p_struct, GWEN_XMLNODE *p_db)
1459 {
1460 assert(p_struct);
1461 /* member "command" */
1462 p_struct->command=GWEN_XMLNode_GetIntValue(p_db, "command", 0);
1463
1464 /* member "maxLenLocalName" */
1465 p_struct->maxLenLocalName=GWEN_XMLNode_GetIntValue(p_db, "maxLenLocalName", 0);
1466
1467 /* member "minLenLocalName" */
1468 p_struct->minLenLocalName=GWEN_XMLNode_GetIntValue(p_db, "minLenLocalName", 0);
1469
1470 /* member "maxLenRemoteName" */
1471 p_struct->maxLenRemoteName=GWEN_XMLNode_GetIntValue(p_db, "maxLenRemoteName", 0);
1472
1473 /* member "minLenRemoteName" */
1474 p_struct->minLenRemoteName=GWEN_XMLNode_GetIntValue(p_db, "minLenRemoteName", 0);
1475
1476 /* member "maxLenCustomerReference" */
1477 p_struct->maxLenCustomerReference=GWEN_XMLNode_GetIntValue(p_db, "maxLenCustomerReference", 0);
1478
1479 /* member "minLenCustomerReference" */
1480 p_struct->minLenCustomerReference=GWEN_XMLNode_GetIntValue(p_db, "minLenCustomerReference", 0);
1481
1482 /* member "maxLenBankReference" */
1483 p_struct->maxLenBankReference=GWEN_XMLNode_GetIntValue(p_db, "maxLenBankReference", 0);
1484
1485 /* member "minLenBankReference" */
1486 p_struct->minLenBankReference=GWEN_XMLNode_GetIntValue(p_db, "minLenBankReference", 0);
1487
1488 /* member "maxLenPurpose" */
1489 p_struct->maxLenPurpose=GWEN_XMLNode_GetIntValue(p_db, "maxLenPurpose", 0);
1490
1491 /* member "minLenPurpose" */
1492 p_struct->minLenPurpose=GWEN_XMLNode_GetIntValue(p_db, "minLenPurpose", 0);
1493
1494 /* member "maxLinesPurpose" */
1495 p_struct->maxLinesPurpose=GWEN_XMLNode_GetIntValue(p_db, "maxLinesPurpose", 0);
1496
1497 /* member "minLinesPurpose" */
1498 p_struct->minLinesPurpose=GWEN_XMLNode_GetIntValue(p_db, "minLinesPurpose", 0);
1499
1500 /* member "needDate" */
1501 p_struct->needDate=GWEN_XMLNode_GetIntValue(p_db, "needDate", 0);
1502
1503 /* member "minValueSetupTime" */
1504 p_struct->minValueSetupTime=GWEN_XMLNode_GetIntValue(p_db, "minValueSetupTime", 0);
1505
1506 /* member "maxValueSetupTime" */
1507 p_struct->maxValueSetupTime=GWEN_XMLNode_GetIntValue(p_db, "maxValueSetupTime", 0);
1508
1509 /* member "minValueSetupTimeFirst" */
1510 p_struct->minValueSetupTimeFirst=GWEN_XMLNode_GetIntValue(p_db, "minValueSetupTimeFirst", 0);
1511
1512 /* member "maxValueSetupTimeFirst" */
1513 p_struct->maxValueSetupTimeFirst=GWEN_XMLNode_GetIntValue(p_db, "maxValueSetupTimeFirst", 0);
1514
1515 /* member "minValueSetupTimeOnce" */
1516 p_struct->minValueSetupTimeOnce=GWEN_XMLNode_GetIntValue(p_db, "minValueSetupTimeOnce", 0);
1517
1518 /* member "maxValueSetupTimeOnce" */
1519 p_struct->maxValueSetupTimeOnce=GWEN_XMLNode_GetIntValue(p_db, "maxValueSetupTimeOnce", 0);
1520
1521 /* member "minValueSetupTimeRecurring" */
1522 p_struct->minValueSetupTimeRecurring=GWEN_XMLNode_GetIntValue(p_db, "minValueSetupTimeRecurring", 0);
1523
1524 /* member "maxValueSetupTimeRecurring" */
1525 p_struct->maxValueSetupTimeRecurring=GWEN_XMLNode_GetIntValue(p_db, "maxValueSetupTimeRecurring", 0);
1526
1527 /* member "minValueSetupTimeFinal" */
1528 p_struct->minValueSetupTimeFinal=GWEN_XMLNode_GetIntValue(p_db, "minValueSetupTimeFinal", 0);
1529
1530 /* member "maxValueSetupTimeFinal" */
1531 p_struct->maxValueSetupTimeFinal=GWEN_XMLNode_GetIntValue(p_db, "maxValueSetupTimeFinal", 0);
1532
1533 /* member "valuesCycleWeek" */
1534
1535
1536 /* member "valuesCycleWeekUsed" */
1537 p_struct->valuesCycleWeekUsed=GWEN_XMLNode_GetIntValue(p_db, "valuesCycleWeekUsed", 0);
1538
1539 /* member "valuesCycleMonth" */
1540
1541
1542 /* member "valuesCycleMonthUsed" */
1543 p_struct->valuesCycleMonthUsed=GWEN_XMLNode_GetIntValue(p_db, "valuesCycleMonthUsed", 0);
1544
1545 /* member "valuesExecutionDayWeek" */
1546
1547
1548 /* member "valuesExecutionDayWeekUsed" */
1549 p_struct->valuesExecutionDayWeekUsed=GWEN_XMLNode_GetIntValue(p_db, "valuesExecutionDayWeekUsed", 0);
1550
1551 /* member "valuesExecutionDayMonth" */
1552
1553
1554 /* member "valuesExecutionDayMonthUsed" */
1555 p_struct->valuesExecutionDayMonthUsed=GWEN_XMLNode_GetIntValue(p_db, "valuesExecutionDayMonthUsed", 0);
1556
1557 /* member "allowMonthly" */
1558 p_struct->allowMonthly=GWEN_XMLNode_GetIntValue(p_db, "allowMonthly", 0);
1559
1560 /* member "allowWeekly" */
1561 p_struct->allowWeekly=GWEN_XMLNode_GetIntValue(p_db, "allowWeekly", 0);
1562
1563 /* member "allowChangeRecipientAccount" */
1564 p_struct->allowChangeRecipientAccount=GWEN_XMLNode_GetIntValue(p_db, "allowChangeRecipientAccount", 0);
1565
1566 /* member "allowChangeRecipientName" */
1567 p_struct->allowChangeRecipientName=GWEN_XMLNode_GetIntValue(p_db, "allowChangeRecipientName", 0);
1568
1569 /* member "allowChangeValue" */
1570 p_struct->allowChangeValue=GWEN_XMLNode_GetIntValue(p_db, "allowChangeValue", 0);
1571
1572 /* member "allowChangeTextKey" */
1573 p_struct->allowChangeTextKey=GWEN_XMLNode_GetIntValue(p_db, "allowChangeTextKey", 0);
1574
1575 /* member "allowChangePurpose" */
1576 p_struct->allowChangePurpose=GWEN_XMLNode_GetIntValue(p_db, "allowChangePurpose", 0);
1577
1578 /* member "allowChangeFirstExecutionDate" */
1579 p_struct->allowChangeFirstExecutionDate=GWEN_XMLNode_GetIntValue(p_db, "allowChangeFirstExecutionDate", 0);
1580
1581 /* member "allowChangeLastExecutionDate" */
1582 p_struct->allowChangeLastExecutionDate=GWEN_XMLNode_GetIntValue(p_db, "allowChangeLastExecutionDate", 0);
1583
1584 /* member "allowChangeCycle" */
1585 p_struct->allowChangeCycle=GWEN_XMLNode_GetIntValue(p_db, "allowChangeCycle", 0);
1586
1587 /* member "allowChangePeriod" */
1588 p_struct->allowChangePeriod=GWEN_XMLNode_GetIntValue(p_db, "allowChangePeriod", 0);
1589
1590 /* member "allowChangeExecutionDay" */
1591 p_struct->allowChangeExecutionDay=GWEN_XMLNode_GetIntValue(p_db, "allowChangeExecutionDay", 0);
1592
1593 }
1594
AB_TransactionLimits_WriteXml(const AB_TRANSACTION_LIMITS * p_struct,GWEN_XMLNODE * p_db)1595 void AB_TransactionLimits_WriteXml(const AB_TRANSACTION_LIMITS *p_struct, GWEN_XMLNODE *p_db)
1596 {
1597 assert(p_struct);
1598 /* member "command" */
1599 GWEN_XMLNode_SetIntValue(p_db, "command", p_struct->command);
1600
1601 /* member "maxLenLocalName" */
1602 GWEN_XMLNode_SetIntValue(p_db, "maxLenLocalName", p_struct->maxLenLocalName);
1603
1604 /* member "minLenLocalName" */
1605 GWEN_XMLNode_SetIntValue(p_db, "minLenLocalName", p_struct->minLenLocalName);
1606
1607 /* member "maxLenRemoteName" */
1608 GWEN_XMLNode_SetIntValue(p_db, "maxLenRemoteName", p_struct->maxLenRemoteName);
1609
1610 /* member "minLenRemoteName" */
1611 GWEN_XMLNode_SetIntValue(p_db, "minLenRemoteName", p_struct->minLenRemoteName);
1612
1613 /* member "maxLenCustomerReference" */
1614 GWEN_XMLNode_SetIntValue(p_db, "maxLenCustomerReference", p_struct->maxLenCustomerReference);
1615
1616 /* member "minLenCustomerReference" */
1617 GWEN_XMLNode_SetIntValue(p_db, "minLenCustomerReference", p_struct->minLenCustomerReference);
1618
1619 /* member "maxLenBankReference" */
1620 GWEN_XMLNode_SetIntValue(p_db, "maxLenBankReference", p_struct->maxLenBankReference);
1621
1622 /* member "minLenBankReference" */
1623 GWEN_XMLNode_SetIntValue(p_db, "minLenBankReference", p_struct->minLenBankReference);
1624
1625 /* member "maxLenPurpose" */
1626 GWEN_XMLNode_SetIntValue(p_db, "maxLenPurpose", p_struct->maxLenPurpose);
1627
1628 /* member "minLenPurpose" */
1629 GWEN_XMLNode_SetIntValue(p_db, "minLenPurpose", p_struct->minLenPurpose);
1630
1631 /* member "maxLinesPurpose" */
1632 GWEN_XMLNode_SetIntValue(p_db, "maxLinesPurpose", p_struct->maxLinesPurpose);
1633
1634 /* member "minLinesPurpose" */
1635 GWEN_XMLNode_SetIntValue(p_db, "minLinesPurpose", p_struct->minLinesPurpose);
1636
1637 /* member "needDate" */
1638 GWEN_XMLNode_SetIntValue(p_db, "needDate", p_struct->needDate);
1639
1640 /* member "minValueSetupTime" */
1641 GWEN_XMLNode_SetIntValue(p_db, "minValueSetupTime", p_struct->minValueSetupTime);
1642
1643 /* member "maxValueSetupTime" */
1644 GWEN_XMLNode_SetIntValue(p_db, "maxValueSetupTime", p_struct->maxValueSetupTime);
1645
1646 /* member "minValueSetupTimeFirst" */
1647 GWEN_XMLNode_SetIntValue(p_db, "minValueSetupTimeFirst", p_struct->minValueSetupTimeFirst);
1648
1649 /* member "maxValueSetupTimeFirst" */
1650 GWEN_XMLNode_SetIntValue(p_db, "maxValueSetupTimeFirst", p_struct->maxValueSetupTimeFirst);
1651
1652 /* member "minValueSetupTimeOnce" */
1653 GWEN_XMLNode_SetIntValue(p_db, "minValueSetupTimeOnce", p_struct->minValueSetupTimeOnce);
1654
1655 /* member "maxValueSetupTimeOnce" */
1656 GWEN_XMLNode_SetIntValue(p_db, "maxValueSetupTimeOnce", p_struct->maxValueSetupTimeOnce);
1657
1658 /* member "minValueSetupTimeRecurring" */
1659 GWEN_XMLNode_SetIntValue(p_db, "minValueSetupTimeRecurring", p_struct->minValueSetupTimeRecurring);
1660
1661 /* member "maxValueSetupTimeRecurring" */
1662 GWEN_XMLNode_SetIntValue(p_db, "maxValueSetupTimeRecurring", p_struct->maxValueSetupTimeRecurring);
1663
1664 /* member "minValueSetupTimeFinal" */
1665 GWEN_XMLNode_SetIntValue(p_db, "minValueSetupTimeFinal", p_struct->minValueSetupTimeFinal);
1666
1667 /* member "maxValueSetupTimeFinal" */
1668 GWEN_XMLNode_SetIntValue(p_db, "maxValueSetupTimeFinal", p_struct->maxValueSetupTimeFinal);
1669
1670 /* member "valuesCycleWeek" */
1671
1672
1673 /* member "valuesCycleWeekUsed" */
1674 GWEN_XMLNode_SetIntValue(p_db, "valuesCycleWeekUsed", p_struct->valuesCycleWeekUsed);
1675
1676 /* member "valuesCycleMonth" */
1677
1678
1679 /* member "valuesCycleMonthUsed" */
1680 GWEN_XMLNode_SetIntValue(p_db, "valuesCycleMonthUsed", p_struct->valuesCycleMonthUsed);
1681
1682 /* member "valuesExecutionDayWeek" */
1683
1684
1685 /* member "valuesExecutionDayWeekUsed" */
1686 GWEN_XMLNode_SetIntValue(p_db, "valuesExecutionDayWeekUsed", p_struct->valuesExecutionDayWeekUsed);
1687
1688 /* member "valuesExecutionDayMonth" */
1689
1690
1691 /* member "valuesExecutionDayMonthUsed" */
1692 GWEN_XMLNode_SetIntValue(p_db, "valuesExecutionDayMonthUsed", p_struct->valuesExecutionDayMonthUsed);
1693
1694 /* member "allowMonthly" */
1695 GWEN_XMLNode_SetIntValue(p_db, "allowMonthly", p_struct->allowMonthly);
1696
1697 /* member "allowWeekly" */
1698 GWEN_XMLNode_SetIntValue(p_db, "allowWeekly", p_struct->allowWeekly);
1699
1700 /* member "allowChangeRecipientAccount" */
1701 GWEN_XMLNode_SetIntValue(p_db, "allowChangeRecipientAccount", p_struct->allowChangeRecipientAccount);
1702
1703 /* member "allowChangeRecipientName" */
1704 GWEN_XMLNode_SetIntValue(p_db, "allowChangeRecipientName", p_struct->allowChangeRecipientName);
1705
1706 /* member "allowChangeValue" */
1707 GWEN_XMLNode_SetIntValue(p_db, "allowChangeValue", p_struct->allowChangeValue);
1708
1709 /* member "allowChangeTextKey" */
1710 GWEN_XMLNode_SetIntValue(p_db, "allowChangeTextKey", p_struct->allowChangeTextKey);
1711
1712 /* member "allowChangePurpose" */
1713 GWEN_XMLNode_SetIntValue(p_db, "allowChangePurpose", p_struct->allowChangePurpose);
1714
1715 /* member "allowChangeFirstExecutionDate" */
1716 GWEN_XMLNode_SetIntValue(p_db, "allowChangeFirstExecutionDate", p_struct->allowChangeFirstExecutionDate);
1717
1718 /* member "allowChangeLastExecutionDate" */
1719 GWEN_XMLNode_SetIntValue(p_db, "allowChangeLastExecutionDate", p_struct->allowChangeLastExecutionDate);
1720
1721 /* member "allowChangeCycle" */
1722 GWEN_XMLNode_SetIntValue(p_db, "allowChangeCycle", p_struct->allowChangeCycle);
1723
1724 /* member "allowChangePeriod" */
1725 GWEN_XMLNode_SetIntValue(p_db, "allowChangePeriod", p_struct->allowChangePeriod);
1726
1727 /* member "allowChangeExecutionDay" */
1728 GWEN_XMLNode_SetIntValue(p_db, "allowChangeExecutionDay", p_struct->allowChangeExecutionDay);
1729
1730 }
1731
AB_TransactionLimits_toXml(const AB_TRANSACTION_LIMITS * p_struct,GWEN_XMLNODE * p_db)1732 void AB_TransactionLimits_toXml(const AB_TRANSACTION_LIMITS *p_struct, GWEN_XMLNODE *p_db)
1733 {
1734 AB_TransactionLimits_WriteXml(p_struct, p_db);
1735 }
1736
AB_TransactionLimits_fromXml(GWEN_XMLNODE * p_db)1737 AB_TRANSACTION_LIMITS *AB_TransactionLimits_fromXml(GWEN_XMLNODE *p_db)
1738 {
1739 AB_TRANSACTION_LIMITS *p_struct;
1740 p_struct=AB_TransactionLimits_new();
1741 AB_TransactionLimits_ReadXml(p_struct, p_db);
1742 return p_struct;
1743 }
1744
AB_TransactionLimits_List_GetByCommand(const AB_TRANSACTION_LIMITS_LIST * p_list,int p_cmp)1745 AB_TRANSACTION_LIMITS *AB_TransactionLimits_List_GetByCommand(const AB_TRANSACTION_LIMITS_LIST *p_list, int p_cmp)
1746 {
1747 AB_TRANSACTION_LIMITS *p_struct;
1748
1749 assert(p_list);
1750 p_struct = AB_TransactionLimits_List_First(p_list);
1751 while (p_struct) {
1752 int p_rv;
1753
1754 if (p_struct->command==p_cmp)
1755 p_rv=0;
1756 else if (p_cmp<p_struct->command)
1757 p_rv=-1;
1758 else
1759 p_rv=1;
1760 if (p_rv == 0)
1761 return p_struct;
1762 p_struct = AB_TransactionLimits_List_Next(p_struct);
1763 }
1764 return NULL;
1765 }
1766
AB_TransactionLimits_GetValuesCycleWeekAt(const AB_TRANSACTION_LIMITS * p_struct,int idx)1767 uint8_t AB_TransactionLimits_GetValuesCycleWeekAt(const AB_TRANSACTION_LIMITS *p_struct, int idx)
1768 {
1769 if (p_struct && (idx < 64))
1770 return p_struct->valuesCycleWeek[idx];
1771 return 0;
1772 }
AB_TransactionLimits_SetValuesCycleWeekAt(AB_TRANSACTION_LIMITS * p_struct,int idx,uint8_t v)1773 int AB_TransactionLimits_SetValuesCycleWeekAt(AB_TRANSACTION_LIMITS *p_struct, int idx, uint8_t v)
1774 {
1775 if (p_struct && (idx < 64)) {
1776 p_struct->valuesCycleWeek[idx]=v;
1777 return 0;
1778 }
1779 return GWEN_ERROR_INVALID;
1780 }
AB_TransactionLimits_PresetValuesCycleWeek(AB_TRANSACTION_LIMITS * p_struct,uint8_t v)1781 void AB_TransactionLimits_PresetValuesCycleWeek(AB_TRANSACTION_LIMITS *p_struct, uint8_t v)
1782 {
1783 memset(p_struct->valuesCycleWeek, v, 64);
1784 }
AB_TransactionLimits_GetValuesCycleWeekArraySize(void)1785 int AB_TransactionLimits_GetValuesCycleWeekArraySize(void)
1786 {
1787 return 64;
1788 }
AB_TransactionLimits_GetValuesCycleMonthAt(const AB_TRANSACTION_LIMITS * p_struct,int idx)1789 uint8_t AB_TransactionLimits_GetValuesCycleMonthAt(const AB_TRANSACTION_LIMITS *p_struct, int idx)
1790 {
1791 if (p_struct && (idx < 64))
1792 return p_struct->valuesCycleMonth[idx];
1793 return 0;
1794 }
AB_TransactionLimits_SetValuesCycleMonthAt(AB_TRANSACTION_LIMITS * p_struct,int idx,uint8_t v)1795 int AB_TransactionLimits_SetValuesCycleMonthAt(AB_TRANSACTION_LIMITS *p_struct, int idx, uint8_t v)
1796 {
1797 if (p_struct && (idx < 64)) {
1798 p_struct->valuesCycleMonth[idx]=v;
1799 return 0;
1800 }
1801 return GWEN_ERROR_INVALID;
1802 }
AB_TransactionLimits_PresetValuesCycleMonth(AB_TRANSACTION_LIMITS * p_struct,uint8_t v)1803 void AB_TransactionLimits_PresetValuesCycleMonth(AB_TRANSACTION_LIMITS *p_struct, uint8_t v)
1804 {
1805 memset(p_struct->valuesCycleMonth, v, 64);
1806 }
AB_TransactionLimits_GetValuesCycleMonthArraySize(void)1807 int AB_TransactionLimits_GetValuesCycleMonthArraySize(void)
1808 {
1809 return 64;
1810 }
AB_TransactionLimits_GetValuesExecutionDayWeekAt(const AB_TRANSACTION_LIMITS * p_struct,int idx)1811 uint8_t AB_TransactionLimits_GetValuesExecutionDayWeekAt(const AB_TRANSACTION_LIMITS *p_struct, int idx)
1812 {
1813 if (p_struct && (idx < 16))
1814 return p_struct->valuesExecutionDayWeek[idx];
1815 return 0;
1816 }
AB_TransactionLimits_SetValuesExecutionDayWeekAt(AB_TRANSACTION_LIMITS * p_struct,int idx,uint8_t v)1817 int AB_TransactionLimits_SetValuesExecutionDayWeekAt(AB_TRANSACTION_LIMITS *p_struct, int idx, uint8_t v)
1818 {
1819 if (p_struct && (idx < 16)) {
1820 p_struct->valuesExecutionDayWeek[idx]=v;
1821 return 0;
1822 }
1823 return GWEN_ERROR_INVALID;
1824 }
AB_TransactionLimits_PresetValuesExecutionDayWeek(AB_TRANSACTION_LIMITS * p_struct,uint8_t v)1825 void AB_TransactionLimits_PresetValuesExecutionDayWeek(AB_TRANSACTION_LIMITS *p_struct, uint8_t v)
1826 {
1827 memset(p_struct->valuesExecutionDayWeek, v, 16);
1828 }
AB_TransactionLimits_GetValuesExecutionDayWeekArraySize(void)1829 int AB_TransactionLimits_GetValuesExecutionDayWeekArraySize(void)
1830 {
1831 return 16;
1832 }
AB_TransactionLimits_GetValuesExecutionDayMonthAt(const AB_TRANSACTION_LIMITS * p_struct,int idx)1833 uint8_t AB_TransactionLimits_GetValuesExecutionDayMonthAt(const AB_TRANSACTION_LIMITS *p_struct, int idx)
1834 {
1835 if (p_struct && (idx < 64))
1836 return p_struct->valuesExecutionDayMonth[idx];
1837 return 0;
1838 }
AB_TransactionLimits_SetValuesExecutionDayMonthAt(AB_TRANSACTION_LIMITS * p_struct,int idx,uint8_t v)1839 int AB_TransactionLimits_SetValuesExecutionDayMonthAt(AB_TRANSACTION_LIMITS *p_struct, int idx, uint8_t v)
1840 {
1841 if (p_struct && (idx < 64)) {
1842 p_struct->valuesExecutionDayMonth[idx]=v;
1843 return 0;
1844 }
1845 return GWEN_ERROR_INVALID;
1846 }
AB_TransactionLimits_PresetValuesExecutionDayMonth(AB_TRANSACTION_LIMITS * p_struct,uint8_t v)1847 void AB_TransactionLimits_PresetValuesExecutionDayMonth(AB_TRANSACTION_LIMITS *p_struct, uint8_t v)
1848 {
1849 memset(p_struct->valuesExecutionDayMonth, v, 64);
1850 }
AB_TransactionLimits_GetValuesExecutionDayMonthArraySize(void)1851 int AB_TransactionLimits_GetValuesExecutionDayMonthArraySize(void)
1852 {
1853 return 64;
1854 }
AB_TransactionLimits_ValuesCycleWeekAdd(AB_TRANSACTION_LIMITS * t,uint8_t v)1855 int AB_TransactionLimits_ValuesCycleWeekAdd(AB_TRANSACTION_LIMITS *t, uint8_t v)
1856 {
1857 assert(t);
1858 if (t->valuesCycleWeekUsed < AB_TransactionLimits_GetValuesCycleWeekArraySize()) {
1859 t->valuesCycleWeek[t->valuesCycleWeekUsed++]=v;
1860 return 0;
1861 }
1862 else {
1863 DBG_ERROR(AQBANKING_LOGDOMAIN, "Too many entries (%d)", t->valuesCycleWeekUsed);
1864 return GWEN_ERROR_BUFFER_OVERFLOW;
1865 }
1866 }
AB_TransactionLimits_ValuesCycleWeekHas(const AB_TRANSACTION_LIMITS * t,uint8_t v)1867 int AB_TransactionLimits_ValuesCycleWeekHas(const AB_TRANSACTION_LIMITS *t, uint8_t v)
1868 {
1869 int j;
1870 assert(t);
1871 for (j=0; j<t->valuesCycleWeekUsed; j++) {
1872 if (t->valuesCycleWeek[j]==v)
1873 return 1;
1874 }
1875 return 0;
1876 }
AB_TransactionLimits_ValuesCycleMonthAdd(AB_TRANSACTION_LIMITS * t,uint8_t v)1877 int AB_TransactionLimits_ValuesCycleMonthAdd(AB_TRANSACTION_LIMITS *t, uint8_t v)
1878 {
1879 assert(t);
1880 if (t->valuesCycleMonthUsed < AB_TransactionLimits_GetValuesCycleMonthArraySize()) {
1881 t->valuesCycleMonth[t->valuesCycleMonthUsed++]=v;
1882 return 0;
1883 }
1884 else {
1885 DBG_ERROR(AQBANKING_LOGDOMAIN, "Too many entries (%d)", t->valuesCycleMonthUsed);
1886 return GWEN_ERROR_BUFFER_OVERFLOW;
1887 }
1888 }
AB_TransactionLimits_ValuesCycleMonthHas(const AB_TRANSACTION_LIMITS * t,uint8_t v)1889 int AB_TransactionLimits_ValuesCycleMonthHas(const AB_TRANSACTION_LIMITS *t, uint8_t v)
1890 {
1891 int j;
1892 assert(t);
1893 for (j=0; j<t->valuesCycleMonthUsed; j++) {
1894 if (t->valuesCycleMonth[j]==v)
1895 return 1;
1896 }
1897 return 0;
1898 }
AB_TransactionLimits_ValuesExecutionDayWeekAdd(AB_TRANSACTION_LIMITS * t,uint8_t v)1899 int AB_TransactionLimits_ValuesExecutionDayWeekAdd(AB_TRANSACTION_LIMITS *t, uint8_t v)
1900 {
1901 assert(t);
1902 if (t->valuesExecutionDayWeekUsed < AB_TransactionLimits_GetValuesExecutionDayWeekArraySize()) {
1903 t->valuesExecutionDayWeek[t->valuesExecutionDayWeekUsed++]=v;
1904 return 0;
1905 }
1906 else {
1907 DBG_ERROR(AQBANKING_LOGDOMAIN, "Too many entries (%d)", t->valuesExecutionDayWeekUsed);
1908 return GWEN_ERROR_BUFFER_OVERFLOW;
1909 }
1910 }
AB_TransactionLimits_ValuesExecutionDayWeekHas(const AB_TRANSACTION_LIMITS * t,uint8_t v)1911 int AB_TransactionLimits_ValuesExecutionDayWeekHas(const AB_TRANSACTION_LIMITS *t, uint8_t v)
1912 {
1913 int j;
1914 assert(t);
1915 for (j=0; j<t->valuesExecutionDayWeekUsed; j++) {
1916 if (t->valuesExecutionDayWeek[j]==v)
1917 return 1;
1918 }
1919 return 0;
1920 }
AB_TransactionLimits_ValuesExecutionDayMonthAdd(AB_TRANSACTION_LIMITS * t,uint8_t v)1921 int AB_TransactionLimits_ValuesExecutionDayMonthAdd(AB_TRANSACTION_LIMITS *t, uint8_t v)
1922 {
1923 assert(t);
1924 if (t->valuesExecutionDayMonthUsed < AB_TransactionLimits_GetValuesExecutionDayMonthArraySize()) {
1925 t->valuesExecutionDayMonth[t->valuesExecutionDayMonthUsed++]=v;
1926 return 0;
1927 }
1928 else {
1929 DBG_ERROR(AQBANKING_LOGDOMAIN, "Too many entries (%d)", t->valuesExecutionDayMonthUsed);
1930 return GWEN_ERROR_BUFFER_OVERFLOW;
1931 }
1932 }
AB_TransactionLimits_ValuesExecutionDayMonthHas(const AB_TRANSACTION_LIMITS * t,uint8_t v)1933 int AB_TransactionLimits_ValuesExecutionDayMonthHas(const AB_TRANSACTION_LIMITS *t, uint8_t v)
1934 {
1935 int j;
1936 assert(t);
1937 for (j=0; j<t->valuesExecutionDayMonthUsed; j++) {
1938 if (t->valuesExecutionDayMonth[j]==v)
1939 return 1;
1940 }
1941 return 0;
1942 }
1943
1944 /* code headers */
1945
1946