diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-01-07 13:20:48 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-01-07 13:20:48 -0600 |
commit | af007cde6671c235f343773391ff27654d249859 (patch) | |
tree | 01fe51fdf838b9782872e6d23657984f2fbb12fb /src/idmap.h | |
parent | 6051d0bddeb3a1e82005da9aa3ef4d7bfea6888c (diff) | |
download | ofono-af007cde6671c235f343773391ff27654d249859.tar.bz2 |
Add idmap_from_range constructor
Diffstat (limited to 'src/idmap.h')
-rw-r--r-- | src/idmap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/idmap.h b/src/idmap.h index 6f66ffc8..73e226e2 100644 --- a/src/idmap.h +++ b/src/idmap.h @@ -26,3 +26,6 @@ void idmap_free(struct idmap *idmap); void idmap_put(struct idmap *idmap, unsigned int bit); unsigned int idmap_alloc(struct idmap *idmap); unsigned int idmap_alloc_next(struct idmap *idmap, unsigned int last); +struct idmap *idmap_new_from_range(unsigned int min, unsigned int max); +unsigned int idmap_get_min(struct idmap *idmap); +unsigned int idmap_get_max(struct idmap *idmap); |