mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-15 03:58:04 +02:00
Add versioned deprecation annotation
We start from GLib 2.26. https://bugzilla.gnome.org/show_bug.cgi?id=670542
This commit is contained in:
parent
817d992abc
commit
550fcaddf7
@ -56,28 +56,28 @@ struct _GCompletion
|
|||||||
GCompletionStrncmpFunc strncmp_func;
|
GCompletionStrncmpFunc strncmp_func;
|
||||||
};
|
};
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
GCompletion* g_completion_new (GCompletionFunc func);
|
GCompletion* g_completion_new (GCompletionFunc func);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
void g_completion_add_items (GCompletion* cmp,
|
void g_completion_add_items (GCompletion* cmp,
|
||||||
GList* items);
|
GList* items);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
void g_completion_remove_items (GCompletion* cmp,
|
void g_completion_remove_items (GCompletion* cmp,
|
||||||
GList* items);
|
GList* items);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
void g_completion_clear_items (GCompletion* cmp);
|
void g_completion_clear_items (GCompletion* cmp);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
GList* g_completion_complete (GCompletion* cmp,
|
GList* g_completion_complete (GCompletion* cmp,
|
||||||
const gchar* prefix,
|
const gchar* prefix,
|
||||||
gchar** new_prefix);
|
gchar** new_prefix);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
GList* g_completion_complete_utf8 (GCompletion *cmp,
|
GList* g_completion_complete_utf8 (GCompletion *cmp,
|
||||||
const gchar* prefix,
|
const gchar* prefix,
|
||||||
gchar** new_prefix);
|
gchar** new_prefix);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
void g_completion_set_compare (GCompletion *cmp,
|
void g_completion_set_compare (GCompletion *cmp,
|
||||||
GCompletionStrncmpFunc strncmp_func);
|
GCompletionStrncmpFunc strncmp_func);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
void g_completion_free (GCompletion* cmp);
|
void g_completion_free (GCompletion* cmp);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
@ -66,38 +66,38 @@ struct _GTuples
|
|||||||
* g_relation_count() counts ...
|
* g_relation_count() counts ...
|
||||||
*/
|
*/
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
GRelation* g_relation_new (gint fields);
|
GRelation* g_relation_new (gint fields);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
void g_relation_destroy (GRelation *relation);
|
void g_relation_destroy (GRelation *relation);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
void g_relation_index (GRelation *relation,
|
void g_relation_index (GRelation *relation,
|
||||||
gint field,
|
gint field,
|
||||||
GHashFunc hash_func,
|
GHashFunc hash_func,
|
||||||
GEqualFunc key_equal_func);
|
GEqualFunc key_equal_func);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
void g_relation_insert (GRelation *relation,
|
void g_relation_insert (GRelation *relation,
|
||||||
...);
|
...);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
gint g_relation_delete (GRelation *relation,
|
gint g_relation_delete (GRelation *relation,
|
||||||
gconstpointer key,
|
gconstpointer key,
|
||||||
gint field);
|
gint field);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
GTuples* g_relation_select (GRelation *relation,
|
GTuples* g_relation_select (GRelation *relation,
|
||||||
gconstpointer key,
|
gconstpointer key,
|
||||||
gint field);
|
gint field);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
gint g_relation_count (GRelation *relation,
|
gint g_relation_count (GRelation *relation,
|
||||||
gconstpointer key,
|
gconstpointer key,
|
||||||
gint field);
|
gint field);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
gboolean g_relation_exists (GRelation *relation,
|
gboolean g_relation_exists (GRelation *relation,
|
||||||
...);
|
...);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
void g_relation_print (GRelation *relation);
|
void g_relation_print (GRelation *relation);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
void g_tuples_destroy (GTuples *tuples);
|
void g_tuples_destroy (GTuples *tuples);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_26
|
||||||
gpointer g_tuples_index (GTuples *tuples,
|
gpointer g_tuples_index (GTuples *tuples,
|
||||||
gint index_,
|
gint index_,
|
||||||
gint field);
|
gint field);
|
||||||
|
@ -96,13 +96,13 @@ GLIB_VAR gboolean g_thread_use_default_impl;
|
|||||||
|
|
||||||
GLIB_VAR guint64 (*g_thread_gettime) (void);
|
GLIB_VAR guint64 (*g_thread_gettime) (void);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_thread_new)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_thread_new)
|
||||||
GThread *g_thread_create (GThreadFunc func,
|
GThread *g_thread_create (GThreadFunc func,
|
||||||
gpointer data,
|
gpointer data,
|
||||||
gboolean joinable,
|
gboolean joinable,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_thread_new)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_thread_new)
|
||||||
GThread *g_thread_create_full (GThreadFunc func,
|
GThread *g_thread_create_full (GThreadFunc func,
|
||||||
gpointer data,
|
gpointer data,
|
||||||
gulong stack_size,
|
gulong stack_size,
|
||||||
@ -111,11 +111,11 @@ GThread *g_thread_create_full (GThreadFunc func,
|
|||||||
GThreadPriority priority,
|
GThreadPriority priority,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
void g_thread_set_priority (GThread *thread,
|
void g_thread_set_priority (GThread *thread,
|
||||||
GThreadPriority priority);
|
GThreadPriority priority);
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
void g_thread_foreach (GFunc thread_func,
|
void g_thread_foreach (GFunc thread_func,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
@ -141,9 +141,9 @@ typedef struct
|
|||||||
#define g_static_mutex_unlock(mutex) \
|
#define g_static_mutex_unlock(mutex) \
|
||||||
g_mutex_unlock (g_static_mutex_get_mutex (mutex))
|
g_mutex_unlock (g_static_mutex_get_mutex (mutex))
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_mutex_init)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_mutex_init)
|
||||||
void g_static_mutex_init (GStaticMutex *mutex);
|
void g_static_mutex_init (GStaticMutex *mutex);
|
||||||
GLIB_DEPRECATED_FOR(g_mutex_free)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_mutex_free)
|
||||||
void g_static_mutex_free (GStaticMutex *mutex);
|
void g_static_mutex_free (GStaticMutex *mutex);
|
||||||
GMutex *g_static_mutex_get_mutex_impl (GStaticMutex *mutex);
|
GMutex *g_static_mutex_get_mutex_impl (GStaticMutex *mutex);
|
||||||
|
|
||||||
@ -166,26 +166,26 @@ struct _GStaticRecMutex
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define G_STATIC_REC_MUTEX_INIT { G_STATIC_MUTEX_INIT }
|
#define G_STATIC_REC_MUTEX_INIT { G_STATIC_MUTEX_INIT }
|
||||||
GLIB_DEPRECATED_FOR(g_rec_mutex_init)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_rec_mutex_init)
|
||||||
void g_static_rec_mutex_init (GStaticRecMutex *mutex);
|
void g_static_rec_mutex_init (GStaticRecMutex *mutex);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_rec_mutex_lock)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_rec_mutex_lock)
|
||||||
void g_static_rec_mutex_lock (GStaticRecMutex *mutex);
|
void g_static_rec_mutex_lock (GStaticRecMutex *mutex);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_rec_mutex_try_lock)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_rec_mutex_try_lock)
|
||||||
gboolean g_static_rec_mutex_trylock (GStaticRecMutex *mutex);
|
gboolean g_static_rec_mutex_trylock (GStaticRecMutex *mutex);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_rec_mutex_unlock)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_rec_mutex_unlock)
|
||||||
void g_static_rec_mutex_unlock (GStaticRecMutex *mutex);
|
void g_static_rec_mutex_unlock (GStaticRecMutex *mutex);
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
void g_static_rec_mutex_lock_full (GStaticRecMutex *mutex,
|
void g_static_rec_mutex_lock_full (GStaticRecMutex *mutex,
|
||||||
guint depth);
|
guint depth);
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
guint g_static_rec_mutex_unlock_full (GStaticRecMutex *mutex);
|
guint g_static_rec_mutex_unlock_full (GStaticRecMutex *mutex);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_rec_mutex_free)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_rec_mutex_free)
|
||||||
void g_static_rec_mutex_free (GStaticRecMutex *mutex);
|
void g_static_rec_mutex_free (GStaticRecMutex *mutex);
|
||||||
|
|
||||||
typedef struct _GStaticRWLock GStaticRWLock;
|
typedef struct _GStaticRWLock GStaticRWLock;
|
||||||
@ -203,31 +203,31 @@ struct _GStaticRWLock
|
|||||||
|
|
||||||
#define G_STATIC_RW_LOCK_INIT { G_STATIC_MUTEX_INIT, NULL, NULL, 0, FALSE, 0, 0 }
|
#define G_STATIC_RW_LOCK_INIT { G_STATIC_MUTEX_INIT, NULL, NULL, 0, FALSE, 0, 0 }
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_rw_lock_init)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_rw_lock_init)
|
||||||
void g_static_rw_lock_init (GStaticRWLock *lock);
|
void g_static_rw_lock_init (GStaticRWLock *lock);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_rw_lock_reader_lock)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_rw_lock_reader_lock)
|
||||||
void g_static_rw_lock_reader_lock (GStaticRWLock *lock);
|
void g_static_rw_lock_reader_lock (GStaticRWLock *lock);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_rw_lock_reader_trylock)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_rw_lock_reader_trylock)
|
||||||
gboolean g_static_rw_lock_reader_trylock (GStaticRWLock *lock);
|
gboolean g_static_rw_lock_reader_trylock (GStaticRWLock *lock);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_rw_lock_reader_unlock)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_rw_lock_reader_unlock)
|
||||||
void g_static_rw_lock_reader_unlock (GStaticRWLock *lock);
|
void g_static_rw_lock_reader_unlock (GStaticRWLock *lock);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_rw_lock_writer_lock)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_rw_lock_writer_lock)
|
||||||
void g_static_rw_lock_writer_lock (GStaticRWLock *lock);
|
void g_static_rw_lock_writer_lock (GStaticRWLock *lock);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_rw_lock_writer_trylock)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_rw_lock_writer_trylock)
|
||||||
gboolean g_static_rw_lock_writer_trylock (GStaticRWLock *lock);
|
gboolean g_static_rw_lock_writer_trylock (GStaticRWLock *lock);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_rw_lock_writer_unlock)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_rw_lock_writer_unlock)
|
||||||
void g_static_rw_lock_writer_unlock (GStaticRWLock *lock);
|
void g_static_rw_lock_writer_unlock (GStaticRWLock *lock);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_rw_lock_free)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_rw_lock_free)
|
||||||
void g_static_rw_lock_free (GStaticRWLock *lock);
|
void g_static_rw_lock_free (GStaticRWLock *lock);
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
GPrivate * g_private_new (GDestroyNotify notify);
|
GPrivate * g_private_new (GDestroyNotify notify);
|
||||||
|
|
||||||
typedef struct _GStaticPrivate GStaticPrivate;
|
typedef struct _GStaticPrivate GStaticPrivate;
|
||||||
@ -238,44 +238,44 @@ struct _GStaticPrivate
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define G_STATIC_PRIVATE_INIT { 0 }
|
#define G_STATIC_PRIVATE_INIT { 0 }
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
void g_static_private_init (GStaticPrivate *private_key);
|
void g_static_private_init (GStaticPrivate *private_key);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_private_get)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_private_get)
|
||||||
gpointer g_static_private_get (GStaticPrivate *private_key);
|
gpointer g_static_private_get (GStaticPrivate *private_key);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_private_set)
|
GLIB_DEPRECATED_IN_2_32_FOR(g_private_set)
|
||||||
void g_static_private_set (GStaticPrivate *private_key,
|
void g_static_private_set (GStaticPrivate *private_key,
|
||||||
gpointer data,
|
gpointer data,
|
||||||
GDestroyNotify notify);
|
GDestroyNotify notify);
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
void g_static_private_free (GStaticPrivate *private_key);
|
void g_static_private_free (GStaticPrivate *private_key);
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
gboolean g_once_init_enter_impl (volatile gsize *location);
|
gboolean g_once_init_enter_impl (volatile gsize *location);
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
void g_thread_init (gpointer vtable);
|
void g_thread_init (gpointer vtable);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
void g_thread_init_with_errorcheck_mutexes (gpointer vtable);
|
void g_thread_init_with_errorcheck_mutexes (gpointer vtable);
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
gboolean g_thread_get_initialized (void);
|
gboolean g_thread_get_initialized (void);
|
||||||
|
|
||||||
GLIB_VAR gboolean g_threads_got_initialized;
|
GLIB_VAR gboolean g_threads_got_initialized;
|
||||||
|
|
||||||
#define g_thread_supported() (1)
|
#define g_thread_supported() (1)
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
GMutex * g_mutex_new (void);
|
GMutex * g_mutex_new (void);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
void g_mutex_free (GMutex *mutex);
|
void g_mutex_free (GMutex *mutex);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
GCond * g_cond_new (void);
|
GCond * g_cond_new (void);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
void g_cond_free (GCond *cond);
|
void g_cond_free (GCond *cond);
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_32
|
||||||
gboolean g_cond_timed_wait (GCond *cond,
|
gboolean g_cond_timed_wait (GCond *cond,
|
||||||
GMutex *mutex,
|
GMutex *mutex,
|
||||||
GTimeVal *timeval);
|
GTimeVal *timeval);
|
||||||
|
@ -62,7 +62,7 @@ gsize g_atomic_pointer_or (volatile void *a
|
|||||||
gsize g_atomic_pointer_xor (volatile void *atomic,
|
gsize g_atomic_pointer_xor (volatile void *atomic,
|
||||||
gsize val);
|
gsize val);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_atomic_add)
|
GLIB_DEPRECATED_IN_2_30_FOR(g_atomic_add)
|
||||||
gint g_atomic_int_exchange_and_add (volatile gint *atomic,
|
gint g_atomic_int_exchange_and_add (volatile gint *atomic,
|
||||||
gint val);
|
gint val);
|
||||||
|
|
||||||
|
@ -409,7 +409,7 @@ void g_source_add_child_source (GSource *source,
|
|||||||
void g_source_remove_child_source (GSource *source,
|
void g_source_remove_child_source (GSource *source,
|
||||||
GSource *child_source);
|
GSource *child_source);
|
||||||
|
|
||||||
GLIB_DEPRECATED_FOR(g_source_get_time)
|
GLIB_DEPRECATED_IN_2_28_FOR(g_source_get_time)
|
||||||
void g_source_get_current_time (GSource *source,
|
void g_source_get_current_time (GSource *source,
|
||||||
GTimeVal *timeval);
|
GTimeVal *timeval);
|
||||||
|
|
||||||
|
@ -590,7 +590,7 @@ void g_unicode_canonical_ordering (gunichar *string,
|
|||||||
gsize len);
|
gsize len);
|
||||||
|
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED_IN_2_30
|
||||||
gunichar *g_unicode_canonical_decomposition (gunichar ch,
|
gunichar *g_unicode_canonical_decomposition (gunichar ch,
|
||||||
gsize *result_len) G_GNUC_MALLOC;
|
gsize *result_len) G_GNUC_MALLOC;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user