commit | 9bb796f33ac67abdf6c0bf55a06b0d8448caa3d3 | [log] [tgz] |
---|---|---|
author | Carl Worth <cworth@cworth.org> | Tue May 25 14:40:47 2010 -0700 |
committer | Carl Worth <cworth@cworth.org> | Tue May 25 14:40:47 2010 -0700 |
tree | befa02f5970009d94154a652d8ca7c5e96e5b017 | |
parent | 3ff81670848abb29b92e78f45080ad36cc85001c [diff] [blame] |
Add xtalloc_reference. Yet another talloc wrapper that should come in handy.
diff --git a/glcpp.h b/glcpp.h index 503731b..6171ce8 100644 --- a/glcpp.h +++ b/glcpp.h
@@ -164,4 +164,10 @@ char * xtalloc_asprintf (const void *t, const char *fmt, ...); +void * +_xtalloc_reference_loc (const void *context, + const void *ptr, const char *location); + +#define xtalloc_reference(ctx, ptr) (_TALLOC_TYPEOF(ptr))_xtalloc_reference_loc((ctx),(ptr), __location__) + #endif