summaryrefslogtreecommitdiff
path: root/source4/cluster/ctdb/include/idtree.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/cluster/ctdb/include/idtree.h')
-rw-r--r--source4/cluster/ctdb/include/idtree.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/cluster/ctdb/include/idtree.h b/source4/cluster/ctdb/include/idtree.h
new file mode 100644
index 0000000000..259af91005
--- /dev/null
+++ b/source4/cluster/ctdb/include/idtree.h
@@ -0,0 +1,7 @@
+struct idr_context *idr_init(TALLOC_CTX *mem_ctx);
+int idr_get_new(struct idr_context *idp, void *ptr, int limit);
+int idr_get_new_above(struct idr_context *idp, void *ptr, int starting_id, int limit);
+int idr_get_new_random(struct idr_context *idp, void *ptr, int limit);
+void *idr_find(struct idr_context *idp, int id);
+int idr_remove(struct idr_context *idp, int id);
+