diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-01-21 15:40:07 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-01-21 15:40:07 +0100 |
commit | 08eafb1add8c04fdd57eb4f43793b3377a9fb94c (patch) | |
tree | 31a0e1f898fc10be3efde5c1b5ae4adc9e11ae64 /src/include/taler_testing_lib.h | |
parent | 5a1594f63d60af9e85bc7af5c0bd810d98d34791 (diff) |
Export testing-cert_cb in the API.
This way, this very basic cert_cb can be reused
by other testing commands.
Diffstat (limited to 'src/include/taler_testing_lib.h')
-rw-r--r-- | src/include/taler_testing_lib.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index edca769df..711a13235 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -117,6 +117,21 @@ TALER_TESTING_prepare_exchange (const char *config_filename, char **exchange_base_url); /** + * "Canonical" cert_cb used when we are connecting to the + * Exchange. + * + * @param cls closure, typically, the "run" method containing + * all the commands to be run, and a closure for it. + * @param keys the exchange's keys. + * @param compat protocol compatibility information. + */ +void +TALER_TESTING_cert_cb + (void *cls, + const struct TALER_EXCHANGE_Keys *keys, + enum TALER_EXCHANGE_VersionCompatibility compat); + +/** * Wait for the exchange to have started. Waits for at * most 10s, after that returns 77 to indicate an error. * @@ -1477,6 +1492,14 @@ TALER_TESTING_cmd_batch (const char *label, int TALER_TESTING_cmd_is_batch (const struct TALER_TESTING_Command *cmd); +/** + * Advance internal pointer to next command. + * + * @param is interpreter state. + */ +void +TALER_TESTING_cmd_batch_next + (struct TALER_TESTING_Interpreter *is); /** * Obtain what command the batch is at. |