mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 09:28:54 +02:00
Annotate various types and macros as deprecated
These have all been documented as deprecated for a long time, but we’ve
never had a way to programmatically mark them as deprecated. Do that
now.
This is based on the list of deprecations from the reverted commit
80fcb1bc2
.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes: #638
This commit is contained in:
@@ -33,11 +33,13 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
typedef struct _GTrashStack GTrashStack;
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
typedef struct _GTrashStack GTrashStack GLIB_DEPRECATED_TYPE_IN_2_48;
|
||||
struct _GTrashStack
|
||||
{
|
||||
GTrashStack *next;
|
||||
};
|
||||
} GLIB_DEPRECATED_TYPE_IN_2_48;
|
||||
|
||||
GLIB_DEPRECATED_IN_2_48
|
||||
void g_trash_stack_push (GTrashStack **stack_p,
|
||||
@@ -49,6 +51,8 @@ gpointer g_trash_stack_peek (GTrashStack **stack_p);
|
||||
GLIB_DEPRECATED_IN_2_48
|
||||
guint g_trash_stack_height (GTrashStack **stack_p);
|
||||
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __G_TRASH_STACK_H_ */
|
||||
|
Reference in New Issue
Block a user