Lines Matching refs:device
426 print_xml_c(xmlNode *node, ESCL_Device *device, capabilities_t *scanner, int type)
435 device->version = atof ((const char *)xmlNodeGetContent(node));
438 device->model_name = strdup((const char *)xmlNodeGetContent(node));
444 print_xml_c(node->children, device, scanner, PLATEN);
451 print_xml_c(node->children, device, scanner, ADFSIMPLEX);
458 print_xml_c(node->children, device, scanner, ADFDUPLEX);
462 print_xml_c(node->children, device, scanner, type);
524 * \fn capabilities_t *escl_capabilities(const ESCL_Device *device, SANE_Status *status)
532 escl_capabilities(ESCL_Device *device, char *blacklist, SANE_Status *status)
545 if (device == NULL)
558 escl_curl_url(curl_handle, device, scanner_capabilities);
585 if (device->hack &&
589 device->hack = curl_slist_append(NULL, "Host: localhost");
591 device->version = 0.0;
596 print_xml_c(node, device, scanner, -1);
598 if (device->model_name != NULL) {
599 if (strcasestr(device->model_name, "MFC-J985DW")) {
600 DBG (3, "blacklist_pdf: device not support PDF\n");
604 char *model = strdup(device->model_name);