• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/cups-408/cups/scheduler/

Lines Matching defs:device

76 static int		send_class,	/* Send device-class attribute? */
77 send_info, /* Send device-info attribute? */
79 /* Send device-make-and-model attribute? */
80 send_uri, /* Send device-uri attribute? */
81 send_id, /* Send device-id attribute? */
82 send_location; /* Send device-location attribute? */
197 send_class = cupsArrayFind(requested, "device-class") != NULL;
198 send_info = cupsArrayFind(requested, "device-info") != NULL;
199 send_make_and_model = cupsArrayFind(requested, "device-make-and-model") != NULL;
200 send_uri = cupsArrayFind(requested, "device-uri") != NULL;
201 send_id = cupsArrayFind(requested, "device-id") != NULL;
202 send_location = cupsArrayFind(requested, "device-location") != NULL;
246 * Loop through all of the device backends...
347 * 'add_device()' - Add a new device to the list.
356 const char *device_id, /* I - 1284 device ID */
359 cupsd_device_t *device; /* New device */
363 * Allocate memory for the device record...
366 if ((device = calloc(1, sizeof(cupsd_device_t))) == NULL)
368 fputs("ERROR: [cups-deviced] Ran out of memory allocating a device!\n",
377 strlcpy(device->device_class, device_class, sizeof(device->device_class));
378 strlcpy(device->device_info, device_info, sizeof(device->device_info));
379 strlcpy(device->device_uri, device_uri, sizeof(device->device_uri));
382 * Add the device to the array and return...
385 if (cupsArrayFind(devices, device))
391 free(device);
395 cupsArrayAdd(devices, device);
400 * Send device info...
405 cupsdSendIPPString(IPP_TAG_KEYWORD, "device-class",
408 cupsdSendIPPString(IPP_TAG_TEXT, "device-info", device_info);
410 cupsdSendIPPString(IPP_TAG_TEXT, "device-make-and-model",
413 cupsdSendIPPString(IPP_TAG_URI, "device-uri", device_uri);
415 cupsdSendIPPString(IPP_TAG_TEXT, "device-id",
418 cupsdSendIPPString(IPP_TAG_TEXT, "device-location",
431 * 'compare_devices()' - Compare device names to eliminate duplicates.
435 compare_devices(cupsd_device_t *d0, /* I - First device */
436 cupsd_device_t *d1) /* I - Second device */
442 * Sort devices by device-info, device-class, and device-uri...
471 * 'get_device()' - Get a device from a backend.
484 *device_id, /* 1284 device ID */
493 * class URI "make model" "name" ["1284 device ID"] ["location"]
499 * device-class
512 * device-uri
526 * device-make-and-model
544 * device-info
562 * device-id
579 * device-location
605 * Add the device to the array of available devices...
609 fprintf(stderr, "DEBUG: [cups-deviced] Found device \"%s\"...\n", uri);