diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-10-26 01:21:30 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-10-26 01:21:30 +0000 |
commit | 6efe2615e04c6ef664fa9d49b013e261ba1e6e66 (patch) | |
tree | a3cebc28b7dadadeed0dc5ace0543fa6d6f41a00 /avahi-common/malloc.h | |
parent | c3575017e2137ef664e4735bd6f9ff1209653ef3 (diff) |
* remove lots of DOXYGEN_SHOULD_SKIP_THIS from the header files, use doxygen macro expansion instead
* split of exotic functions from avahi-core/rr.h to avahi-core/rr-util.h
* update doxygen docs
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@872 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common/malloc.h')
-rw-r--r-- | avahi-common/malloc.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/avahi-common/malloc.h b/avahi-common/malloc.h index d0e620a..d911a3a 100644 --- a/avahi-common/malloc.h +++ b/avahi-common/malloc.h @@ -60,15 +60,12 @@ char *avahi_strndup(const char *s, size_t l); void *avahi_memdup(const void *s, size_t l); /** Wraps allocator functions */ -typedef struct AvahiAllocator AvahiAllocator; - -/** Wraps allocator functions */ -struct AvahiAllocator { +typedef struct AvahiAllocator { void* (*malloc)(size_t size); void (*free)(void *p); void* (*realloc)(void *p, size_t size); void* (*calloc)(size_t nmemb, size_t size); /**< May be NULL */ -}; +} AvahiAllocator; /** Change the allocator. May be NULL to return to default (libc) * allocators. The structure is not copied! */ |