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

Function cupsdNetIFFind

scheduler/network.c:33–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 */
32
33cupsd_netif_t * /* O - Network interface data */
34cupsdNetIFFind(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/*

Callers

nothing calls this directly

Calls 2

cupsdNetIFUpdateFunction · 0.85
cupsArrayFindFunction · 0.85

Tested by

no test coverage detected