summaryrefslogtreecommitdiff
path: root/src/iso7816.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/iso7816.h')
-rw-r--r--src/iso7816.h11
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
16extern "C" {
17#endif /* __cplusplus */
18
12PACKED_TYPE(iso7816_header_t, 19PACKED_TYPE(iso7816_header_t,
13struct iso7816_header { 20struct 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);
35size_t iso7816_len(const iso7816_apdu_t *); 42size_t iso7816_len(const iso7816_apdu_t *);
36void iso7816_free(iso7816_apdu_t **); 43void 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 */