예제 #1
0
static int32_t cardreader_device_init(struct s_reader *reader)
{
	int32_t rc = -1; //FIXME
	if (ICC_Async_Device_Init(reader))
		rdr_log(reader, "Cannot open device: %s", reader->device);
	else
		rc = OK;
  return((rc!=OK) ? 2 : 0); //exit code 2 means keep retrying, exit code 0 means all OK
}
예제 #2
0
int32_t reader_device_init(struct s_reader * reader)
{
	int32_t rc = -1; //FIXME
	struct stat st;
	if (!stat(DEV_MULTICAM, &st))
		reader->typ = reader_device_type(reader);
	if (ICC_Async_Device_Init(reader))
		rdr_log(reader, "Cannot open device: %s", reader->device);
	else
		rc = OK;
  return((rc!=OK) ? 2 : 0); //exit code 2 means keep retrying, exit code 0 means all OK
}