xref: /haiku/src/libs/compat/freebsd_network/unit.h (revision 0fae96c5a349db3761ac2a4ab4a7fbbf23a3b76c)
1 /*
2  * Copyright 2009 Colin Günther, coling@gmx.de
3  * All Rights Reserved. Distributed under the terms of the MIT License.
4  */
5 #ifndef UNIT_H_
6 #define UNIT_H_
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include <compat/sys/systm.h>
13 
14 
15 struct radix_bitmap;
16 struct unrhdr {
17 	struct radix_bitmap*	idBuffer;
18 	struct mtx*				storeMutex;
19 	int32					idBias;
20 };
21 
22 
23 status_t _new_unrhdr_buffer(struct unrhdr*, uint32);
24 void _delete_unrhdr_buffer_locked(struct unrhdr*);
25 int _alloc_unr_locked(struct unrhdr*);
26 void _free_unr_locked(struct unrhdr*, u_int);
27 
28 #ifdef __cplusplus
29 }
30 #endif
31 
32 #endif /* UNIT_H_ */
33