diff options
| author | Christian Grothoff <christian@grothoff.org> | 2018-10-28 11:38:45 +0100 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2018-10-28 11:38:45 +0100 | 
| commit | be9ff317dd47d12a9a9c31a0c867b51fa27ebb1b (patch) | |
| tree | 6b1d2a820aba86f8765b8e1a7f97b660f650868d /src/include | |
| parent | bd40aad7dc22c9f5d723f82384c5d57204205b7a (diff) | |
add operation to count number of known coins per denomination to exchangedb
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/taler_exchangedb_plugin.h | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index ee58dd43..c8417a3a 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1398,6 +1398,20 @@ struct TALER_EXCHANGEDB_Plugin    /** +   * Count the number of known coins by denomination. +   * +   * @param cls database connection plugin state +   * @param session database session +   * @param denom_pub_hash denomination to count by +   * @return number of coins if non-negative, otherwise an `enum GNUNET_DB_QueryStatus` +   */ +  long long +  (*count_known_coins) (void *cls, +                        struct TALER_EXCHANGEDB_Session *session, +                        const struct GNUNET_HashCode *denom_pub_hash); + + +  /**     * Make sure the given @a coin is known to the database.     *     * @param cls database connection plugin state | 
