]> git.meshlink.io Git - catta/blobdiff - avahi-common/malloc.h
* implement hashmap
[catta] / avahi-common / malloc.h
index 2dd740e10e2525528b2bb864ef4c7f8ec2b716b9..b6583574aac6db5394ee6a7632eb28bff92d159f 100644 (file)
@@ -53,7 +53,10 @@ void *avahi_realloc(void *p, size_t size);
 char *avahi_strdup(const char *s);
 
 /** Just like libc's strndup() */
-char *avahi_strndup(const char *s, size_t l); 
+char *avahi_strndup(const char *s, size_t l);
+
+/** Duplicate the given memory block into a new one allocated with avahi_malloc() */
+void *avahi_memdup(const void *s, size_t l);
 
 /** Wraps allocator functions */
 typedef struct AvahiAllocator AvahiAllocator;