diff options
Diffstat (limited to 'src/iso7816.h')
-rw-r--r-- | src/iso7816.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/iso7816.h b/src/iso7816.h index 426cd97..563243f 100644 --- a/src/iso7816.h +++ b/src/iso7816.h | |||
@@ -7,8 +7,15 @@ | |||
7 | #ifndef _ISO7816_H | 7 | #ifndef _ISO7816_H |
8 | #define _ISO7816_H | 8 | #define _ISO7816_H |
9 | 9 | ||
10 | #include <stdint.h> | ||
11 | #include <stdlib.h> | ||
12 | |||
10 | #include "packed.h" | 13 | #include "packed.h" |
11 | 14 | ||
15 | #ifdef __cplusplus | ||
16 | extern "C" { | ||
17 | #endif /* __cplusplus */ | ||
18 | |||
12 | PACKED_TYPE(iso7816_header_t, | 19 | PACKED_TYPE(iso7816_header_t, |
13 | struct iso7816_header { | 20 | struct iso7816_header { |
14 | uint8_t cla; | 21 | uint8_t cla; |
@@ -35,4 +42,8 @@ iso7816_apdu_t *iso7816_new(uint8_t, uint8_t, uint16_t); | |||
35 | size_t iso7816_len(const iso7816_apdu_t *); | 42 | size_t iso7816_len(const iso7816_apdu_t *); |
36 | void iso7816_free(iso7816_apdu_t **); | 43 | void iso7816_free(iso7816_apdu_t **); |
37 | 44 | ||
45 | #ifdef __cplusplus | ||
46 | } /* extern "C" */ | ||
47 | #endif /* __cplusplus */ | ||
48 | |||
38 | #endif /* !_ISO7816_H */ | 49 | #endif /* !_ISO7816_H */ |