mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
various: add GLIB_AVAILABLE_IN_ALL everywhere else
Add the GLIB_AVAILABLE_IN_ALL annotation to all old functions (that haven't already been annotated with the GLIB_AVAILABLE_IN_* macros or a deprecation macro). If we discover in the future that we cannot use only one macro on Windows, it will be an easy sed patch to fix that. https://bugzilla.gnome.org/show_bug.cgi?id=688681
This commit is contained in:
@@ -100,20 +100,29 @@ typedef enum { /*< prefix=G_BINDING >*/
|
||||
G_BINDING_INVERT_BOOLEAN = 1 << 2
|
||||
} GBindingFlags;
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_binding_flags_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_binding_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GBindingFlags g_binding_get_flags (GBinding *binding);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GObject * g_binding_get_source (GBinding *binding);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GObject * g_binding_get_target (GBinding *binding);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
const gchar * g_binding_get_source_property (GBinding *binding);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
const gchar * g_binding_get_target_property (GBinding *binding);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GBinding *g_object_bind_property (gpointer source,
|
||||
const gchar *source_property,
|
||||
gpointer target,
|
||||
const gchar *target_property,
|
||||
GBindingFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GBinding *g_object_bind_property_full (gpointer source,
|
||||
const gchar *source_property,
|
||||
gpointer target,
|
||||
@@ -123,6 +132,7 @@ GBinding *g_object_bind_property_full (gpointer source,
|
||||
GBindingTransformFunc transform_from,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GBinding *g_object_bind_property_with_closures (gpointer source,
|
||||
const gchar *source_property,
|
||||
gpointer target,
|
||||
|
@@ -68,24 +68,32 @@ typedef void (*GBoxedFreeFunc) (gpointer boxed);
|
||||
|
||||
|
||||
/* --- prototypes --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_boxed_copy (GType boxed_type,
|
||||
gconstpointer src_boxed);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_boxed_free (GType boxed_type,
|
||||
gpointer boxed);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_boxed (GValue *value,
|
||||
gconstpointer v_boxed);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_static_boxed (GValue *value,
|
||||
gconstpointer v_boxed);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_take_boxed (GValue *value,
|
||||
gconstpointer v_boxed);
|
||||
GLIB_DEPRECATED_FOR(g_value_take_boxed)
|
||||
void g_value_set_boxed_take_ownership (GValue *value,
|
||||
gconstpointer v_boxed);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_value_get_boxed (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_value_dup_boxed (const GValue *value);
|
||||
|
||||
|
||||
/* --- convenience --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_boxed_type_register_static (const gchar *name,
|
||||
GBoxedCopyFunc boxed_copy,
|
||||
GBoxedFreeFunc boxed_free);
|
||||
@@ -106,7 +114,9 @@ GType g_boxed_type_register_static (const gchar *name,
|
||||
*/
|
||||
#define G_TYPE_VALUE (g_value_get_type ())
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_closure_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_value_get_type (void) G_GNUC_CONST;
|
||||
|
||||
G_END_DECLS
|
||||
|
@@ -203,46 +203,62 @@ struct _GCClosure
|
||||
|
||||
|
||||
/* --- prototypes --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GClosure* g_cclosure_new (GCallback callback_func,
|
||||
gpointer user_data,
|
||||
GClosureNotify destroy_data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GClosure* g_cclosure_new_swap (GCallback callback_func,
|
||||
gpointer user_data,
|
||||
GClosureNotify destroy_data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GClosure* g_signal_type_cclosure_new (GType itype,
|
||||
guint struct_offset);
|
||||
|
||||
|
||||
/* --- prototypes --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GClosure* g_closure_ref (GClosure *closure);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_closure_sink (GClosure *closure);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_closure_unref (GClosure *closure);
|
||||
/* intimidating */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GClosure* g_closure_new_simple (guint sizeof_closure,
|
||||
gpointer data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_closure_add_finalize_notifier (GClosure *closure,
|
||||
gpointer notify_data,
|
||||
GClosureNotify notify_func);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_closure_remove_finalize_notifier (GClosure *closure,
|
||||
gpointer notify_data,
|
||||
GClosureNotify notify_func);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_closure_add_invalidate_notifier (GClosure *closure,
|
||||
gpointer notify_data,
|
||||
GClosureNotify notify_func);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_closure_remove_invalidate_notifier (GClosure *closure,
|
||||
gpointer notify_data,
|
||||
GClosureNotify notify_func);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_closure_add_marshal_guards (GClosure *closure,
|
||||
gpointer pre_marshal_data,
|
||||
GClosureNotify pre_marshal_notify,
|
||||
gpointer post_marshal_data,
|
||||
GClosureNotify post_marshal_notify);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_closure_set_marshal (GClosure *closure,
|
||||
GClosureMarshal marshal);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_closure_set_meta_marshal (GClosure *closure,
|
||||
gpointer marshal_data,
|
||||
GClosureMarshal meta_marshal);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_closure_invalidate (GClosure *closure);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_closure_invoke (GClosure *closure,
|
||||
GValue /*out*/ *return_value,
|
||||
guint n_param_values,
|
||||
@@ -260,6 +276,7 @@ void g_closure_invoke (GClosure *closure,
|
||||
- provide marshaller collection, virtually covering anything out there
|
||||
*/
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_cclosure_marshal_generic (GClosure *closure,
|
||||
GValue *return_gvalue,
|
||||
guint n_param_values,
|
||||
@@ -267,6 +284,7 @@ void g_cclosure_marshal_generic (GClosure *closure,
|
||||
gpointer invocation_hint,
|
||||
gpointer marshal_data);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_cclosure_marshal_generic_va (GClosure *closure,
|
||||
GValue *return_value,
|
||||
gpointer instance,
|
||||
|
@@ -217,23 +217,33 @@ struct _GFlagsValue
|
||||
|
||||
|
||||
/* --- prototypes --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GEnumValue* g_enum_get_value (GEnumClass *enum_class,
|
||||
gint value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GEnumValue* g_enum_get_value_by_name (GEnumClass *enum_class,
|
||||
const gchar *name);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GEnumValue* g_enum_get_value_by_nick (GEnumClass *enum_class,
|
||||
const gchar *nick);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GFlagsValue* g_flags_get_first_value (GFlagsClass *flags_class,
|
||||
guint value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GFlagsValue* g_flags_get_value_by_name (GFlagsClass *flags_class,
|
||||
const gchar *name);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GFlagsValue* g_flags_get_value_by_nick (GFlagsClass *flags_class,
|
||||
const gchar *nick);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_enum (GValue *value,
|
||||
gint v_enum);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gint g_value_get_enum (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_flags (GValue *value,
|
||||
guint v_flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guint g_value_get_flags (const GValue *value);
|
||||
|
||||
|
||||
@@ -242,16 +252,20 @@ guint g_value_get_flags (const GValue *value);
|
||||
/* const_static_values is a NULL terminated array of enum/flags
|
||||
* values that is taken over!
|
||||
*/
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_enum_register_static (const gchar *name,
|
||||
const GEnumValue *const_static_values);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_flags_register_static (const gchar *name,
|
||||
const GFlagsValue *const_static_values);
|
||||
/* functions to complete the type information
|
||||
* for enums/flags implemented by plugins
|
||||
*/
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_enum_complete_type_info (GType g_enum_type,
|
||||
GTypeInfo *info,
|
||||
const GEnumValue *const_values);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_flags_complete_type_info (GType g_flags_type,
|
||||
GTypeInfo *info,
|
||||
const GFlagsValue *const_values);
|
||||
|
@@ -272,24 +272,41 @@ typedef gsize GType;
|
||||
*/
|
||||
#define G_TYPE_CHECKSUM (g_checksum_get_type ())
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_date_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_strv_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_gstring_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_hash_table_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_array_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_byte_array_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_ptr_array_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_bytes_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_variant_type_get_gtype (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_regex_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_2_30
|
||||
GType g_match_info_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_error_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_date_time_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_time_zone_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_io_channel_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_io_condition_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_variant_builder_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_key_file_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_2_30
|
||||
GType g_main_loop_get_type (void) G_GNUC_CONST;
|
||||
|
@@ -380,80 +380,113 @@ struct _GObjectConstructParam
|
||||
|
||||
|
||||
/* --- prototypes --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_initially_unowned_get_type (void);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_class_install_property (GObjectClass *oclass,
|
||||
guint property_id,
|
||||
GParamSpec *pspec);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_object_class_find_property (GObjectClass *oclass,
|
||||
const gchar *property_name);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec**g_object_class_list_properties (GObjectClass *oclass,
|
||||
guint *n_properties);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_class_override_property (GObjectClass *oclass,
|
||||
guint property_id,
|
||||
const gchar *name);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_class_install_properties (GObjectClass *oclass,
|
||||
guint n_pspecs,
|
||||
GParamSpec **pspecs);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_interface_install_property (gpointer g_iface,
|
||||
GParamSpec *pspec);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_object_interface_find_property (gpointer g_iface,
|
||||
const gchar *property_name);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec**g_object_interface_list_properties (gpointer g_iface,
|
||||
guint *n_properties_p);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_object_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_object_new (GType object_type,
|
||||
const gchar *first_property_name,
|
||||
...);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_object_newv (GType object_type,
|
||||
guint n_parameters,
|
||||
GParameter *parameters);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GObject* g_object_new_valist (GType object_type,
|
||||
const gchar *first_property_name,
|
||||
va_list var_args);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_set (gpointer object,
|
||||
const gchar *first_property_name,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_get (gpointer object,
|
||||
const gchar *first_property_name,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_object_connect (gpointer object,
|
||||
const gchar *signal_spec,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_disconnect (gpointer object,
|
||||
const gchar *signal_spec,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_set_valist (GObject *object,
|
||||
const gchar *first_property_name,
|
||||
va_list var_args);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_get_valist (GObject *object,
|
||||
const gchar *first_property_name,
|
||||
va_list var_args);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_set_property (GObject *object,
|
||||
const gchar *property_name,
|
||||
const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_get_property (GObject *object,
|
||||
const gchar *property_name,
|
||||
GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_freeze_notify (GObject *object);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_notify (GObject *object,
|
||||
const gchar *property_name);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_notify_by_pspec (GObject *object,
|
||||
GParamSpec *pspec);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_thaw_notify (GObject *object);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_object_is_floating (gpointer object);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_object_ref_sink (gpointer object);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_object_ref (gpointer object);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_unref (gpointer object);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_weak_ref (GObject *object,
|
||||
GWeakNotify notify,
|
||||
gpointer data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_weak_unref (GObject *object,
|
||||
GWeakNotify notify,
|
||||
gpointer data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_add_weak_pointer (GObject *object,
|
||||
gpointer *weak_pointer_location);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_remove_weak_pointer (GObject *object,
|
||||
gpointer *weak_pointer_location);
|
||||
|
||||
@@ -473,22 +506,28 @@ typedef void (*GToggleNotify) (gpointer data,
|
||||
GObject *object,
|
||||
gboolean is_last_ref);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_add_toggle_ref (GObject *object,
|
||||
GToggleNotify notify,
|
||||
gpointer data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_remove_toggle_ref (GObject *object,
|
||||
GToggleNotify notify,
|
||||
gpointer data);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_object_get_qdata (GObject *object,
|
||||
GQuark quark);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_set_qdata (GObject *object,
|
||||
GQuark quark,
|
||||
gpointer data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_set_qdata_full (GObject *object,
|
||||
GQuark quark,
|
||||
gpointer data,
|
||||
GDestroyNotify destroy);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_object_steal_qdata (GObject *object,
|
||||
GQuark quark);
|
||||
|
||||
@@ -505,15 +544,19 @@ gboolean g_object_replace_qdata (GObject *object,
|
||||
GDestroyNotify destroy,
|
||||
GDestroyNotify *old_destroy);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_object_get_data (GObject *object,
|
||||
const gchar *key);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_set_data (GObject *object,
|
||||
const gchar *key,
|
||||
gpointer data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_set_data_full (GObject *object,
|
||||
const gchar *key,
|
||||
gpointer data,
|
||||
GDestroyNotify destroy);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_object_steal_data (GObject *object,
|
||||
const gchar *key);
|
||||
|
||||
@@ -531,18 +574,26 @@ gboolean g_object_replace_data (GObject *object,
|
||||
GDestroyNotify *old_destroy);
|
||||
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_watch_closure (GObject *object,
|
||||
GClosure *closure);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GClosure* g_cclosure_new_object (GCallback callback_func,
|
||||
GObject *object);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GClosure* g_cclosure_new_object_swap (GCallback callback_func,
|
||||
GObject *object);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GClosure* g_closure_new_object (guint sizeof_closure,
|
||||
GObject *object);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_object (GValue *value,
|
||||
gpointer v_object);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_value_get_object (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_value_dup_object (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gulong g_signal_connect_object (gpointer instance,
|
||||
const gchar *detailed_signal,
|
||||
GCallback c_handler,
|
||||
@@ -550,10 +601,13 @@ gulong g_signal_connect_object (gpointer instance,
|
||||
GConnectFlags connect_flags);
|
||||
|
||||
/*< protected >*/
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_force_floating (GObject *object);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_run_dispose (GObject *object);
|
||||
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_take_object (GValue *value,
|
||||
gpointer v_object);
|
||||
GLIB_DEPRECATED_FOR(g_value_take_object)
|
||||
@@ -590,6 +644,7 @@ G_STMT_START { \
|
||||
#define G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec) \
|
||||
G_OBJECT_WARN_INVALID_PSPEC ((object), "property", (property_id), (pspec))
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_clear_object (volatile GObject **object_ptr);
|
||||
#define g_clear_object(object_ptr) g_clear_pointer ((object_ptr), g_object_unref)
|
||||
|
||||
@@ -598,10 +653,14 @@ typedef struct {
|
||||
union { gpointer p; } priv;
|
||||
} GWeakRef;
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_weak_ref_init (GWeakRef *weak_ref,
|
||||
gpointer object);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_weak_ref_clear (GWeakRef *weak_ref);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_weak_ref_get (GWeakRef *weak_ref);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_weak_ref_set (GWeakRef *weak_ref,
|
||||
gpointer object);
|
||||
|
||||
|
@@ -271,45 +271,66 @@ struct _GParameter /* auxiliary structure for _setv() variants */
|
||||
|
||||
|
||||
/* --- prototypes --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_ref (GParamSpec *pspec);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_param_spec_unref (GParamSpec *pspec);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_param_spec_sink (GParamSpec *pspec);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_ref_sink (GParamSpec *pspec);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_param_spec_get_qdata (GParamSpec *pspec,
|
||||
GQuark quark);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_param_spec_set_qdata (GParamSpec *pspec,
|
||||
GQuark quark,
|
||||
gpointer data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_param_spec_set_qdata_full (GParamSpec *pspec,
|
||||
GQuark quark,
|
||||
gpointer data,
|
||||
GDestroyNotify destroy);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_param_spec_steal_qdata (GParamSpec *pspec,
|
||||
GQuark quark);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_get_redirect_target (GParamSpec *pspec);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_param_value_set_default (GParamSpec *pspec,
|
||||
GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_param_value_defaults (GParamSpec *pspec,
|
||||
GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_param_value_validate (GParamSpec *pspec,
|
||||
GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_param_value_convert (GParamSpec *pspec,
|
||||
const GValue *src_value,
|
||||
GValue *dest_value,
|
||||
gboolean strict_validation);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gint g_param_values_cmp (GParamSpec *pspec,
|
||||
const GValue *value1,
|
||||
const GValue *value2);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
const gchar * g_param_spec_get_name (GParamSpec *pspec);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
const gchar * g_param_spec_get_nick (GParamSpec *pspec);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
const gchar * g_param_spec_get_blurb (GParamSpec *pspec);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_param (GValue *value,
|
||||
GParamSpec *param);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_value_get_param (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_value_dup_param (const GValue *value);
|
||||
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_take_param (GValue *value,
|
||||
GParamSpec *param);
|
||||
GLIB_DEPRECATED_FOR(g_value_take_param)
|
||||
@@ -360,6 +381,7 @@ struct _GParamSpecTypeInfo
|
||||
const GValue *value1,
|
||||
const GValue *value2);
|
||||
};
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_param_type_register_static (const gchar *name,
|
||||
const GParamSpecTypeInfo *pspec_info);
|
||||
|
||||
@@ -370,23 +392,30 @@ GType _g_param_type_register_static_constant (const gchar *name,
|
||||
|
||||
|
||||
/* --- protected --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_param_spec_internal (GType param_type,
|
||||
const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpecPool* g_param_spec_pool_new (gboolean type_prefixing);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_param_spec_pool_insert (GParamSpecPool *pool,
|
||||
GParamSpec *pspec,
|
||||
GType owner_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_param_spec_pool_remove (GParamSpecPool *pool,
|
||||
GParamSpec *pspec);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_pool_lookup (GParamSpecPool *pool,
|
||||
const gchar *param_name,
|
||||
GType owner_type,
|
||||
gboolean walk_ancestors);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GList* g_param_spec_pool_list_owned (GParamSpecPool *pool,
|
||||
GType owner_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec** g_param_spec_pool_list (GParamSpecPool *pool,
|
||||
GType owner_type,
|
||||
guint *n_pspecs_p);
|
||||
|
@@ -977,6 +977,7 @@ struct _GParamSpecVariant
|
||||
};
|
||||
|
||||
/* --- GParamSpec prototypes --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_char (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
@@ -984,6 +985,7 @@ GParamSpec* g_param_spec_char (const gchar *name,
|
||||
gint8 maximum,
|
||||
gint8 default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_uchar (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
@@ -991,11 +993,13 @@ GParamSpec* g_param_spec_uchar (const gchar *name,
|
||||
guint8 maximum,
|
||||
guint8 default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_boolean (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
gboolean default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_int (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
@@ -1003,6 +1007,7 @@ GParamSpec* g_param_spec_int (const gchar *name,
|
||||
gint maximum,
|
||||
gint default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_uint (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
@@ -1010,6 +1015,7 @@ GParamSpec* g_param_spec_uint (const gchar *name,
|
||||
guint maximum,
|
||||
guint default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_long (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
@@ -1017,6 +1023,7 @@ GParamSpec* g_param_spec_long (const gchar *name,
|
||||
glong maximum,
|
||||
glong default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_ulong (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
@@ -1024,6 +1031,7 @@ GParamSpec* g_param_spec_ulong (const gchar *name,
|
||||
gulong maximum,
|
||||
gulong default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_int64 (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
@@ -1031,6 +1039,7 @@ GParamSpec* g_param_spec_int64 (const gchar *name,
|
||||
gint64 maximum,
|
||||
gint64 default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_uint64 (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
@@ -1038,23 +1047,27 @@ GParamSpec* g_param_spec_uint64 (const gchar *name,
|
||||
guint64 maximum,
|
||||
guint64 default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_unichar (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
gunichar default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_enum (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
GType enum_type,
|
||||
gint default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_flags (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
GType flags_type,
|
||||
guint default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_float (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
@@ -1062,6 +1075,7 @@ GParamSpec* g_param_spec_float (const gchar *name,
|
||||
gfloat maximum,
|
||||
gfloat default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_double (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
@@ -1069,42 +1083,51 @@ GParamSpec* g_param_spec_double (const gchar *name,
|
||||
gdouble maximum,
|
||||
gdouble default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_string (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
const gchar *default_value,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_param (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
GType param_type,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_boxed (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
GType boxed_type,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_pointer (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_value_array (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
GParamSpec *element_spec,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_object (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
GType object_type,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_override (const gchar *name,
|
||||
GParamSpec *overridden);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_gtype (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
GType is_a_type,
|
||||
GParamFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GParamSpec* g_param_spec_variant (const gchar *name,
|
||||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
|
@@ -262,6 +262,7 @@ struct _GSignalQuery
|
||||
|
||||
|
||||
/* --- signals --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guint g_signal_newv (const gchar *signal_name,
|
||||
GType itype,
|
||||
GSignalFlags signal_flags,
|
||||
@@ -272,6 +273,7 @@ guint g_signal_newv (const gchar *signal_name,
|
||||
GType return_type,
|
||||
guint n_params,
|
||||
GType *param_types);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guint g_signal_new_valist (const gchar *signal_name,
|
||||
GType itype,
|
||||
GSignalFlags signal_flags,
|
||||
@@ -282,6 +284,7 @@ guint g_signal_new_valist (const gchar *signal_name,
|
||||
GType return_type,
|
||||
guint n_params,
|
||||
va_list args);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guint g_signal_new (const gchar *signal_name,
|
||||
GType itype,
|
||||
GSignalFlags signal_flags,
|
||||
@@ -292,6 +295,7 @@ guint g_signal_new (const gchar *signal_name,
|
||||
GType return_type,
|
||||
guint n_params,
|
||||
...);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guint g_signal_new_class_handler (const gchar *signal_name,
|
||||
GType itype,
|
||||
GSignalFlags signal_flags,
|
||||
@@ -302,83 +306,107 @@ guint g_signal_new_class_handler (const gchar *signal_name,
|
||||
GType return_type,
|
||||
guint n_params,
|
||||
...);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_set_va_marshaller (guint signal_id,
|
||||
GType instance_type,
|
||||
GSignalCVaMarshaller va_marshaller);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_emitv (const GValue *instance_and_params,
|
||||
guint signal_id,
|
||||
GQuark detail,
|
||||
GValue *return_value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_emit_valist (gpointer instance,
|
||||
guint signal_id,
|
||||
GQuark detail,
|
||||
va_list var_args);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_emit (gpointer instance,
|
||||
guint signal_id,
|
||||
GQuark detail,
|
||||
...);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_emit_by_name (gpointer instance,
|
||||
const gchar *detailed_signal,
|
||||
...);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guint g_signal_lookup (const gchar *name,
|
||||
GType itype);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
const gchar * g_signal_name (guint signal_id);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_query (guint signal_id,
|
||||
GSignalQuery *query);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guint* g_signal_list_ids (GType itype,
|
||||
guint *n_ids);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_signal_parse_name (const gchar *detailed_signal,
|
||||
GType itype,
|
||||
guint *signal_id_p,
|
||||
GQuark *detail_p,
|
||||
gboolean force_detail_quark);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GSignalInvocationHint* g_signal_get_invocation_hint (gpointer instance);
|
||||
|
||||
|
||||
/* --- signal emissions --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_stop_emission (gpointer instance,
|
||||
guint signal_id,
|
||||
GQuark detail);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_stop_emission_by_name (gpointer instance,
|
||||
const gchar *detailed_signal);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gulong g_signal_add_emission_hook (guint signal_id,
|
||||
GQuark detail,
|
||||
GSignalEmissionHook hook_func,
|
||||
gpointer hook_data,
|
||||
GDestroyNotify data_destroy);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_remove_emission_hook (guint signal_id,
|
||||
gulong hook_id);
|
||||
|
||||
|
||||
/* --- signal handlers --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_signal_has_handler_pending (gpointer instance,
|
||||
guint signal_id,
|
||||
GQuark detail,
|
||||
gboolean may_be_blocked);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gulong g_signal_connect_closure_by_id (gpointer instance,
|
||||
guint signal_id,
|
||||
GQuark detail,
|
||||
GClosure *closure,
|
||||
gboolean after);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gulong g_signal_connect_closure (gpointer instance,
|
||||
const gchar *detailed_signal,
|
||||
GClosure *closure,
|
||||
gboolean after);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gulong g_signal_connect_data (gpointer instance,
|
||||
const gchar *detailed_signal,
|
||||
GCallback c_handler,
|
||||
gpointer data,
|
||||
GClosureNotify destroy_data,
|
||||
GConnectFlags connect_flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_handler_block (gpointer instance,
|
||||
gulong handler_id);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_handler_unblock (gpointer instance,
|
||||
gulong handler_id);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_handler_disconnect (gpointer instance,
|
||||
gulong handler_id);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_signal_handler_is_connected (gpointer instance,
|
||||
gulong handler_id);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gulong g_signal_handler_find (gpointer instance,
|
||||
GSignalMatchType mask,
|
||||
guint signal_id,
|
||||
@@ -386,6 +414,7 @@ gulong g_signal_handler_find (gpointer instance,
|
||||
GClosure *closure,
|
||||
gpointer func,
|
||||
gpointer data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guint g_signal_handlers_block_matched (gpointer instance,
|
||||
GSignalMatchType mask,
|
||||
guint signal_id,
|
||||
@@ -393,6 +422,7 @@ guint g_signal_handlers_block_matched (gpointer instance,
|
||||
GClosure *closure,
|
||||
gpointer func,
|
||||
gpointer data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guint g_signal_handlers_unblock_matched (gpointer instance,
|
||||
GSignalMatchType mask,
|
||||
guint signal_id,
|
||||
@@ -400,6 +430,7 @@ guint g_signal_handlers_unblock_matched (gpointer instance,
|
||||
GClosure *closure,
|
||||
gpointer func,
|
||||
gpointer data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guint g_signal_handlers_disconnect_matched (gpointer instance,
|
||||
GSignalMatchType mask,
|
||||
guint signal_id,
|
||||
@@ -410,14 +441,18 @@ guint g_signal_handlers_disconnect_matched (gpointer instance,
|
||||
|
||||
|
||||
/* --- overriding and chaining --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_override_class_closure (guint signal_id,
|
||||
GType instance_type,
|
||||
GClosure *class_closure);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_override_class_handler (const gchar *signal_name,
|
||||
GType instance_type,
|
||||
GCallback class_handler);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_chain_from_overridden (const GValue *instance_and_params,
|
||||
GValue *return_value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_chain_from_overridden_handler (gpointer instance,
|
||||
...);
|
||||
|
||||
@@ -528,17 +563,20 @@ void g_signal_chain_from_overridden_handler (gpointer instance,
|
||||
0, 0, NULL, (func), (data))
|
||||
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_signal_accumulator_true_handled (GSignalInvocationHint *ihint,
|
||||
GValue *return_accu,
|
||||
const GValue *handler_return,
|
||||
gpointer dummy);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_signal_accumulator_first_wins (GSignalInvocationHint *ihint,
|
||||
GValue *return_accu,
|
||||
const GValue *handler_return,
|
||||
gpointer dummy);
|
||||
|
||||
/*< private >*/
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_signal_handlers_destroy (gpointer instance);
|
||||
void _g_signals_destroy (GType itype);
|
||||
|
||||
|
@@ -28,9 +28,11 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_source_set_closure (GSource *source,
|
||||
GClosure *closure);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_source_set_dummy_callback (GSource *source);
|
||||
|
||||
G_END_DECLS
|
||||
|
@@ -669,40 +669,62 @@ GLIB_DEPRECATED_IN_2_36
|
||||
void g_type_init (void);
|
||||
GLIB_DEPRECATED_IN_2_36
|
||||
void g_type_init_with_debug_flags (GTypeDebugFlags debug_flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
const gchar * g_type_name (GType type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GQuark g_type_qname (GType type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_from_name (const gchar *name);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_parent (GType type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guint g_type_depth (GType type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_next_base (GType leaf_type,
|
||||
GType root_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_type_is_a (GType type,
|
||||
GType is_a_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_type_class_ref (GType type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_type_class_peek (GType type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_type_class_peek_static (GType type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_class_unref (gpointer g_class);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_type_class_peek_parent (gpointer g_class);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_type_interface_peek (gpointer instance_class,
|
||||
GType iface_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_type_interface_peek_parent (gpointer g_iface);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_type_default_interface_ref (GType g_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_type_default_interface_peek (GType g_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_default_interface_unref (gpointer g_iface);
|
||||
|
||||
/* g_free() the returned arrays */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType* g_type_children (GType type,
|
||||
guint *n_children);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType* g_type_interfaces (GType type,
|
||||
guint *n_interfaces);
|
||||
|
||||
/* per-type _static_ data */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_set_qdata (GType type,
|
||||
GQuark quark,
|
||||
gpointer data);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_type_get_qdata (GType type,
|
||||
GQuark quark);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_query (GType type,
|
||||
GTypeQuery *query);
|
||||
|
||||
@@ -1220,10 +1242,12 @@ struct _GTypeValueTable
|
||||
GTypeCValue *collect_values,
|
||||
guint collect_flags);
|
||||
};
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_register_static (GType parent_type,
|
||||
const gchar *type_name,
|
||||
const GTypeInfo *info,
|
||||
GTypeFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_register_static_simple (GType parent_type,
|
||||
const gchar *type_name,
|
||||
guint class_size,
|
||||
@@ -1232,32 +1256,42 @@ GType g_type_register_static_simple (GType parent_type
|
||||
GInstanceInitFunc instance_init,
|
||||
GTypeFlags flags);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_register_dynamic (GType parent_type,
|
||||
const gchar *type_name,
|
||||
GTypePlugin *plugin,
|
||||
GTypeFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_register_fundamental (GType type_id,
|
||||
const gchar *type_name,
|
||||
const GTypeInfo *info,
|
||||
const GTypeFundamentalInfo *finfo,
|
||||
GTypeFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_add_interface_static (GType instance_type,
|
||||
GType interface_type,
|
||||
const GInterfaceInfo *info);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_add_interface_dynamic (GType instance_type,
|
||||
GType interface_type,
|
||||
GTypePlugin *plugin);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_interface_add_prerequisite (GType interface_type,
|
||||
GType prerequisite_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType*g_type_interface_prerequisites (GType interface_type,
|
||||
guint *n_prerequisites);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_class_add_private (gpointer g_class,
|
||||
gsize private_size);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_type_instance_get_private (GTypeInstance *instance,
|
||||
GType private_type);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_add_class_private (GType class_type,
|
||||
gsize private_size);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_type_class_get_private (GTypeClass *klass,
|
||||
GType private_type);
|
||||
|
||||
@@ -1625,48 +1659,71 @@ type_name##_get_type (void) \
|
||||
{ /* custom code follows */
|
||||
|
||||
/* --- protected (for fundamental type implementations) --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GTypePlugin* g_type_get_plugin (GType type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GTypePlugin* g_type_interface_get_plugin (GType instance_type,
|
||||
GType interface_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_fundamental_next (void);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_fundamental (GType type_id);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GTypeInstance* g_type_create_instance (GType type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_free_instance (GTypeInstance *instance);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_add_class_cache_func (gpointer cache_data,
|
||||
GTypeClassCacheFunc cache_func);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_remove_class_cache_func (gpointer cache_data,
|
||||
GTypeClassCacheFunc cache_func);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_class_unref_uncached (gpointer g_class);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_add_interface_check (gpointer check_data,
|
||||
GTypeInterfaceCheckFunc check_func);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_remove_interface_check (gpointer check_data,
|
||||
GTypeInterfaceCheckFunc check_func);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GTypeValueTable* g_type_value_table_peek (GType type);
|
||||
|
||||
|
||||
/*< private >*/
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_type_check_instance (GTypeInstance *instance) G_GNUC_PURE;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GTypeInstance* g_type_check_instance_cast (GTypeInstance *instance,
|
||||
GType iface_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_type_check_instance_is_a (GTypeInstance *instance,
|
||||
GType iface_type) G_GNUC_PURE;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GTypeClass* g_type_check_class_cast (GTypeClass *g_class,
|
||||
GType is_a_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_type_check_class_is_a (GTypeClass *g_class,
|
||||
GType is_a_type) G_GNUC_PURE;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_type_check_is_value_type (GType type) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_type_check_value (GValue *value) G_GNUC_PURE;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_type_check_value_holds (GValue *value,
|
||||
GType type) G_GNUC_PURE;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_type_test_flags (GType type,
|
||||
guint flags) G_GNUC_CONST;
|
||||
|
||||
|
||||
/* --- debugging functions --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
const gchar * g_type_name_from_instance (GTypeInstance *instance);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
const gchar * g_type_name_from_class (GTypeClass *g_class);
|
||||
|
||||
|
||||
|
@@ -237,23 +237,31 @@ type_name##_register_type (GTypeModule *type_module) \
|
||||
g_type_module_add_interface (type_module, g_define_type_id, TYPE_IFACE, &g_implement_interface_info); \
|
||||
}
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_module_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_type_module_use (GTypeModule *module);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_module_unuse (GTypeModule *module);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_module_set_name (GTypeModule *module,
|
||||
const gchar *name);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_module_register_type (GTypeModule *module,
|
||||
GType parent_type,
|
||||
const gchar *type_name,
|
||||
const GTypeInfo *type_info,
|
||||
GTypeFlags flags);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_module_add_interface (GTypeModule *module,
|
||||
GType instance_type,
|
||||
GType interface_type,
|
||||
const GInterfaceInfo *interface_info);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_module_register_enum (GTypeModule *module,
|
||||
const gchar *name,
|
||||
const GEnumValue *const_static_values);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_module_register_flags (GTypeModule *module,
|
||||
const gchar *name,
|
||||
const GFlagsValue *const_static_values);
|
||||
|
@@ -117,13 +117,18 @@ struct _GTypePluginClass
|
||||
|
||||
|
||||
/* --- prototypes --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_type_plugin_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_plugin_use (GTypePlugin *plugin);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_plugin_unuse (GTypePlugin *plugin);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_plugin_complete_type_info (GTypePlugin *plugin,
|
||||
GType g_type,
|
||||
GTypeInfo *info,
|
||||
GTypeValueTable *value_table);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_type_plugin_complete_interface_info (GTypePlugin *plugin,
|
||||
GType instance_type,
|
||||
GType interface_type,
|
||||
|
@@ -126,28 +126,39 @@ struct _GValue
|
||||
|
||||
|
||||
/* --- prototypes --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GValue* g_value_init (GValue *value,
|
||||
GType g_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_copy (const GValue *src_value,
|
||||
GValue *dest_value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GValue* g_value_reset (GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_unset (GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_instance (GValue *value,
|
||||
gpointer instance);
|
||||
|
||||
|
||||
/* --- private --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_value_fits_pointer (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_value_peek_pointer (const GValue *value);
|
||||
|
||||
|
||||
/* --- implementation details --- */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_value_type_compatible (GType src_type,
|
||||
GType dest_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_value_type_transformable (GType src_type,
|
||||
GType dest_type);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_value_transform (const GValue *src_value,
|
||||
GValue *dest_value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_register_transform_func (GType src_type,
|
||||
GType dest_type,
|
||||
GValueTransform transform_func);
|
||||
|
@@ -182,67 +182,105 @@ void g_value_set_char (GValue *value,
|
||||
gchar v_char);
|
||||
GLIB_DEPRECATED_IN_2_32_FOR(g_value_get_schar)
|
||||
gchar g_value_get_char (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_schar (GValue *value,
|
||||
gint8 v_char);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gint8 g_value_get_schar (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_uchar (GValue *value,
|
||||
guchar v_uchar);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guchar g_value_get_uchar (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_boolean (GValue *value,
|
||||
gboolean v_boolean);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_value_get_boolean (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_int (GValue *value,
|
||||
gint v_int);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gint g_value_get_int (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_uint (GValue *value,
|
||||
guint v_uint);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guint g_value_get_uint (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_long (GValue *value,
|
||||
glong v_long);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
glong g_value_get_long (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_ulong (GValue *value,
|
||||
gulong v_ulong);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gulong g_value_get_ulong (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_int64 (GValue *value,
|
||||
gint64 v_int64);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gint64 g_value_get_int64 (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_uint64 (GValue *value,
|
||||
guint64 v_uint64);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
guint64 g_value_get_uint64 (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_float (GValue *value,
|
||||
gfloat v_float);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gfloat g_value_get_float (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_double (GValue *value,
|
||||
gdouble v_double);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gdouble g_value_get_double (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_string (GValue *value,
|
||||
const gchar *v_string);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_static_string (GValue *value,
|
||||
const gchar *v_string);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
const gchar * g_value_get_string (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gchar* g_value_dup_string (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_pointer (GValue *value,
|
||||
gpointer v_pointer);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gpointer g_value_get_pointer (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_gtype_get_type (void);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_gtype (GValue *value,
|
||||
GType v_gtype);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_value_get_gtype (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_set_variant (GValue *value,
|
||||
GVariant *variant);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_take_variant (GValue *value,
|
||||
GVariant *variant);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GVariant* g_value_get_variant (const GValue *value);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GVariant* g_value_dup_variant (const GValue *value);
|
||||
|
||||
|
||||
/* Convenience for registering new pointer types */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_pointer_type_register_static (const gchar *name);
|
||||
|
||||
/* debugging aid, describe value contents as string */
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gchar* g_strdup_value_contents (const GValue *value);
|
||||
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_value_take_string (GValue *value,
|
||||
gchar *v_string);
|
||||
GLIB_DEPRECATED_FOR(g_value_take_string)
|
||||
|
Reference in New Issue
Block a user