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