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

Function sysUpdateNames

scheduler/sysman.c:1007–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1005 */
1006
1007static void
1008sysUpdateNames(void)
1009{
1010 cupsd_printer_t *p; /* Current printer */
1011
1012
1013 NameChanged = 0;
1014
1015 /*
1016 * De-register the individual printers...
1017 */
1018
1019 for (p = (cupsd_printer_t *)cupsArrayFirst(Printers);
1020 p;
1021 p = (cupsd_printer_t *)cupsArrayNext(Printers))
1022 cupsdDeregisterPrinter(p, 1);
1023
1024# ifdef HAVE_DNSSD
1025 /*
1026 * Update the computer name and BTMM domain list...
1027 */
1028
1029 cupsdUpdateDNSSDName();
1030# endif /* HAVE_DNSSD */
1031
1032 /*
1033 * Now re-register them...
1034 */
1035
1036 for (p = (cupsd_printer_t *)cupsArrayFirst(Printers);
1037 p;
1038 p = (cupsd_printer_t *)cupsArrayNext(Printers))
1039 cupsdRegisterPrinter(p);
1040}
1041#endif /* __APPLE__ */

Callers 1

sysUpdateFunction · 0.85

Calls 5

cupsArrayFirstFunction · 0.85
cupsArrayNextFunction · 0.85
cupsdDeregisterPrinterFunction · 0.85
cupsdUpdateDNSSDNameFunction · 0.85
cupsdRegisterPrinterFunction · 0.85

Tested by

no test coverage detected