summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-patch-products-ID.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-04-05 17:15:58 +0200
committerChristian Grothoff <christian@grothoff.org>2022-04-05 17:15:58 +0200
commit58f1ae25c69e0e378af2c45b929c8bbf7d5c1b2a (patch)
treeef9625d7929245f48d0142a658a702ca758399bd /src/backend/taler-merchant-httpd_private-patch-products-ID.c
parent69131a3253264dd8e7b595f4dd985c5ad8a8e2de (diff)
downloadmerchant-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.c21
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 ()
};