insert_aml_officer.h (2503B)
1 /* 2 This file is part of TALER 3 Copyright (C) 2022 Taler Systems SA 4 5 TALER is free software; you can redistribute it and/or modify it under the 6 terms of the GNU General Public License as published by the Free Software 7 Foundation; either version 3, or (at your option) any later version. 8 9 TALER 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 General Public License for more details. 12 13 You should have received a copy of the GNU General Public License along with 14 TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 */ 16 /** 17 * @file src/include/exchange-database/insert_aml_officer.h 18 * @brief implementation of the insert_aml_officer function for Postgres 19 * @author Christian Grothoff 20 */ 21 #ifndef EXCHANGE_DATABASE_INSERT_AML_OFFICER_H 22 #define EXCHANGE_DATABASE_INSERT_AML_OFFICER_H 23 24 #include "taler/taler_util.h" 25 #include "exchangedb_lib.h" 26 27 28 /** 29 * Insert AML staff record. If the time given in 30 * @a last_change is before the previous change in the 31 * database, only @e previous_change is returned and 32 * no actual change is committed to the database. 33 * 34 * @param pg the database context 35 * @param decider_pub public key of the staff member 36 * @param master_sig offline signature affirming the AML officer 37 * @param decider_name full name of the staff member 38 * @param is_active true to enable, false to set as inactive 39 * @param read_only true to set read-only access 40 * @param last_change when was the change made effective 41 * @param[out] previous_change set to the time of the previous change 42 * @return database transaction status 43 */ 44 enum GNUNET_DB_QueryStatus 45 TALER_EXCHANGEDB_insert_aml_officer (struct TALER_EXCHANGEDB_PostgresContext *pg 46 , 47 const struct TALER_AmlOfficerPublicKeyP * 48 decider_pub, 49 const struct TALER_MasterSignatureP * 50 master_sig, 51 const char *decider_name, 52 bool is_active, 53 bool read_only, 54 struct GNUNET_TIME_Timestamp last_change, 55 struct GNUNET_TIME_Timestamp * 56 previous_change); 57 58 #endif