diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-10-20 16:08:47 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-10-20 16:08:47 +0200 |
commit | 2e4b1eb7a968833300b8a582835ef97ff11e82c4 (patch) | |
tree | ef78866c47d3db2c7a9ba90d25c01febd57a6945 /src/include | |
parent | 66a1cb6f783d1fd2c3ae08cd4a0699084590d0e8 (diff) | |
download | merchant-2e4b1eb7a968833300b8a582835ef97ff11e82c4.tar.gz merchant-2e4b1eb7a968833300b8a582835ef97ff11e82c4.tar.bz2 merchant-2e4b1eb7a968833300b8a582835ef97ff11e82c4.zip |
Making the "non official" way of verifying a deposit
confirmation compile.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/merchant.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/merchant.h b/src/include/merchant.h index c66131ed..a5273507 100644 --- a/src/include/merchant.h +++ b/src/include/merchant.h @@ -27,6 +27,19 @@ #include <gnunet/gnunet_crypto_lib.h> /** + * Macro to round microseconds to seconds in GNUNET_TIME_* structs. + */ +#define ROUND_TO_SECS(name,us_field) name.us_field -= name.us_field % (1000 * 1000) + +/** + * Shorthand for exit jumps. + */ +#define EXITIF(cond) \ + do { \ + if (cond) { GNUNET_break (0); goto EXITIF_exit; } \ + } while (0) + +/** * A mint */ struct MERCHANT_MintInfo { |