libchipcard 5.1.6
geldkarte.h File Reference
#include <chipcard/card.h>
#include <chipcard/cards/geldkarte_blog.h>
#include <chipcard/cards/geldkarte_llog.h>
#include <chipcard/cards/geldkarte_values.h>
Include dependency graph for geldkarte.h:

Go to the source code of this file.

Functions

Extending Basic Card Object
CHIPCARD_API int LC_GeldKarte_ExtendCard (LC_CARD *card)
 
CHIPCARD_API int LC_GeldKarte_UnextendCard (LC_CARD *card)
 
CHIPCARD_API LC_CLIENT_RESULT LC_GeldKarte_Reopen (LC_CARD *card)
 
General Card Data
CHIPCARD_API GWEN_DB_NODE * LC_GeldKarte_GetCardDataAsDb (const LC_CARD *card)
 
CHIPCARD_API GWEN_BUFFER * LC_GeldKarte_GetCardDataAsBuffer (const LC_CARD *card)
 
CHIPCARD_API GWEN_DB_NODE * LC_GeldKarte_GetAccountDataAsDb (const LC_CARD *card)
 
CHIPCARD_API GWEN_BUFFER * LC_GeldKarte_GetAccountDataAsBuffer (const LC_CARD *card)
 
GeldKarte-specific Data
CHIPCARD_API LC_CLIENT_RESULT LC_GeldKarte_ReadValues (LC_CARD *card, LC_GELDKARTE_VALUES *val)
 
CHIPCARD_API LC_CLIENT_RESULT LC_GeldKarte_ReadBLogs (LC_CARD *card, LC_GELDKARTE_BLOG_LIST2 *bll)
 
CHIPCARD_API LC_CLIENT_RESULT LC_GeldKarte_ReadLLogs (LC_CARD *card, LC_GELDKARTE_LLOG_LIST2 *bll)
 

Function Documentation

◆ LC_GeldKarte_ExtendCard()

CHIPCARD_API int LC_GeldKarte_ExtendCard ( LC_CARD * card)

Extends a basic card type thus making functions of this group available. This stores some GeldKarte-related data with the given card object. This function internally calls LC_ProcessorCard_ExtendCard.

References CHIPCARD_API.

◆ LC_GeldKarte_UnextendCard()

CHIPCARD_API int LC_GeldKarte_UnextendCard ( LC_CARD * card)

Unextend a card object which has previously been extended using LC_GeldKarte_ExtendCard. This functions releases all GeldKarte-related ressources. This function internally calls LC_ProcessorCard_UnextendCard.

References CHIPCARD_API.

◆ LC_GeldKarte_Reopen()

CHIPCARD_API LC_CLIENT_RESULT LC_GeldKarte_Reopen ( LC_CARD * card)

This function is called from within LC_Card_Open for cards which have been extended using LC_GeldKarte_ExtendCard. However, if a card extended after opening you can call this function here to let the card do some necessary work before other functions of this group can be used.

References CHIPCARD_API.

◆ LC_GeldKarte_GetCardDataAsDb()

CHIPCARD_API GWEN_DB_NODE * LC_GeldKarte_GetCardDataAsDb ( const LC_CARD * card)

Returns the card data (EF_ID) parsed into a GWEN_DB.

References CHIPCARD_API.

◆ LC_GeldKarte_GetCardDataAsBuffer()

CHIPCARD_API GWEN_BUFFER * LC_GeldKarte_GetCardDataAsBuffer ( const LC_CARD * card)

Returns the raw card data (content of EF_ID). The card object remains the owner of the object returned (if any), so you must not manipulate or free it.

References CHIPCARD_API.

◆ LC_GeldKarte_GetAccountDataAsDb()

CHIPCARD_API GWEN_DB_NODE * LC_GeldKarte_GetAccountDataAsDb ( const LC_CARD * card)

Returns the card data (EF_BOERSE) parsed into a GWEN_DB.

References CHIPCARD_API.

◆ LC_GeldKarte_GetAccountDataAsBuffer()

CHIPCARD_API GWEN_BUFFER * LC_GeldKarte_GetAccountDataAsBuffer ( const LC_CARD * card)

Returns the raw card data (content of EF_BOERSE). The card object remains the owner of the object returned (if any), so you must not manipulate or free it.

References CHIPCARD_API.

◆ LC_GeldKarte_ReadValues()

CHIPCARD_API LC_CLIENT_RESULT LC_GeldKarte_ReadValues ( LC_CARD * card,
LC_GELDKARTE_VALUES * val )

Read the stored values off the card (loaded amount, maximum amount, transfer amount limit).

References CHIPCARD_API.

◆ LC_GeldKarte_ReadBLogs()

CHIPCARD_API LC_CLIENT_RESULT LC_GeldKarte_ReadBLogs ( LC_CARD * card,
LC_GELDKARTE_BLOG_LIST2 * bll )

Read the BLOGs off the card. BLOGs are merchant logs, e.g. they contain transactions in shops etc (see LC_GELDKARTE_BLOG).

References CHIPCARD_API.

◆ LC_GeldKarte_ReadLLogs()

CHIPCARD_API LC_CLIENT_RESULT LC_GeldKarte_ReadLLogs ( LC_CARD * card,
LC_GELDKARTE_LLOG_LIST2 * bll )

Read the LLOGs off the card. LLOGs are load/unload logs, these are logs about loading/unloading of the card at credit institutes (see LC_GELDKARTE_LLOG).