summaryrefslogtreecommitdiff
path: root/src/include/taler_fakebank_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/taler_fakebank_lib.h')
-rw-r--r--src/include/taler_fakebank_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/taler_fakebank_lib.h b/src/include/taler_fakebank_lib.h
index 828282c8..60283e7f 100644
--- a/src/include/taler_fakebank_lib.h
+++ b/src/include/taler_fakebank_lib.h
@@ -64,6 +64,7 @@ TALER_FAKEBANK_start (uint16_t port,
*
* @param port port to listen to
* @param currency which currency should the bank offer
+ * @param ram_limit how much memory do we use at most
* @param num_threads size of the thread pool, 0 to use the GNUnet scheduler
* @param close_connections true to force closing a connection after each request (no HTTP keep-alive)
* @return NULL on error
@@ -71,6 +72,7 @@ TALER_FAKEBANK_start (uint16_t port,
struct TALER_FAKEBANK_Handle *
TALER_FAKEBANK_start2 (uint16_t port,
const char *currency,
+ uint64_t ram_limit,
unsigned int num_threads,
bool close_connections);
@@ -81,6 +83,9 @@ TALER_FAKEBANK_start2 (uint16_t port,
* or #TALER_FAKEBANK_check_credit()).
* If any transactions are onrecord, return #GNUNET_SYSERR.
*
+ * Note that this function only works in
+ * single-threaded mode while nothing else is happening.
+ *
* @param h bank instance
* @return #GNUNET_OK on success
*/
@@ -139,6 +144,9 @@ TALER_FAKEBANK_make_admin_transfer (
* to the transfer identifier and remove the transaction from the
* list. If the transaction was not recorded, return #GNUNET_SYSERR.
*
+ * Note that this function only works in
+ * single-threaded mode while nothing else is happening.
+ *
* @param h bank instance
* @param want_amount transfer amount desired
* @param want_debit account that should have been debited
@@ -162,6 +170,9 @@ TALER_FAKEBANK_check_debit (struct TALER_FAKEBANK_Handle *h,
* @a want_credit account with the @a subject. If so, remove the transaction
* from the list. If the transaction was not recorded, return #GNUNET_SYSERR.
*
+ * Note that this function only works in
+ * single-threaded mode while nothing else is happening.
+ *
* @param h bank instance
* @param want_amount transfer amount desired
* @param want_debit account that should have been debited