diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-04-05 17:15:58 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-04-05 17:15:58 +0200 |
commit | 58f1ae25c69e0e378af2c45b929c8bbf7d5c1b2a (patch) | |
tree | ef9625d7929245f48d0142a658a702ca758399bd /src/backend/taler-merchant-httpd_private-patch-products-ID.c | |
parent | 69131a3253264dd8e7b595f4dd985c5ad8a8e2de (diff) | |
download | merchant-58f1ae25c69e0e378af2c45b929c8bbf7d5c1b2a.tar.gz merchant-58f1ae25c69e0e378af2c45b929c8bbf7d5c1b2a.tar.bz2 merchant-58f1ae25c69e0e378af2c45b929c8bbf7d5c1b2a.zip |
adapt to latest GNUnet API: GNUNET_JSON_spec_mark_optional() changed
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-patch-products-ID.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-patch-products-ID.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/backend/taler-merchant-httpd_private-patch-products-ID.c b/src/backend/taler-merchant-httpd_private-patch-products-ID.c index 06e9e7be..c4ba755b 100644 --- a/src/backend/taler-merchant-httpd_private-patch-products-ID.c +++ b/src/backend/taler-merchant-httpd_private-patch-products-ID.c @@ -121,7 +121,8 @@ TMH_private_patch_products_ID (const struct TMH_RequestHandler *rh, (const char **) &pd.description), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_json ("description_i18n", - &pd.description_i18n)), + &pd.description_i18n), + NULL), GNUNET_JSON_spec_string ("unit", (const char **) &pd.unit), TALER_JSON_spec_amount ("price", @@ -129,24 +130,30 @@ TMH_private_patch_products_ID (const struct TMH_RequestHandler *rh, &pd.price), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_string ("image", - (const char **) &pd.image)), + (const char **) &pd.image), + NULL), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_json ("taxes", - &pd.taxes)), + &pd.taxes), + NULL), GNUNET_JSON_spec_int64 ("total_stock", &total_stock), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_uint64 ("total_lost", - &pd.total_lost)), + &pd.total_lost), + NULL), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_json ("address", - &pd.address)), + &pd.address), + NULL), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_timestamp ("next_restock", - &pd.next_restock)), + &pd.next_restock), + NULL), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_uint32 ("minimum_age", - &pd.minimum_age)), + &pd.minimum_age), + NULL), GNUNET_JSON_spec_end () }; |