1 struct idr_context
*idr_init(TALLOC_CTX
*mem_ctx
);
2 int idr_get_new(struct idr_context
*idp
, void *ptr
, int limit
);
3 int idr_get_new_above(struct idr_context
*idp
, void *ptr
, int starting_id
, int limit
);
4 int idr_get_new_random(struct idr_context
*idp
, void *ptr
, int limit
);
5 void *idr_find(struct idr_context
*idp
, int id
);
6 int idr_remove(struct idr_context
*idp
, int id
);