ctdb-recoverd: Check if callback function is registered before calling
[Samba.git] / ctdb / include / idtree.h
blob259af91005652c3b941e3ee4536c1cc74190ed70
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);