iban.h (1457B)
1 /* 2 This file is part of Anastasis 3 Copyright (C) 2021 Anastasis SARL 4 5 Anastasis is free software; you can redistribute it and/or modify it under the 6 terms of the GNU Affero General Public License as published by the Free Software 7 Foundation; either version 3, or (at your option) any later version. 8 9 Anastasis is distributed in the hope that it will be useful, but WITHOUT ANY 10 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. 12 13 You should have received a copy of the GNU Affero General Public License along with 14 Anastasis; see the file COPYING.GPL. If not, see <http://www.gnu.org/licenses/> 15 */ 16 /** 17 * @file iban.h 18 * @brief data structures for wire transfer notification 19 * @author Christian Grothoff 20 */ 21 #include "platform.h" 22 #include <taler/taler_dbevents.h> 23 24 #ifndef IBAN_H 25 #define IBAN_H 26 27 GNUNET_NETWORK_STRUCT_BEGIN 28 29 /** 30 * Structure describing an IBAN event in the database. 31 */ 32 struct IbanEventP 33 { 34 /** 35 * Header of type #TALER_DBEVENT_ANASTASIS_AUTH_IBAN_TRANSFER. 36 */ 37 struct GNUNET_DB_EventHeaderP header; 38 39 /** 40 * Zero. 41 */ 42 uint32_t reserved GNUNET_PACKED; 43 44 /** 45 * Code to be included in the wire transfer subject. 46 */ 47 uint64_t code GNUNET_PACKED; 48 49 /** 50 * Hash of the debit account of the transaction. 51 */ 52 struct GNUNET_HashCode debit_iban_hash; 53 }; 54 55 56 GNUNET_NETWORK_STRUCT_END 57 58 #endif