2017-10-06 11:49:46 +00:00
|
|
|
diff -up cups-filters-1.16.1/utils/cups-browsed.c.location cups-filters-1.16.1/utils/cups-browsed.c
|
2017-11-20 18:49:33 +00:00
|
|
|
--- cups-filters-1.16.1/utils/cups-browsed.c.location 2017-08-09 20:02:48.000000000 +0200
|
|
|
|
+++ cups-filters-1.16.1/utils/cups-browsed.c 2017-11-20 19:40:25.943791715 +0100
|
|
|
|
@@ -4472,6 +4472,9 @@ gboolean update_cups_queues(gpointer unu
|
|
|
|
IPP_PRINTER_IDLE);
|
|
|
|
/* ... and accepting jobs */
|
|
|
|
ippAddBoolean(request, IPP_TAG_PRINTER, "printer-is-accepting-jobs", 1);
|
|
|
|
+ /* Location */
|
|
|
|
+ ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_TEXT,
|
|
|
|
+ "printer-location", NULL, p->location);
|
|
|
|
num_options = 0;
|
|
|
|
options = NULL;
|
|
|
|
/* Device URI: ipp(s)://<remote host>:631/printers/<remote queue>
|
|
|
|
@@ -4484,9 +4487,7 @@ gboolean update_cups_queues(gpointer unu
|
|
|
|
/* Description */
|
|
|
|
num_options = cupsAddOption("printer-info", p->info,
|
|
|
|
num_options, &options);
|
|
|
|
- /* Location */
|
|
|
|
- num_options = cupsAddOption("printer-location", p->location,
|
|
|
|
- num_options, &options);
|
|
|
|
+
|
|
|
|
/* Default option settings from printer entry */
|
|
|
|
for (i = 0; i < p->num_options; i ++)
|
|
|
|
if (strcasecmp(p->options[i].name, "printer-is-shared"))
|
|
|
|
@@ -6360,7 +6361,7 @@ static void
|
2017-10-06 11:49:46 +00:00
|
|
|
browse_poll_get_printers (browsepoll_t *context, http_t *conn)
|
|
|
|
{
|
|
|
|
static const char * const rattrs[] = { "printer-uri-supported",
|
|
|
|
- "printer-info"};
|
|
|
|
+ "printer-location", "printer-info"};
|
|
|
|
ipp_t *request, *response = NULL;
|
|
|
|
ipp_attribute_t *attr;
|
|
|
|
GList *printers = NULL;
|