1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
/***************************************************************************
begin : Sun Jun 13 2004
copyright : (C) 2004-2010 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
/** @file examplecard_p.h
* @short Private header file only to be used by examplecard.c
*
* This file is not to be included by any other file except the corresponding
* source file (in this case examplecard.c). It only contains definitions
* private to this type. This allows to follow the object oriented programming
* paradigm used by Libchipcard2.
*/
#ifndef CHIPCARD_CARD_EXAMPLECARD_P_H
#define CHIPCARD_CARD_EXAMPLECARD_P_H
#include "examplecard.h"
#include <chipcard/card_imp.h>
/**
* This type definition MUST NEVER be used outside this file and the
* corresponding source file (examplecard.c) !
* This makes this type invisible to the outside, which is very much intended.
* This way a class may be changed later without corrupting the API.
*/
typedef struct EXAMPLE_CARD EXAMPLE_CARD;
struct EXAMPLE_CARD {
LC_CARD_OPEN_FN openFn;
LC_CARD_CLOSE_FN closeFn;
int exampleData;
};
void GWENHYWFAR_CB ExampleCard_freeData(void *bp, void *p);
LC_CLIENT_RESULT CHIPCARD_CB ExampleCard_Open(LC_CARD *card);
LC_CLIENT_RESULT CHIPCARD_CB ExampleCard_Close(LC_CARD *card);
#endif /* CHIPCARD_CARD_EXAMPLECARD_P_H */
|