File indexing completed on 2025-12-16 10:17:39
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #ifndef __G_BOXED_H__
0020 #define __G_BOXED_H__
0021
0022 #if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
0023 #error "Only <glib-object.h> can be included directly."
0024 #endif
0025
0026 #include <gobject/gtype.h>
0027
0028 #ifndef __GI_SCANNER__
0029 #include <gobject/glib-types.h>
0030 #endif
0031
0032 G_BEGIN_DECLS
0033
0034
0035 #define G_TYPE_IS_BOXED(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_BOXED)
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045 #define G_VALUE_HOLDS_BOXED(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_BOXED))
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058 typedef gpointer (*GBoxedCopyFunc) (gpointer boxed);
0059
0060
0061
0062
0063
0064
0065
0066
0067 typedef void (*GBoxedFreeFunc) (gpointer boxed);
0068
0069
0070
0071 GOBJECT_AVAILABLE_IN_ALL
0072 gpointer g_boxed_copy (GType boxed_type,
0073 gconstpointer src_boxed);
0074 GOBJECT_AVAILABLE_IN_ALL
0075 void g_boxed_free (GType boxed_type,
0076 gpointer boxed);
0077 GOBJECT_AVAILABLE_IN_ALL
0078 void g_value_set_boxed (GValue *value,
0079 gconstpointer v_boxed);
0080 GOBJECT_AVAILABLE_IN_ALL
0081 void g_value_set_static_boxed (GValue *value,
0082 gconstpointer v_boxed);
0083 GOBJECT_AVAILABLE_IN_ALL
0084 void g_value_take_boxed (GValue *value,
0085 gconstpointer v_boxed);
0086 GOBJECT_DEPRECATED_FOR(g_value_take_boxed)
0087 void g_value_set_boxed_take_ownership (GValue *value,
0088 gconstpointer v_boxed);
0089 GOBJECT_AVAILABLE_IN_ALL
0090 gpointer g_value_get_boxed (const GValue *value);
0091 GOBJECT_AVAILABLE_IN_ALL
0092 gpointer g_value_dup_boxed (const GValue *value);
0093
0094
0095
0096 GOBJECT_AVAILABLE_IN_ALL
0097 GType g_boxed_type_register_static (const gchar *name,
0098 GBoxedCopyFunc boxed_copy,
0099 GBoxedFreeFunc boxed_free);
0100
0101
0102
0103
0104
0105
0106
0107 #define G_TYPE_CLOSURE (g_closure_get_type ())
0108
0109
0110
0111
0112
0113
0114
0115 #define G_TYPE_VALUE (g_value_get_type ())
0116
0117 GOBJECT_AVAILABLE_IN_ALL
0118 GType g_closure_get_type (void) G_GNUC_CONST;
0119 GOBJECT_AVAILABLE_IN_ALL
0120 GType g_value_get_type (void) G_GNUC_CONST;
0121
0122 G_END_DECLS
0123
0124 #endif