| 31 | */ |
| 32 | |
| 33 | cupsd_netif_t * /* O - Network interface data */ |
| 34 | cupsdNetIFFind(const char *name) /* I - Name of interface */ |
| 35 | { |
| 36 | cupsd_netif_t key; /* Search key */ |
| 37 | |
| 38 | |
| 39 | /* |
| 40 | * Update the interface list as needed... |
| 41 | */ |
| 42 | |
| 43 | if (NetIFUpdate) |
| 44 | cupsdNetIFUpdate(); |
| 45 | |
| 46 | /* |
| 47 | * Search for the named interface... |
| 48 | */ |
| 49 | |
| 50 | strlcpy(key.name, name, sizeof(key.name)); |
| 51 | |
| 52 | return ((cupsd_netif_t *)cupsArrayFind(NetIFList, &key)); |
| 53 | } |
| 54 | |
| 55 | |
| 56 | /* |
nothing calls this directly
no test coverage detected