smbd: Simplify brl_locktest
[Samba.git] / ctdb / include / internal / idtree.h
blobd60817a1a8ed639a254f179e33492d4a6f2a3763
1 #ifndef IDTREE_H
2 #define IDTREE_H
4 struct idr_context *idr_init(TALLOC_CTX *mem_ctx);
5 int idr_get_new(struct idr_context *idp, void *ptr, int limit);
6 int idr_get_new_above(struct idr_context *idp, void *ptr, int starting_id, int limit);
7 int idr_get_new_random(struct idr_context *idp, void *ptr, int limit);
8 void *idr_find(struct idr_context *idp, int id);
9 int idr_remove(struct idr_context *idp, int id);
11 #endif /* IDTREE_H */