diff options
| author | Christian Grothoff <grothoff@gnunet.org> | 2023-01-27 10:12:08 +0100 |
|---|---|---|
| committer | Christian Grothoff <grothoff@gnunet.org> | 2023-01-27 10:12:08 +0100 |
| commit | 7e8e2f43178139b35f726dd0584ef629e1853af8 (patch) | |
| tree | 080cc46d4bc4a62493c42d3132df7d539b15c4bb /src/exchangedb/pg_insert_aml_officer.h | |
| parent | f199b45e52e0cc66b75c4fc7243a11c06cf6e058 (diff) | |
| parent | 10cf3b3b65c89b3304a4d4f40c4b1a7eb5e47d14 (diff) | |
Merge branch 'master' of git+ssh://git.taler.net/exchange
Diffstat (limited to 'src/exchangedb/pg_insert_aml_officer.h')
| -rw-r--r-- | src/exchangedb/pg_insert_aml_officer.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/exchangedb/pg_insert_aml_officer.h b/src/exchangedb/pg_insert_aml_officer.h index be034d9f..3c6f5d82 100644 --- a/src/exchangedb/pg_insert_aml_officer.h +++ b/src/exchangedb/pg_insert_aml_officer.h @@ -27,7 +27,10 @@ /** - * Insert AML staff record. + * Insert AML staff record. If the time given in + * @a last_change is before the previous change in the + * database, only @e previous_change is returned and + * no actual change is committed to the database. * * @param cls closure * @param decider_pub public key of the staff member @@ -36,6 +39,7 @@ * @param is_active true to enable, false to set as inactive * @param read_only true to set read-only access * @param last_change when was the change made effective + * @param[out] previous_change set to the time of the previous change * @return database transaction status */ enum GNUNET_DB_QueryStatus @@ -46,6 +50,7 @@ TEH_PG_insert_aml_officer ( const char *decider_name, bool is_active, bool read_only, - struct GNUNET_TIME_Absolute last_change); + struct GNUNET_TIME_Timestamp last_change, + struct GNUNET_TIME_Timestamp *previous_change); #endif |
