avahi  0.7
glib-malloc.h File Reference

GLib's memory allocator for Avahi. More...

#include <glib.h>
#include <avahi-common/cdecl.h>
#include <avahi-common/malloc.h>

Go to the source code of this file.

Functions

const AvahiAllocatoravahi_glib_allocator (void)
 Return a pointer to a memory allocator that uses GLib's g_malloc() and friends. More...
 

Detailed Description

GLib's memory allocator for Avahi.

Definition in file glib-malloc.h.

Function Documentation

◆ avahi_glib_allocator()

const AvahiAllocator* avahi_glib_allocator ( void  )

Return a pointer to a memory allocator that uses GLib's g_malloc() and friends.

The returned structure is statically allocated, and needs not to be copied or freed. Pass this directly to avahi_set_allocator().

Examples:
glib-integration.c.