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

Go to the source code of this file.

Macros

#define g_rc_box_new(type)    ((type *) g_rc_box_alloc (sizeof (type)))
 
#define g_rc_box_new0(type)    ((type *) g_rc_box_alloc0 (sizeof (type)))
 
#define g_atomic_rc_box_new(type)    ((type *) g_atomic_rc_box_alloc (sizeof (type)))
 
#define g_atomic_rc_box_new0(type)    ((type *) g_atomic_rc_box_alloc0 (sizeof (type)))
 

Functions

G_BEGIN_DECLS GLIB_AVAILABLE_IN_2_58 gpointer g_rc_box_alloc (gsize block_size) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1)
 
GLIB_AVAILABLE_IN_2_58 gpointer g_rc_box_alloc0 (gsize block_size) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1)
 
GLIB_AVAILABLE_IN_2_58 gpointer g_rc_box_dup (gsize block_size, gconstpointer mem_block) G_GNUC_ALLOC_SIZE(1)
 
GLIB_AVAILABLE_IN_2_58 gpointer g_rc_box_acquire (gpointer mem_block)
 
GLIB_AVAILABLE_IN_2_58 void g_rc_box_release (gpointer mem_block)
 
GLIB_AVAILABLE_IN_2_58 void g_rc_box_release_full (gpointer mem_block, GDestroyNotify clear_func)
 
GLIB_AVAILABLE_IN_2_58 gsize g_rc_box_get_size (gpointer mem_block)
 
GLIB_AVAILABLE_IN_2_58 gpointer g_atomic_rc_box_alloc (gsize block_size) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1)
 
GLIB_AVAILABLE_IN_2_58 gpointer g_atomic_rc_box_alloc0 (gsize block_size) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1)
 
GLIB_AVAILABLE_IN_2_58 gpointer g_atomic_rc_box_dup (gsize block_size, gconstpointer mem_block) G_GNUC_ALLOC_SIZE(1)
 
GLIB_AVAILABLE_IN_2_58 gpointer g_atomic_rc_box_acquire (gpointer mem_block)
 
GLIB_AVAILABLE_IN_2_58 void g_atomic_rc_box_release (gpointer mem_block)
 
GLIB_AVAILABLE_IN_2_58 void g_atomic_rc_box_release_full (gpointer mem_block, GDestroyNotify clear_func)
 
GLIB_AVAILABLE_IN_2_58 gsize g_atomic_rc_box_get_size (gpointer mem_block)
 

Macro Definition Documentation

◆ g_atomic_rc_box_new

#define g_atomic_rc_box_new ( type)     ((type *) g_atomic_rc_box_alloc (sizeof (type)))

Definition at line 72 of file grcbox.h.

72#define g_atomic_rc_box_new(type) \
73 ((type *) g_atomic_rc_box_alloc (sizeof (type)))

◆ g_atomic_rc_box_new0

#define g_atomic_rc_box_new0 ( type)     ((type *) g_atomic_rc_box_alloc0 (sizeof (type)))

Definition at line 74 of file grcbox.h.

74#define g_atomic_rc_box_new0(type) \
75 ((type *) g_atomic_rc_box_alloc0 (sizeof (type)))

◆ g_rc_box_new

#define g_rc_box_new ( type)     ((type *) g_rc_box_alloc (sizeof (type)))

Definition at line 68 of file grcbox.h.

68#define g_rc_box_new(type) \
69 ((type *) g_rc_box_alloc (sizeof (type)))

◆ g_rc_box_new0

#define g_rc_box_new0 ( type)     ((type *) g_rc_box_alloc0 (sizeof (type)))

Definition at line 70 of file grcbox.h.

70#define g_rc_box_new0(type) \
71 ((type *) g_rc_box_alloc0 (sizeof (type)))

Function Documentation

◆ g_atomic_rc_box_acquire()

GLIB_AVAILABLE_IN_2_58 gpointer g_atomic_rc_box_acquire ( gpointer mem_block)

◆ g_atomic_rc_box_alloc()

GLIB_AVAILABLE_IN_2_58 gpointer g_atomic_rc_box_alloc ( gsize block_size)

◆ g_atomic_rc_box_alloc0()

GLIB_AVAILABLE_IN_2_58 gpointer g_atomic_rc_box_alloc0 ( gsize block_size)

◆ g_atomic_rc_box_dup()

GLIB_AVAILABLE_IN_2_58 gpointer g_atomic_rc_box_dup ( gsize block_size,
gconstpointer mem_block )

◆ g_atomic_rc_box_get_size()

GLIB_AVAILABLE_IN_2_58 gsize g_atomic_rc_box_get_size ( gpointer mem_block)

◆ g_atomic_rc_box_release()

GLIB_AVAILABLE_IN_2_58 void g_atomic_rc_box_release ( gpointer mem_block)

◆ g_atomic_rc_box_release_full()

GLIB_AVAILABLE_IN_2_58 void g_atomic_rc_box_release_full ( gpointer mem_block,
GDestroyNotify clear_func )

◆ g_rc_box_acquire()

GLIB_AVAILABLE_IN_2_58 gpointer g_rc_box_acquire ( gpointer mem_block)

◆ g_rc_box_alloc()

G_BEGIN_DECLS GLIB_AVAILABLE_IN_2_58 gpointer g_rc_box_alloc ( gsize block_size)

◆ g_rc_box_alloc0()

GLIB_AVAILABLE_IN_2_58 gpointer g_rc_box_alloc0 ( gsize block_size)

◆ g_rc_box_dup()

GLIB_AVAILABLE_IN_2_58 gpointer g_rc_box_dup ( gsize block_size,
gconstpointer mem_block )

◆ g_rc_box_get_size()

GLIB_AVAILABLE_IN_2_58 gsize g_rc_box_get_size ( gpointer mem_block)

◆ g_rc_box_release()

GLIB_AVAILABLE_IN_2_58 void g_rc_box_release ( gpointer mem_block)

◆ g_rc_box_release_full()

GLIB_AVAILABLE_IN_2_58 void g_rc_box_release_full ( gpointer mem_block,
GDestroyNotify clear_func )