[cups] I need help with cupsGetDests2
Todd And Margo Chester
toddandmargo at gmail.com
Sun Dec 6 19:32:25 PST 2020
Hi All,
Fedora 33
cups-2.3.3-18.fc33.x86_64
cupsGetDests2 is showing both my local printer name and
its shared name as well:
#include
#include <cups/cups.h>
int main() {
cups_dest_t* dests;
int nCount = cupsGetDests2(CUPS_HTTP_DEFAULT, &dests);
for (int i = 0; i < nCount; i++) {
cups_dest_t dest = dests[i];
std::cout << dest.name << std::endl;
}
}
$ list-printers
B4350
Cups-PDF
Cups_PDF_rn6 <-- shared name
Oki_B4350_on_dev_lp0_rn6 <-- shared name
Virtual_PDF_Printer
Questions:
1) is cupsGetDests2 suppose to do this? Show both name?
2) is there a way to get cupsGetDests2 to not show
you the network name if the printer resides locally?
Many thanks,
-T
More information about the cups
mailing list