00001
00002
00003
00004 #ifndef PININFO_H
00005 #define PININFO_H
00006
00073 #ifdef __cplusplus
00074 extern "C" {
00075 #endif
00076
00077 typedef struct LC_PININFO LC_PININFO;
00078
00079 #ifdef __cplusplus
00080 }
00081 #endif
00082
00083 #include <gwenhywfar/db.h>
00084 #include <gwenhywfar/inherit.h>
00085 #include <gwenhywfar/list2.h>
00086
00087 #include <gwenhywfar/types.h>
00088 #include <gwenhywfar/cryptdefs.h>
00089 #include <chipcard/chipcard.h>
00090
00091 #ifdef __cplusplus
00092 extern "C" {
00093 #endif
00094
00095 GWEN_INHERIT_FUNCTION_LIB_DEFS(LC_PININFO, CHIPCARD_API)
00096 GWEN_LIST2_FUNCTION_LIB_DEFS(LC_PININFO, LC_PinInfo, CHIPCARD_API)
00097
00100 CHIPCARD_API void LC_PinInfo_List2_freeAll(LC_PININFO_LIST2 *stl);
00101
00104 CHIPCARD_API LC_PININFO *LC_PinInfo_new();
00107 CHIPCARD_API LC_PININFO *LC_PinInfo_fromDb(GWEN_DB_NODE *db);
00110 CHIPCARD_API LC_PININFO *LC_PinInfo_dup(const LC_PININFO*st);
00113 CHIPCARD_API void LC_PinInfo_free(LC_PININFO *st);
00116 CHIPCARD_API void LC_PinInfo_Attach(LC_PININFO *st);
00119 CHIPCARD_API int LC_PinInfo_ReadDb(LC_PININFO *st, GWEN_DB_NODE *db);
00122 CHIPCARD_API int LC_PinInfo_toDb(const LC_PININFO*st, GWEN_DB_NODE *db);
00125 CHIPCARD_API int LC_PinInfo_IsModified(const LC_PININFO *st);
00128 CHIPCARD_API void LC_PinInfo_SetModified(LC_PININFO *st, int i);
00129
00130
00134 CHIPCARD_API const char *LC_PinInfo_GetName(const LC_PININFO *el);
00138 CHIPCARD_API void LC_PinInfo_SetName(LC_PININFO *el, const char *d);
00139
00143 CHIPCARD_API uint32_t LC_PinInfo_GetId(const LC_PININFO *el);
00147 CHIPCARD_API void LC_PinInfo_SetId(LC_PININFO *el, uint32_t d);
00148
00152 CHIPCARD_API GWEN_CRYPT_PINENCODING LC_PinInfo_GetEncoding(const LC_PININFO *el);
00156 CHIPCARD_API void LC_PinInfo_SetEncoding(LC_PININFO *el, GWEN_CRYPT_PINENCODING d);
00157
00161 CHIPCARD_API int LC_PinInfo_GetMinLength(const LC_PININFO *el);
00165 CHIPCARD_API void LC_PinInfo_SetMinLength(LC_PININFO *el, int d);
00166
00170 CHIPCARD_API int LC_PinInfo_GetMaxLength(const LC_PININFO *el);
00174 CHIPCARD_API void LC_PinInfo_SetMaxLength(LC_PININFO *el, int d);
00175
00179 CHIPCARD_API int LC_PinInfo_GetAllowChange(const LC_PININFO *el);
00183 CHIPCARD_API void LC_PinInfo_SetAllowChange(LC_PININFO *el, int d);
00184
00188 CHIPCARD_API int LC_PinInfo_GetFiller(const LC_PININFO *el);
00192 CHIPCARD_API void LC_PinInfo_SetFiller(LC_PININFO *el, int d);
00193
00194
00195 #ifdef __cplusplus
00196 }
00197 #endif
00198
00199
00200 #endif