[cups] I need help with cupsGetDests2

Todd And Margo Chester <[email protected]>
Newsgroups gmane.comp.printing.cups.general
Message-ID <[email protected]>
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
_______________________________________________
cups mailing list
[email protected]
https://lists.cups.org/mailman/listinfo/cups
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.