summaryrefslogtreecommitdiff
path: root/source3/include/talloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/talloc.h')
-rw-r--r--source3/include/talloc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/include/talloc.h b/source3/include/talloc.h
index 89c2f82e05..8e20cc028a 100644
--- a/source3/include/talloc.h
+++ b/source3/include/talloc.h
@@ -5,6 +5,7 @@
Version 3.0
Samba temporary memory allocation functions
Copyright (C) Andrew Tridgell 2000
+ Copyright (C) 2001 by Martin Pool <mbp@samba.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -27,9 +28,18 @@ struct talloc_chunk {
void *ptr;
};
+
+/**
+ * talloc allocation pool. All allocated blocks can be freed in one go.
+ **/
typedef struct {
struct talloc_chunk *list;
size_t total_alloc_size;
+
+ /** The name recorded for this pool, if any. Should describe
+ * the purpose for which it was allocated. The string is
+ * allocated within the pool. **/
+ char *name;
} TALLOC_CTX;
#endif