diff options
author | Christian Blättler <blatc2@bfh.ch> | 2023-11-27 07:24:10 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-12-23 00:08:57 +0800 |
commit | 0699871850011f41dedda515cc3438ec54791f89 (patch) | |
tree | 9f5439bcf3297c6db0d18bf87cf0a1e209376269 /src/include/taler_merchantdb_plugin.h | |
parent | 094327bc906cdeced19a52c86dc0725aad773997 (diff) |
list, update, delete token families
Diffstat (limited to 'src/include/taler_merchantdb_plugin.h')
-rw-r--r-- | src/include/taler_merchantdb_plugin.h | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h index c838a175..8df171fe 100644 --- a/src/include/taler_merchantdb_plugin.h +++ b/src/include/taler_merchantdb_plugin.h @@ -255,22 +255,6 @@ typedef void (*TALER_MERCHANTDB_ProductsCallback)(void *cls, const char *product_id); -/** - * Typically called by `lookup_token_families`. - * - * @param cls a `json_t *` JSON array to build - * @param slug slug of the token family - * @param name name of the token family - * @param start_time start time of the token family's validity period - * @param expiration end time of the token family's validity period - */ -typedef void -(*TALER_MERCHANTDB_TokenFamiliesCallback)(void *cls, - const char *slug, - const char *name, - struct GNUNET_TIME_Timestamp start_time, - struct GNUNET_TIME_Timestamp expiration); - /** * Details about a product. @@ -1106,6 +1090,25 @@ enum TALER_MERCHANTDB_TokenFamilyKind }; + +/** + * Typically called by `lookup_token_families`. + * + * @param cls a `json_t *` JSON array to build + * @param slug slug of the token family + * @param name name of the token family + * @param start_time start time of the token family's validity period + * @param expiration end time of the token family's validity period + */ +typedef void +(*TALER_MERCHANTDB_TokenFamiliesCallback)(void *cls, + const char *slug, + const char *name, + struct GNUNET_TIME_Timestamp start_time, + struct GNUNET_TIME_Timestamp expiration, + const char *kind); + + /** * Details about a token family. */ |