BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / kernel / network / stack / domains.h
blob538326f13c16b5818144b0ba4474751404861254
1 /*
2 * Copyright 2006-2010, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Axel Dörfler, axeld@pinc-software.de
7 */
8 #ifndef DOMAINS_H
9 #define DOMAINS_H
12 #include <lock.h>
13 #include <util/list.h>
14 #include <util/DoublyLinkedList.h>
16 #include "routes.h"
19 struct net_device_interface;
22 struct net_domain_private : net_domain,
23 DoublyLinkedListLinkImpl<net_domain_private> {
24 recursive_lock lock;
26 RouteList routes;
27 RouteInfoList route_infos;
31 net_domain* get_domain(int family);
32 status_t register_domain(int family, const char* name,
33 struct net_protocol_module_info* module,
34 struct net_address_module_info* addressModule, net_domain* *_domain);
35 status_t unregister_domain(net_domain* domain);
37 status_t init_domains();
38 status_t uninit_domains();
41 #endif // DOMAINS_H