Revision 94a813e9
Von aquamaniac vor fast 20 Jahren hinzugefügt
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
- 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