libchipcard  5.0.4
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 
30 void LC_TLV_free(LC_TLV *tlv);
31 
33 LC_TLV *LC_TLV_fromBuffer(GWEN_BUFFER *mbuf, int isBerTlv);
34 
36 int LC_TLV_IsBerTlv(const LC_TLV *tlv);
38 unsigned int LC_TLV_GetTagType(const LC_TLV *tlv);
40 unsigned int LC_TLV_GetTagLength(const LC_TLV *tlv);
42 const void *LC_TLV_GetTagData(const LC_TLV *tlv);
43 
45 int LC_TLV_IsContructed(const LC_TLV *tlv);
47 unsigned int LC_TLV_GetClass(const LC_TLV *tlv);
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 
CHIPCARD_API int LC_TLV_IsBerTlv(const LC_TLV *tlv)
CHIPCARD_API unsigned int LC_TLV_GetClass(const LC_TLV *tlv)
CHIPCARD_API unsigned int LC_TLV_GetTagType(const LC_TLV *tlv)
struct LC_TLV LC_TLV
Definition: tlv.h:22
CHIPCARD_API unsigned int LC_TLV_GetTagLength(const LC_TLV *tlv)
#define CHIPCARD_API
Definition: chipcard.h:50
CHIPCARD_API int LC_TLV_IsContructed(const LC_TLV *tlv)
CHIPCARD_API unsigned int LC_TLV_GetTagSize(const LC_TLV *tlv)
CHIPCARD_API LC_TLV * LC_TLV_fromBuffer(GWEN_BUFFER *mbuf, int isBerTlv)
CHIPCARD_API void LC_TLV_free(LC_TLV *tlv)
CHIPCARD_API LC_TLV * LC_TLV_new()
CHIPCARD_API const void * LC_TLV_GetTagData(const LC_TLV *tlv)