summaryrefslogtreecommitdiff
path: root/src/include/taler_mintdb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-01-27 18:28:52 +0100
committerChristian Grothoff <christian@grothoff.org>2016-01-27 18:28:52 +0100
commit649879b0b6413166e4e24c7bd52993576b72d266 (patch)
treecedbea111a5f2582318d590d8d5790984cd48919 /src/include/taler_mintdb_plugin.h
parentb7215299d8fee1b57c1aa9f5bbb8f8202cfd0369 (diff)
downloadexchange-649879b0b6413166e4e24c7bd52993576b72d266.tar.gz
exchange-649879b0b6413166e4e24c7bd52993576b72d266.tar.bz2
exchange-649879b0b6413166e4e24c7bd52993576b72d266.zip
implementing prepare data postgres functions for #4141
Diffstat (limited to 'src/include/taler_mintdb_plugin.h')
-rw-r--r--src/include/taler_mintdb_plugin.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/include/taler_mintdb_plugin.h b/src/include/taler_mintdb_plugin.h
index 1d40f2935..7c48114b8 100644
--- a/src/include/taler_mintdb_plugin.h
+++ b/src/include/taler_mintdb_plugin.h
@@ -1383,7 +1383,7 @@ struct TALER_MINTDB_Plugin
*
* @param cls closure
* @param session database connection
- * @param type type fo the wire transfer (i.e. "sepa")
+ * @param type type of the wire transfer (i.e. "sepa")
* @param buf buffer with wire transfer preparation data
* @param buf_size number of bytes in @a buf
* @return #GNUNET_OK on success, #GNUNET_SYSERR on DB errors
@@ -1401,21 +1401,17 @@ struct TALER_MINTDB_Plugin
*
* @param cls closure
* @param session database connection
- * @param type type fo the wire transfer (i.e. "sepa")
- * @param buf buffer with wire transfer preparation data
- * @param buf_size number of bytes in @a buf
+ * @param rowid which entry to mark as finished
* @return #GNUNET_OK on success, #GNUNET_SYSERR on DB errors
*/
int
(*wire_prepare_data_mark_finished)(void *cls,
struct TALER_MINTDB_Session *session,
- const char *type,
- const char *buf,
- size_t buf_size);
+ unsigned long long rowid);
/**
- * Function called to iterate over unfinished wire transfer
+ * Function called to get an unfinished wire transfer
* preparation data. Fetches at most one item.
*
* @param cls closure
@@ -1428,11 +1424,11 @@ struct TALER_MINTDB_Plugin
* #GNUNET_SYSERR on DB errors
*/
int
- (*wire_prepare_data_iterate)(void *cls,
- struct TALER_MINTDB_Session *session,
- const char *type,
- TALER_MINTDB_WirePreparationCallback cb,
- void *cb_cls);
+ (*wire_prepare_data_get)(void *cls,
+ struct TALER_MINTDB_Session *session,
+ const char *type,
+ TALER_MINTDB_WirePreparationCallback cb,
+ void *cb_cls);
};