Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gallocator.h File Reference
#include <glib/gtypes.h>

Go to the source code of this file.

Macros

#define G_ALLOC_ONLY   1
 
#define G_ALLOC_AND_FREE   2
 
#define G_ALLOCATOR_LIST   1
 
#define G_ALLOCATOR_SLIST   2
 
#define G_ALLOCATOR_NODE   3
 
#define g_chunk_new(type, chunk)   ((type *) g_mem_chunk_alloc (chunk))
 
#define g_chunk_new0(type, chunk)   ((type *) g_mem_chunk_alloc0 (chunk))
 
#define g_chunk_free(mem, mem_chunk)   (g_mem_chunk_free (mem_chunk, mem))
 
#define g_mem_chunk_create(type, x, y)   (g_mem_chunk_new (NULL, sizeof (type), 0, 0))
 

Typedefs

typedef typedefG_BEGIN_DECLS struct _GAllocator GAllocator
 
typedef struct _GMemChunk GMemChunk
 

Functions

GLIB_DEPRECATED GMemChunkg_mem_chunk_new (const gchar *name, gint atom_size, gsize area_size, gint type)
 
GLIB_DEPRECATED void g_mem_chunk_destroy (GMemChunk *mem_chunk)
 
GLIB_DEPRECATED gpointer g_mem_chunk_alloc (GMemChunk *mem_chunk)
 
GLIB_DEPRECATED gpointer g_mem_chunk_alloc0 (GMemChunk *mem_chunk)
 
GLIB_DEPRECATED void g_mem_chunk_free (GMemChunk *mem_chunk, gpointer mem)
 
GLIB_DEPRECATED void g_mem_chunk_clean (GMemChunk *mem_chunk)
 
GLIB_DEPRECATED void g_mem_chunk_reset (GMemChunk *mem_chunk)
 
GLIB_DEPRECATED void g_mem_chunk_print (GMemChunk *mem_chunk)
 
GLIB_DEPRECATED void g_mem_chunk_info (void)
 
GLIB_DEPRECATED void g_blow_chunks (void)
 
GLIB_DEPRECATED GAllocatorg_allocator_new (const gchar *name, guint n_preallocs)
 
GLIB_DEPRECATED void g_allocator_free (GAllocator *allocator)
 
GLIB_DEPRECATED void g_list_push_allocator (GAllocator *allocator)
 
GLIB_DEPRECATED void g_list_pop_allocator (void)
 
GLIB_DEPRECATED void g_slist_push_allocator (GAllocator *allocator)
 
GLIB_DEPRECATED void g_slist_pop_allocator (void)
 
GLIB_DEPRECATED void g_node_push_allocator (GAllocator *allocator)
 
GLIB_DEPRECATED void g_node_pop_allocator (void)
 

Macro Definition Documentation

◆ G_ALLOC_AND_FREE

#define G_ALLOC_AND_FREE   2

Definition at line 31 of file gallocator.h.

◆ G_ALLOC_ONLY

#define G_ALLOC_ONLY   1

Definition at line 30 of file gallocator.h.

◆ G_ALLOCATOR_LIST

#define G_ALLOCATOR_LIST   1

Definition at line 32 of file gallocator.h.

◆ G_ALLOCATOR_NODE

#define G_ALLOCATOR_NODE   3

Definition at line 34 of file gallocator.h.

◆ G_ALLOCATOR_SLIST

#define G_ALLOCATOR_SLIST   2

Definition at line 33 of file gallocator.h.

◆ g_chunk_free

#define g_chunk_free ( mem,
mem_chunk )   (g_mem_chunk_free (mem_chunk, mem))

Definition at line 38 of file gallocator.h.

◆ g_chunk_new

#define g_chunk_new ( type,
chunk )   ((type *) g_mem_chunk_alloc (chunk))

Definition at line 36 of file gallocator.h.

◆ g_chunk_new0

#define g_chunk_new0 ( type,
chunk )   ((type *) g_mem_chunk_alloc0 (chunk))

Definition at line 37 of file gallocator.h.

◆ g_mem_chunk_create

#define g_mem_chunk_create ( type,
x,
y )   (g_mem_chunk_new (NULL, sizeof (type), 0, 0))

Definition at line 39 of file gallocator.h.

Typedef Documentation

◆ GAllocator

typedef typedefG_BEGIN_DECLS struct _GAllocator GAllocator

Definition at line 27 of file gallocator.h.

◆ GMemChunk

typedef struct _GMemChunk GMemChunk

Definition at line 28 of file gallocator.h.

Function Documentation

◆ g_allocator_free()

GLIB_DEPRECATED void g_allocator_free ( GAllocator * allocator)

◆ g_allocator_new()

GLIB_DEPRECATED GAllocator * g_allocator_new ( const gchar * name,
guint n_preallocs )

◆ g_blow_chunks()

GLIB_DEPRECATED void g_blow_chunks ( void )

◆ g_list_pop_allocator()

GLIB_DEPRECATED void g_list_pop_allocator ( void )

◆ g_list_push_allocator()

GLIB_DEPRECATED void g_list_push_allocator ( GAllocator * allocator)

◆ g_mem_chunk_alloc()

GLIB_DEPRECATED gpointer g_mem_chunk_alloc ( GMemChunk * mem_chunk)

◆ g_mem_chunk_alloc0()

GLIB_DEPRECATED gpointer g_mem_chunk_alloc0 ( GMemChunk * mem_chunk)

◆ g_mem_chunk_clean()

GLIB_DEPRECATED void g_mem_chunk_clean ( GMemChunk * mem_chunk)

◆ g_mem_chunk_destroy()

GLIB_DEPRECATED void g_mem_chunk_destroy ( GMemChunk * mem_chunk)

◆ g_mem_chunk_free()

GLIB_DEPRECATED void g_mem_chunk_free ( GMemChunk * mem_chunk,
gpointer mem )

◆ g_mem_chunk_info()

GLIB_DEPRECATED void g_mem_chunk_info ( void )

◆ g_mem_chunk_new()

GLIB_DEPRECATED GMemChunk * g_mem_chunk_new ( const gchar * name,
gint atom_size,
gsize area_size,
gint type )

◆ g_mem_chunk_print()

GLIB_DEPRECATED void g_mem_chunk_print ( GMemChunk * mem_chunk)

◆ g_mem_chunk_reset()

GLIB_DEPRECATED void g_mem_chunk_reset ( GMemChunk * mem_chunk)

◆ g_node_pop_allocator()

GLIB_DEPRECATED void g_node_pop_allocator ( void )

◆ g_node_push_allocator()

GLIB_DEPRECATED void g_node_push_allocator ( GAllocator * allocator)

◆ g_slist_pop_allocator()

GLIB_DEPRECATED void g_slist_pop_allocator ( void )

◆ g_slist_push_allocator()

GLIB_DEPRECATED void g_slist_push_allocator ( GAllocator * allocator)