diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-13 20:16:43 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-13 20:16:43 +0200 |
commit | cd4a6bab832c154010169af0848acdf7e83b147b (patch) | |
tree | 59b72009a71255e68568660c132848f573c627f0 /src/include/taler_mintdb_plugin.h | |
parent | 62e7d307503db759fab9e13e01d23bea9fc0337c (diff) | |
parent | d5960b50af4aa7f1faaa1d013cb1a142d258cc36 (diff) |
Merge branch 'master' of git.taler.net:/var/git/mint
Diffstat (limited to 'src/include/taler_mintdb_plugin.h')
-rw-r--r-- | src/include/taler_mintdb_plugin.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/include/taler_mintdb_plugin.h b/src/include/taler_mintdb_plugin.h index 540cb88c..ffa1b13d 100644 --- a/src/include/taler_mintdb_plugin.h +++ b/src/include/taler_mintdb_plugin.h @@ -682,28 +682,28 @@ struct TALER_MINTDB_Plugin struct TALER_MINTDB_Session *db, struct TALER_MINTDB_Reserve *reserve); - /* FIXME: add functions to add bank transfers to our DB - (and to test if we already did add one) (#3633/#3717) */ - /** - * Insert a incoming transaction into reserves. New reserves are also created - * through this function. + * Insert a incoming transaction into reserves. New reserves are + * also created through this function. * * @param cls the @e cls of this struct with the plugin-specific state * @param db the database connection handle - * @param reserve the reserve structure. The public key of the reserve should - * be set here. Upon successful execution of this function, the - * balance and expiration of the reserve will be updated. + * @param reserve_pub public key of the reserve * @param balance the amount that has to be added to the reserve + * @param details bank transaction details justifying the increment, + * must be unique for each incoming transaction * @param expiry the new expiration time for the reserve - * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failures + * @return #GNUNET_OK upon success; #GNUNET_NO if the given + * @a details are already known for this @a reserve_pub, + * #GNUNET_SYSERR upon failures (DB error, incompatible currency) */ int (*reserves_in_insert) (void *cls, struct TALER_MINTDB_Session *db, - struct TALER_MINTDB_Reserve *reserve, + const struct TALER_ReservePublicKeyP *reserve_pub, const struct TALER_Amount *balance, + const char *details, const struct GNUNET_TIME_Absolute expiry); |