From 43efa12e9fb6df6320ffb7e261145d313f19d1f3 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 15 Aug 2010 11:11:27 +0800 Subject: print full transaction log, including recharge-section, better formatting --- easytool/easycard.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'easytool/easycard.h') 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 */ -- cgit v1.2.3