diff options
Diffstat (limited to 'src/include/taler_wire_plugin.h')
-rw-r--r-- | src/include/taler_wire_plugin.h | 50 |
1 files changed, 2 insertions, 48 deletions
diff --git a/src/include/taler_wire_plugin.h b/src/include/taler_wire_plugin.h index eb43f2277..ffc7adf59 100644 --- a/src/include/taler_wire_plugin.h +++ b/src/include/taler_wire_plugin.h | |||
@@ -96,7 +96,8 @@ struct TALER_WIRE_TransferDetails | |||
96 | * | 96 | * |
97 | * @param cls closure | 97 | * @param cls closure |
98 | * @param ec taler error code | 98 | * @param ec taler error code |
99 | * @param dir direction of the transfer | 99 | * @param dir direction of the transfer, #TALER_BANK_DIRECTION_NONE when |
100 | * the iteration is complete | ||
100 | * @param row_off identification of the position at which we are querying | 101 | * @param row_off identification of the position at which we are querying |
101 | * @param row_off_size number of bytes in @a row_off | 102 | * @param row_off_size number of bytes in @a row_off |
102 | * @param details details about the wire transfer | 103 | * @param details details about the wire transfer |
@@ -368,53 +369,6 @@ struct TALER_WIRE_Plugin | |||
368 | (*reject_transfer_cancel)(void *cls, | 369 | (*reject_transfer_cancel)(void *cls, |
369 | struct TALER_WIRE_RejectHandle *rh); | 370 | struct TALER_WIRE_RejectHandle *rh); |
370 | 371 | ||
371 | |||
372 | /** | ||
373 | * Ask the plugin which data is needed to register the merchant | ||
374 | * into the banking institution. | ||
375 | * | ||
376 | * @param enc[out] where to store the JSON formatted list of | ||
377 | * needed values. The merchant will use this list to | ||
378 | * show a HTML form to the business in order to collect that data. | ||
379 | * This value will have to be freed by the caller. | ||
380 | * @param private_person GNUNET_OK if the merchant to be registered | ||
381 | * has a legal status of "person", for example they are freelance | ||
382 | * journalists. | ||
383 | * @param business GNUNET_OK if the merchant has the legal status | ||
384 | * of "business", so to say a "ordinary" shop. Cannot be | ||
385 | * both private and business though. | ||
386 | * @return GNUNET_OK upon successful `enc' allocation and definition, | ||
387 | * GNUNET_NO if _no_ data is needed at all, GNUNET_SYSERR | ||
388 | * for all the other cases. | ||
389 | */ | ||
390 | int | ||
391 | (*merchant_data)(char **out, | ||
392 | unsigned int private_person, | ||
393 | unsigned int business); | ||
394 | |||
395 | /** | ||
396 | * Send data to the banking institution in order to get the | ||
397 | * merchant registered. | ||
398 | * | ||
399 | * @param cls closure | ||
400 | * @param body subset of information to be sent to the bank. | ||
401 | * The plugin implementation is free to modify this value. | ||
402 | * @param mrcb Callback to process the outcome. | ||
403 | */ | ||
404 | struct TALER_WIRE_MerchantRegisterHandle * | ||
405 | (*merchant_register)(void *cls, | ||
406 | const char *body, | ||
407 | TALER_WIRE_MerchantRegisterCallback mrcb); | ||
408 | |||
409 | /** | ||
410 | * Cancel pending operation of merchant registering. | ||
411 | * | ||
412 | * @param cls closure | ||
413 | * @param mrh handle to the pending operation to be cancelled. | ||
414 | */ | ||
415 | void | ||
416 | (*merchant_register_cancel)(void *cls, | ||
417 | struct TALER_WIRE_MerchantRegisterHandle *mrh); | ||
418 | }; | 372 | }; |
419 | 373 | ||
420 | 374 | ||