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
9extern "C" {
10#endif
11
12#include <compat/sys/systm.h>
13
14
15struct radix_bitmap;
16struct unrhdr {
17	struct radix_bitmap*	idBuffer;
18	struct mtx*				storeMutex;
19	int32					idBias;
20};
21
22
23status_t _new_unrhdr_buffer(struct unrhdr*, uint32);
24void _delete_unrhdr_buffer_locked(struct unrhdr*);
25int _alloc_unr_locked(struct unrhdr*);
26void _free_unr_locked(struct unrhdr*, u_int);
27
28#ifdef __cplusplus
29}
30#endif
31
32#endif /* UNIT_H_ */
33