mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-28 03:48:53 +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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user