Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 94a813e9

Von aquamaniac vor fast 20 Jahren hinzugefügt

  • ID 94a813e9453f1ba8c25a17fd6a63ce949b8683f7
  • Vorgänger b77b4c8e
  • Nachfolger 6d83c0f8

- added support for pcmcia device detection
- completed transition to new server code

git-svn-id: https://devel.aqbanking.de/svn/libchipcard/trunk@122 bfc04c16-8f10-0410-8200-ddfbc4d55d47

Unterschiede anzeigen:

src/drivers/ifd/main.c
int main(int argc, char **argv) {
LC_DRIVER *d;
LCD_DRIVER *d;
d=DriverIFD_new(argc, argv);
if (!d) {
......
if (DriverIFD_Start(d)) {
DBG_ERROR(0, "Could not start driver");
LC_Driver_free(d);
LCD_Driver_free(d);
return 1;
}
if (LC_Driver_IsTestMode(d)) {
if (LCD_Driver_IsTestMode(d)) {
DBG_INFO(0, "Driver is in test mode");
if (LC_Driver_Test(d)) {
if (LCD_Driver_Test(d)) {
fprintf(stderr, "Reader is not available.\n");
return 1;
}
}
else {
if (LC_Driver_Work(d)) {
if (LCD_Driver_Work(d)) {
DBG_ERROR(0, "An error occurred");
}
......
GWEN_Socket_Select(0, 0, 0, 1000);
}
LC_Driver_free(d);
LCD_Driver_free(d);
return 0;
}

Auch abrufbar als: Unified diff