diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-08-18 15:39:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-08-18 15:39:39 +0200 |
commit | 3194ccabc1fa0ed52d59167668a7f546dbdbf377 (patch) | |
tree | a397c944bf75c30c9cedf71b8d0117a11212575e /src/include | |
parent | cb27943f1443c38a4dcfde118207688eb049f13c (diff) | |
download | exchange-3194ccabc1fa0ed52d59167668a7f546dbdbf377.tar.xz |
untested draft of webhook logic for persona
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_kyclogic_lib.h | 31 | ||||
-rw-r--r-- | src/include/taler_kyclogic_plugin.h | 8 |
2 files changed, 39 insertions, 0 deletions
diff --git a/src/include/taler_kyclogic_lib.h b/src/include/taler_kyclogic_lib.h index fedb26a99..df547c3db 100644 --- a/src/include/taler_kyclogic_lib.h +++ b/src/include/taler_kyclogic_lib.h @@ -238,6 +238,37 @@ TALER_KYCLOGIC_kyc_iterate_thresholds ( /** + * Function called with the provider details and + * associated plugin closures for matching logics. + * + * @param cls closure + * @param pd provider details of a matching logic + * @param plugin_cls closure of the plugin + * @return #GNUNET_OK to continue to iterate + */ +typedef enum GNUNET_GenericReturnValue +(*TALER_KYCLOGIC_DetailsCallback)( + void *cls, + const struct TALER_KYCLOGIC_ProviderDetails *pd, + void *plugin_cls); + + +/** + * Call @a cb for all logics with name @a logic_name, + * providing the plugin closure and the @a pd configurations. + * + * @param logic_name name of the logic to match + * @param cb function to call on matching results + * @param cb_cls closure for @a cb + */ +void +TALER_KYCLOGIC_kyc_get_details ( + const char *logic_name, + TALER_KYCLOGIC_DetailsCallback cb, + void *cb_cls); + + +/** * Obtain the provider logic for a given @a provider_section_name. * * @param provider_section_name identifies a KYC provider process diff --git a/src/include/taler_kyclogic_plugin.h b/src/include/taler_kyclogic_plugin.h index 7c0ebbc43..a4c166abc 100644 --- a/src/include/taler_kyclogic_plugin.h +++ b/src/include/taler_kyclogic_plugin.h @@ -77,6 +77,8 @@ enum TALER_KYCLOGIC_KycStatus * The provider is still checking. */ TALER_KYCLOGIC_STATUS_PROVIDER_PENDING + + = TALER_KYCLOGIC_STATUS_PROVIDER | TALER_KYCLOGIC_STATUS_PENDING, @@ -241,6 +243,12 @@ struct TALER_KYCLOGIC_Plugin char *library_name; /** + * Name of the logic, for webhook matching. Set by the + * plugin loader. + */ + char *name; + + /** * Load the configuration of the KYC provider. * * @param cls closure |