Lines Matching defs:manager
39 static int network_load_one(Manager *manager, const char *filename) {
47 assert(manager);
67 network->manager = manager;
153 LIST_PREPEND(networks, manager->networks, network);
155 r = hashmap_ensure_allocated(&manager->networks_by_name, &string_hash_ops);
159 r = hashmap_put(manager->networks_by_name, network->name, network);
184 int network_load(Manager *manager) {
190 assert(manager);
192 while ((network = manager->networks))
200 r = network_load_one(manager, *f);
261 if (network->manager) {
262 if (network->manager->networks)
263 LIST_REMOVE(networks, network->manager->networks, network);
265 if (network->manager->networks_by_name)
266 hashmap_remove(network->manager->networks_by_name, network->name);
285 int network_get_by_name(Manager *manager, const char *name, Network **ret) {
288 assert(manager);
292 network = hashmap_get(manager->networks_by_name, name);
301 int network_get(Manager *manager, struct udev_device *device,
308 assert(manager);
323 LIST_FOREACH(networks, network, manager->networks) {
357 int network_apply(Manager *manager, Network *network, Link *link) {
360 assert(manager);
390 manager_dirty(manager);
433 r = netdev_get(network->manager, rvalue, &netdev);
575 r = netdev_get(network->manager, rvalue, &netdev);