File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / bird2 / lib / idm.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 21 16:03:56 2019 UTC (4 years, 8 months ago) by misho
Branches: bird2, MAIN
CVS tags: v2_0_7p0, HEAD
bird2 ver 2.0.7

    1: /*
    2:  *	BIRD Library -- ID Map
    3:  *
    4:  *	(c) 2013--2015 Ondrej Zajicek <santiago@crfreenet.org>
    5:  *	(c) 2013--2015 CZ.NIC z.s.p.o.
    6:  *
    7:  *	Can be freely distributed and used under the terms of the GNU GPL.
    8:  */
    9: 
   10: #ifndef _BIRD_IDM_H_
   11: #define _BIRD_IDM_H_
   12: 
   13: struct idm
   14: {
   15:   u32 *data;
   16:   u32 pos;
   17:   u32 used;
   18:   u32 size;
   19: };
   20: 
   21: void idm_init(struct idm *m, pool *p, uint size);
   22: u32 idm_alloc(struct idm *m);
   23: void idm_free(struct idm *m, u32 id);
   24: 
   25: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>