diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-08-15 11:11:27 +0800 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-08-15 11:11:27 +0800 |
commit | 43efa12e9fb6df6320ffb7e261145d313f19d1f3 (patch) | |
tree | 900a638ef7c217387082c27af9004fbc30feae9b /easytool/easycard.h | |
parent | ab6aa10e6625bca5f15f9de775ff7dc51eb825a7 (diff) |
print full transaction log, including recharge-section, better formatting
Diffstat (limited to 'easytool/easycard.h')
-rw-r--r-- | easytool/easycard.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/easytool/easycard.h b/easytool/easycard.h index b47dee9..fb4d93d 100644 --- a/easytool/easycard.h +++ b/easytool/easycard.h @@ -44,10 +44,16 @@ struct easy_log_rec { } __attribute__ ((packed)); time_t easy_timestamp2time(const uint8_t *easy_ts); +char *easy_asc_timestamp(const uint8_t *timestamp); /* apply a telta (positive or negative) to a EasyCard log record */ int easy_update_log_rec(struct easy_log_rec *elr, int16_t delta); /* apply a delta to the 'sum of day' record in Sector 15 Block 2 */ int easy_update_sum_of_day(struct easy_sect15blk2 *s15b2, int16_t delta); +void easy_dump_log_rec(const struct easy_log_rec *elr); + +typedef mifare_tag; +void easy_dump_log(mifare_tag *mft); + #endif /* EASYCARD_H */ |