summaryrefslogtreecommitdiff
path: root/cups/dest.c
diff options
context:
space:
mode:
authorMichael Sweet <michael.r.sweet@gmail.com>2017-06-20 14:01:15 -0400
committerMichael Sweet <michael.r.sweet@gmail.com>2017-06-20 14:01:15 -0400
commit296cd66b6849f403c28c626c7f0e076293c01055 (patch)
tree4fd60aa3e8532e7bd946cdf7be5584608268706d /cups/dest.c
parent90c67342b60cf53b05e337376465841e7e7cd6a6 (diff)
downloadcups-296cd66b6849f403c28c626c7f0e076293c01055.tar.gz
Save resolved device URI.
Diffstat (limited to 'cups/dest.c')
-rw-r--r--cups/dest.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cups/dest.c b/cups/dest.c
index 5cc5c3d94..cc208913d 100644
--- a/cups/dest.c
+++ b/cups/dest.c
@@ -645,6 +645,9 @@ cupsConnectDest(
if (strstr(uri, "._tcp"))
uri = cups_dnssd_resolve(dest, uri, msec, cancel, cb, user_data);
#endif /* HAVE_DNSSD || HAVE_AVAHI */
+
+ if (uri)
+ dest->num_options = cupsAddOption("resolved-device-uri", uri, dest->num_options, &dest->options);
}
}
}
@@ -658,6 +661,9 @@ cupsConnectDest(
if (strstr(uri, "._tcp"))
uri = cups_dnssd_resolve(dest, uri, msec, cancel, cb, user_data);
#endif /* HAVE_DNSSD || HAVE_AVAHI */
+
+ if (uri)
+ dest->num_options = cupsAddOption("resolved-device-uri", uri, dest->num_options, &dest->options);
}
}