-C skeletions

This commit is contained in:
Christian Grothoff 2022-12-30 14:24:48 +01:00
parent b7000379ed
commit c002f458ce
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
13 changed files with 158 additions and 6 deletions

View File

@ -24,3 +24,19 @@
#include "taler_pq_lib.h" #include "taler_pq_lib.h"
#include "pg_insert_aml_decision.h" #include "pg_insert_aml_decision.h"
#include "pg_helper.h" #include "pg_helper.h"
enum GNUNET_DB_QueryStatus
TEH_PG_insert_aml_decision (
void *cls,
const struct TALER_PaytoHashP *h_payto,
const struct TALER_Amount *new_threshold,
enum TALER_AmlDecisionState new_status,
struct GNUNET_TIME_Absolute decision_time,
const char *justification,
const struct TALER_AmlOfficerPublicKeyP *decider_pub,
const struct TALER_AmlOfficerSignatureP *decider_sig)
{
GNUNET_break (0); // FIXME: not implemeted!
return GNUNET_DB_STATUS_HARD_ERROR;
}

View File

@ -24,3 +24,18 @@
#include "taler_pq_lib.h" #include "taler_pq_lib.h"
#include "pg_insert_aml_officer.h" #include "pg_insert_aml_officer.h"
#include "pg_helper.h" #include "pg_helper.h"
enum GNUNET_DB_QueryStatus
TEH_PG_insert_aml_officer (
void *cls,
const struct TALER_AmlOfficerPublicKeyP *decider_pub,
const struct TALER_MasterSignatureP *master_sig,
const char *decider_name,
bool is_active,
bool read_only,
struct GNUNET_TIME_Absolute last_change)
{
GNUNET_break (0); // FIXME: not implemeted!
return GNUNET_DB_STATUS_HARD_ERROR;
}

View File

@ -24,3 +24,20 @@
#include "taler_pq_lib.h" #include "taler_pq_lib.h"
#include "pg_insert_kyc_attributes.h" #include "pg_insert_kyc_attributes.h"
#include "pg_helper.h" #include "pg_helper.h"
enum GNUNET_DB_QueryStatus
TEH_PG_insert_kyc_attributes (
void *cls,
const struct TALER_PaytoHashP *h_payto,
const struct GNUNET_ShortHashCode *kyc_prox,
const char *provider_section,
const char *birthdate,
struct GNUNET_TIME_Timestamp collection_time,
struct GNUNET_TIME_Timestamp expiration_time,
size_t enc_attributes_size,
const void *enc_attributes)
{
GNUNET_break (0); // FIXME: not implemeted!
return GNUNET_DB_STATUS_HARD_ERROR;
}

View File

@ -24,3 +24,17 @@
#include "taler_pq_lib.h" #include "taler_pq_lib.h"
#include "pg_lookup_aml_officer.h" #include "pg_lookup_aml_officer.h"
#include "pg_helper.h" #include "pg_helper.h"
enum GNUNET_DB_QueryStatus
TEH_PG_lookup_aml_officer (
void *cls,
const struct TALER_AmlOfficerPublicKeyP *decider_pub,
struct TALER_MasterSignatureP *master_sig,
char **decider_name,
bool *is_active,
bool *read_only,
struct GNUNET_TIME_Absolute *last_change)
{
GNUNET_break (0); // FIXME: not implemeted!
return GNUNET_DB_STATUS_HARD_ERROR;
}

View File

@ -24,3 +24,14 @@
#include "taler_pq_lib.h" #include "taler_pq_lib.h"
#include "pg_select_aml_history.h" #include "pg_select_aml_history.h"
#include "pg_helper.h" #include "pg_helper.h"
enum GNUNET_DB_QueryStatus
TEH_PG_select_aml_history (
void *cls,
const struct TALER_PaytoHashP *h_payto,
TALER_EXCHANGEDB_AmlHistoryCallback cb,
void *cb_cls)
{
GNUNET_break (0); // FIXME: not implemeted!
return GNUNET_DB_STATUS_HARD_ERROR;
}

View File

@ -24,3 +24,17 @@
#include "taler_pq_lib.h" #include "taler_pq_lib.h"
#include "pg_select_aml_process.h" #include "pg_select_aml_process.h"
#include "pg_helper.h" #include "pg_helper.h"
enum GNUNET_DB_QueryStatus
TEH_PG_select_aml_process (
void *cls,
enum TALER_AmlDecisionState decision,
uint64_t row_off,
bool forward,
TALER_EXCHANGEDB_AmlStatusCallback cb,
void *cb_cls)
{
GNUNET_break (0); // FIXME: not implemeted!
return GNUNET_DB_STATUS_HARD_ERROR;
}

View File

@ -24,3 +24,15 @@
#include "taler_pq_lib.h" #include "taler_pq_lib.h"
#include "pg_select_kyc_attributes.h" #include "pg_select_kyc_attributes.h"
#include "pg_helper.h" #include "pg_helper.h"
enum GNUNET_DB_QueryStatus
TEH_PG_select_kyc_attributes (
void *cls,
const struct TALER_PaytoHashP *h_payto,
TALER_EXCHANGEDB_AttributeCallback cb,
void *cb_cls)
{
GNUNET_break (0); // FIXME: not implemeted!
return GNUNET_DB_STATUS_HARD_ERROR;
}

View File

@ -24,3 +24,15 @@
#include "taler_pq_lib.h" #include "taler_pq_lib.h"
#include "pg_select_similar_kyc_attributes.h" #include "pg_select_similar_kyc_attributes.h"
#include "pg_helper.h" #include "pg_helper.h"
enum GNUNET_DB_QueryStatus
TEH_PG_select_similar_kyc_attributes (
void *cls,
const struct GNUNET_ShortHashCode *kyc_prox,
TALER_EXCHANGEDB_AttributeCallback cb,
void *cb_cls)
{
GNUNET_break (0); // FIXME: not implemeted!
return GNUNET_DB_STATUS_HARD_ERROR;
}

View File

@ -27,20 +27,20 @@
/** /**
* Lookup KYC attribute data for a specific account. * Lookup similar KYC attribute data.
* *
* @param cls closure * @param cls closure
* @param h_payto account for which the attribute data is stored * @param h_payto account for which the attribute data is stored
* @param kyc_prox key for similarity search
* @param cb callback to invoke on each match * @param cb callback to invoke on each match
* @param cb_cls closure for @a cb * @param cb_cls closure for @a cb
* @return database transaction status * @return database transaction status
*/ */
enum GNUNET_DB_QueryStatus enum GNUNET_DB_QueryStatus
TEH_PG_select_kyc_attributes ( TEH_PG_select_similar_kyc_attributes (
void *cls, void *cls,
const struct TALER_PaytoHashP *h_payto, const struct GNUNET_ShortHashCode *kyc_prox,
TALER_EXCHANGEDB_AttributeCallback cb, TALER_EXCHANGEDB_AttributeCallback cb,
void *cb_cls); void *cb_cls);
#endif #endif

View File

@ -24,3 +24,14 @@
#include "taler_pq_lib.h" #include "taler_pq_lib.h"
#include "pg_trigger_aml_process.h" #include "pg_trigger_aml_process.h"
#include "pg_helper.h" #include "pg_helper.h"
enum GNUNET_DB_QueryStatus
TEH_PG_trigger_aml_process (
void *cls,
const struct TALER_PaytoHashP *h_payto,
const struct TALER_Amount *threshold_crossed)
{
GNUNET_break (0); // FIXME: not implemeted!
return GNUNET_DB_STATUS_HARD_ERROR;
}

View File

@ -24,3 +24,18 @@
#include "taler_pq_lib.h" #include "taler_pq_lib.h"
#include "pg_update_aml_officer.h" #include "pg_update_aml_officer.h"
#include "pg_helper.h" #include "pg_helper.h"
enum GNUNET_DB_QueryStatus
TEH_PG_update_aml_officer (
void *cls,
const struct TALER_AmlOfficerPublicKeyP *decider_pub,
const struct TALER_MasterSignatureP *master_sig,
const char *decider_name,
bool is_active,
bool read_only,
struct GNUNET_TIME_Absolute last_change)
{
GNUNET_break (0); // FIXME: not implemeted!
return GNUNET_DB_STATUS_HARD_ERROR;
}

View File

@ -24,3 +24,20 @@
#include "taler_pq_lib.h" #include "taler_pq_lib.h"
#include "pg_update_kyc_attributes.h" #include "pg_update_kyc_attributes.h"
#include "pg_helper.h" #include "pg_helper.h"
enum GNUNET_DB_QueryStatus
TEH_PG_update_kyc_attributes (
void *cls,
const struct TALER_PaytoHashP *h_payto,
const struct GNUNET_ShortHashCode *kyc_prox,
const char *provider_section,
const char *birthdate,
struct GNUNET_TIME_Timestamp collection_time,
struct GNUNET_TIME_Timestamp expiration_time,
size_t enc_attributes_size,
const void *enc_attributes)
{
GNUNET_break (0); // FIXME: not implemeted!
return GNUNET_DB_STATUS_HARD_ERROR;
}

View File

@ -751,7 +751,6 @@ libtaler_plugin_exchangedb_postgres_init (void *cls)
= &TEH_PG_batch_reserves_in_insert; = &TEH_PG_batch_reserves_in_insert;
plugin->batch2_reserves_in_insert plugin->batch2_reserves_in_insert
= &TEH_PG_batch2_reserves_in_insert; = &TEH_PG_batch2_reserves_in_insert;
#if 0
plugin->insert_kyc_attributes plugin->insert_kyc_attributes
= &TEH_PG_insert_kyc_attributes; = &TEH_PG_insert_kyc_attributes;
plugin->update_kyc_attributes plugin->update_kyc_attributes
@ -774,7 +773,6 @@ libtaler_plugin_exchangedb_postgres_init (void *cls)
= &TEH_PG_select_aml_history; = &TEH_PG_select_aml_history;
plugin->insert_aml_decision plugin->insert_aml_decision
= &TEH_PG_insert_aml_decision; = &TEH_PG_insert_aml_decision;
#endif
return plugin; return plugin;
} }