/usr/include/libchipcard5/chipcard/cards/memorycard.h is in libchipcard-dev 5.0.3beta-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | /***************************************************************************
begin : Mon Mar 01 2004
copyright : (C) 2004-2010 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifndef CHIPCARD_CARD_MEMORYCARD_H
#define CHIPCARD_CARD_MEMORYCARD_H
#include <chipcard/card.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @defgroup chipcardc_cards_mem Memory Cards
* @ingroup chipcardc_cards
*
*/
/*@{*/
/** @name Extending Basic Card Object
*
*/
/*@{*/
/**
* Extends a basic card type thus making functions of this group available.
* This stores some memory-card-related data with the given card object.
*/
CHIPCARD_API
int LC_MemoryCard_ExtendCard(LC_CARD *card);
/**
* Unextend a card object which has previously been extended using
* @ref LC_MemoryCard_ExtendCard. This functions releases all
* memory-card-related ressources.
*/
CHIPCARD_API
int LC_MemoryCard_UnextendCard(LC_CARD *card);
/*@}*/
/** @name Reading And Writing
*
* Normally read-/write operations are limited to about 256 bytes, so
* these functions encapsulate the ISO functions to allow for transfers of an
* arbitrary number of bytes.
*/
/*@{*/
/**
* Read data from the card.
* @param card card object
* @param offset offset of the memory area on the card
* @param size number of bytes to read
* @param buf GWEN_BUFFER to receive the data read
*/
CHIPCARD_API
LC_CLIENT_RESULT LC_MemoryCard_ReadBinary(LC_CARD *card,
int offset,
int size,
GWEN_BUFFER *buf);
/**
* Write data to the card.
* @param card card object
* @param offset offset of the memory area on the card
* @param ptr pointer to the data to be written
* @param size number of bytes to write
*/
CHIPCARD_API
LC_CLIENT_RESULT LC_MemoryCard_WriteBinary(LC_CARD *card,
int offset,
const char *ptr,
unsigned int size);
/*@}*/
/** @name Informational Functions
*
*/
/*@{*/
/**
* Returns the capacity of the card in bytes. For some cards the capacity
* can not be determined, in which case this function returns 0.
*/
CHIPCARD_API
unsigned int LC_MemoryCard_GetCapacity(const LC_CARD *card);
/*@}*/
/*@}*/ /* defgroup */
#ifdef __cplusplus
}
#endif
#endif /* CHIPCARD_CARD_MEMORYCARD_H */
|