Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gboxed.h File Reference
#include <gobject/gtype.h>
#include <gobject/glib-types.h>

Go to the source code of this file.

Macros

#define G_TYPE_IS_BOXED(type)   (G_TYPE_FUNDAMENTAL (type) == G_TYPE_BOXED)
 
#define G_VALUE_HOLDS_BOXED(value)   (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_BOXED))
 
#define G_TYPE_CLOSURE   (g_closure_get_type ())
 
#define G_TYPE_VALUE   (g_value_get_type ())
 

Typedefs

typedef gpointer(* GBoxedCopyFunc) (gpointer boxed)
 
typedef void(* GBoxedFreeFunc) (gpointer boxed)
 

Functions

GOBJECT_AVAILABLE_IN_ALL gpointer g_boxed_copy (GType boxed_type, gconstpointer src_boxed)
 
GOBJECT_AVAILABLE_IN_ALL void g_boxed_free (GType boxed_type, gpointer boxed)
 
GOBJECT_AVAILABLE_IN_ALL void g_value_set_boxed (GValue *value, gconstpointer v_boxed)
 
GOBJECT_AVAILABLE_IN_ALL void g_value_set_static_boxed (GValue *value, gconstpointer v_boxed)
 
GOBJECT_AVAILABLE_IN_ALL void g_value_take_boxed (GValue *value, gconstpointer v_boxed)
 
void g_value_set_boxed_take_ownership (GValue *value, gconstpointer v_boxed)
 
GOBJECT_AVAILABLE_IN_ALL gpointer g_value_get_boxed (const GValue *value)
 
GOBJECT_AVAILABLE_IN_ALL gpointer g_value_dup_boxed (const GValue *value)
 
GOBJECT_AVAILABLE_IN_ALL GType g_boxed_type_register_static (const gchar *name, GBoxedCopyFunc boxed_copy, GBoxedFreeFunc boxed_free)
 
GOBJECT_AVAILABLE_IN_ALL GType g_closure_get_type (void) G_GNUC_CONST
 
GOBJECT_AVAILABLE_IN_ALL GType g_value_get_type (void) G_GNUC_CONST
 

Macro Definition Documentation

◆ G_TYPE_CLOSURE

#define G_TYPE_CLOSURE   (g_closure_get_type ())

G_TYPE_CLOSURE:

The GType for GClosure.

Definition at line 107 of file gboxed.h.

◆ G_TYPE_IS_BOXED

#define G_TYPE_IS_BOXED ( type)    (G_TYPE_FUNDAMENTAL (type) == G_TYPE_BOXED)

Definition at line 35 of file gboxed.h.

◆ G_TYPE_VALUE

#define G_TYPE_VALUE   (g_value_get_type ())

G_TYPE_VALUE:

The type ID of the "GValue" type which is a boxed type, used to pass around pointers to GValues.

Definition at line 115 of file gboxed.h.

◆ G_VALUE_HOLDS_BOXED

#define G_VALUE_HOLDS_BOXED ( value)    (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_BOXED))

G_VALUE_HOLDS_BOXED: @value: a valid GValue structure

Checks whether the given GValue can hold values derived from type G_TYPE_BOXED.

Returns: TRUE on success.

Definition at line 45 of file gboxed.h.

Typedef Documentation

◆ GBoxedCopyFunc

typedef gpointer(* GBoxedCopyFunc) (gpointer boxed)

GBoxedCopyFunc: @boxed: (not nullable): The boxed structure to be copied.

This function is provided by the user and should produce a copy of the passed in boxed structure.

Returns: (not nullable): The newly created copy of the boxed structure.

Definition at line 58 of file gboxed.h.

◆ GBoxedFreeFunc

typedef void(* GBoxedFreeFunc) (gpointer boxed)

GBoxedFreeFunc: @boxed: (not nullable): The boxed structure to be freed.

This function is provided by the user and should free the boxed structure passed.

Definition at line 67 of file gboxed.h.

Function Documentation

◆ g_boxed_copy()

GOBJECT_AVAILABLE_IN_ALL gpointer g_boxed_copy ( GType boxed_type,
gconstpointer src_boxed )

◆ g_boxed_free()

GOBJECT_AVAILABLE_IN_ALL void g_boxed_free ( GType boxed_type,
gpointer boxed )

◆ g_boxed_type_register_static()

GOBJECT_AVAILABLE_IN_ALL GType g_boxed_type_register_static ( const gchar * name,
GBoxedCopyFunc boxed_copy,
GBoxedFreeFunc boxed_free )

◆ g_closure_get_type()

GOBJECT_AVAILABLE_IN_ALL GType g_closure_get_type ( void )

◆ g_value_dup_boxed()

GOBJECT_AVAILABLE_IN_ALL gpointer g_value_dup_boxed ( const GValue * value)

◆ g_value_get_boxed()

GOBJECT_AVAILABLE_IN_ALL gpointer g_value_get_boxed ( const GValue * value)

◆ g_value_get_type()

GOBJECT_AVAILABLE_IN_ALL GType g_value_get_type ( void )

◆ g_value_set_boxed()

GOBJECT_AVAILABLE_IN_ALL void g_value_set_boxed ( GValue * value,
gconstpointer v_boxed )

◆ g_value_set_boxed_take_ownership()

void g_value_set_boxed_take_ownership ( GValue * value,
gconstpointer v_boxed )

◆ g_value_set_static_boxed()

GOBJECT_AVAILABLE_IN_ALL void g_value_set_static_boxed ( GValue * value,
gconstpointer v_boxed )

◆ g_value_take_boxed()

GOBJECT_AVAILABLE_IN_ALL void g_value_take_boxed ( GValue * value,
gconstpointer v_boxed )