MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cups_name_cb

Function cups_name_cb

cups/dest.c:4422–4440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4420 */
4421
4422static int /* O - 1 to continue, 0 to stop */
4423cups_name_cb(_cups_namedata_t *data, /* I - Data from cupsGetNamedDest */
4424 unsigned flags, /* I - Enumeration flags */
4425 cups_dest_t *dest) /* I - Destination */
4426{
4427 DEBUG_printf(("2cups_name_cb(data=%p(%s), flags=%x, dest=%p(%s)", (void *)data, data->name, flags, (void *)dest, dest->name));
4428
4429 if (!(flags & CUPS_DEST_FLAGS_REMOVED) && !dest->instance && !strcasecmp(data->name, dest->name))
4430 {
4431 /*
4432 * Copy destination and stop enumeration...
4433 */
4434
4435 cupsCopyDest(dest, 0, &data->dest);
4436 return (0);
4437 }
4438
4439 return (1);
4440}
4441
4442
4443/*

Callers

nothing calls this directly

Calls 1

cupsCopyDestFunction · 0.85

Tested by

no test coverage detected