libchipcard
5.0.2
Main Page
Related Pages
Modules
Files
File List
Globals
src
lib
client
base
tlv.h
Go to the documentation of this file.
1
/***************************************************************************
2
begin : Sun Jun 13 2004
3
copyright : (C) 2004-2010 by Martin Preuss
4
email : martin@libchipcard.de
5
6
***************************************************************************
7
* Please see toplevel file COPYING for license details *
8
***************************************************************************/
9
10
11
#ifndef CHIPCARD_CLIENT_TLV_H
12
#define CHIPCARD_CLIENT_TLV_H
13
14
#include <gwenhywfar/buffer.h>
15
#include <gwenhywfar/misc.h>
16
#include <chipcard/chipcard.h>
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
typedef
struct
LC_TLV
LC_TLV
;
23
24
GWEN_LIST_FUNCTION_LIB_DEFS(
LC_TLV
,
LC_TLV
,
CHIPCARD_API
)
25
26
27
CHIPCARD_API
28
LC_TLV
*
LC_TLV_new
();
29
CHIPCARD_API
30
void
LC_TLV_free
(
LC_TLV
*tlv);
31
32
CHIPCARD_API
33
LC_TLV
*
LC_TLV_fromBuffer
(GWEN_BUFFER *mbuf,
int
isBerTlv);
34
35
CHIPCARD_API
36
int
LC_TLV_IsBerTlv
(const
LC_TLV
*tlv);
37
CHIPCARD_API
38
unsigned
int
LC_TLV_GetTagType
(const
LC_TLV
*tlv);
39
CHIPCARD_API
40
unsigned
int
LC_TLV_GetTagLength
(const
LC_TLV
*tlv);
41
CHIPCARD_API
42
const
void
*
LC_TLV_GetTagData
(const
LC_TLV
*tlv);
43
44
CHIPCARD_API
45
int
LC_TLV_IsContructed
(const
LC_TLV
*tlv);
46
CHIPCARD_API
47
unsigned
int
LC_TLV_GetClass
(const
LC_TLV
*tlv);
48
CHIPCARD_API
49
unsigned
int
LC_TLV_GetTagSize
(const
LC_TLV
*tlv);
50
51
52
#ifdef __cplusplus
53
}
54
#endif
55
56
57
#endif
/* CHIPCARD_CLIENT_TLV_H */
58
Generated by
1.8.2