| 1005 | */ |
| 1006 | |
| 1007 | static void |
| 1008 | sysUpdateNames(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__ */ |
no test coverage detected