diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-06-04 11:47:48 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-06-04 11:47:48 +0200 |
commit | c1853b3942273d05dbdf6d7501a89ce5f7f8beba (patch) | |
tree | d3c8edb29012f2a166776611ee838255f8ef9a64 /src/include | |
parent | f62a35236347c5644b404628e1d368bb49620c2a (diff) | |
download | merchant-c1853b3942273d05dbdf6d7501a89ce5f7f8beba.tar.gz merchant-c1853b3942273d05dbdf6d7501a89ce5f7f8beba.tar.bz2 merchant-c1853b3942273d05dbdf6d7501a89ce5f7f8beba.zip |
another FIXME done
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_merchant_service.h | 43 |
1 files changed, 36 insertions, 7 deletions
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h index 40499929..a91e991e 100644 --- a/src/include/taler_merchant_service.h +++ b/src/include/taler_merchant_service.h @@ -4941,21 +4941,50 @@ struct TALER_MERCHANT_TemplateEntry }; -// FIXME: change signature! +/** + * Response to a GET /templates operation. + */ +struct TALER_MERCHANT_TemplatesGetResponse +{ + /** + * HTTP response details + */ + struct TALER_MERCHANT_HttpResponse hr; + + /** + * Details depending on status. + */ + union + { + /** + * Details if status is #MHD_HTTP_OK. + */ + struct + { + /** + * length of the @e templates array + */ + unsigned int templates_length; + + /** + * array of templates the requested instance offers + */ + const struct TALER_MERCHANT_TemplateEntry *templates; + } ok; + } details; +}; + + /** * Function called with the result of the GET /templates operation. * * @param cls closure - * @param hr HTTP response details - * @param templates_length length of the @a templates array - * @param templates array of templates the requested instance offers + * @param tgr response details */ typedef void (*TALER_MERCHANT_TemplatesGetCallback)( void *cls, - const struct TALER_MERCHANT_HttpResponse *hr, - unsigned int templates_length, - const struct TALER_MERCHANT_TemplateEntry templates[]); + const struct TALER_MERCHANT_TemplatesGetResponse *tgr); /** |