diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2020-02-04 19:32:49 +0100 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2020-02-07 16:38:26 +0000 |
commit | fb1234158b18722e55206378365240e3e78056b2 (patch) | |
tree | 6aad18813606a75f947093832d5f7e1350a1bc1d /gck | |
parent | 7e012478dc323b4d8c71ad7836b5201950ec0dfb (diff) | |
download | gcr-fb1234158b18722e55206378365240e3e78056b2.tar.gz |
Mark deprecated functions with G_DEPRECATED
If we want applications to switch, deprecation warnings are a good way
to make that happen.
Fixes https://gitlab.gnome.org/GNOME/gcr/issues/36
Diffstat (limited to 'gck')
-rw-r--r-- | gck/gck-deprecated.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gck/gck-deprecated.h b/gck/gck-deprecated.h index 9314db7..029ab7e 100644 --- a/gck/gck-deprecated.h +++ b/gck/gck-deprecated.h @@ -31,75 +31,96 @@ G_BEGIN_DECLS typedef GArray GckMechanisms; +G_DEPRECATED_FOR(g_array_free) #define gck_mechanisms_free(a) (g_array_free (a, TRUE)) #define CKR_GCK_MODULE_PROBLEM GCK_ERROR_MODULE_PROBLEM +G_DEPRECATED_FOR(gck_error_get_quark) GQuark gck_get_error_quark (void); +G_DEPRECATED_FOR(gck_uri_error_get_quark) GQuark gck_uri_get_error_quark (void); #define GCK_URI_BAD_PREFIX GCK_URI_BAD_SCHEME +G_DEPRECATED_FOR(gck_attributes_get_type) GType gck_attributes_get_boxed_type (void) G_GNUC_CONST; +G_DEPRECATED_FOR(gck_builder_set_all) GckAttributes * gck_attributes_new_full (GckAllocator allocator); +G_DEPRECATED_FOR(gck_builder_set_all) GckAttribute * gck_attributes_add (GckAttributes *attrs, GckAttribute *attr); +G_DEPRECATED_FOR(gck_builder_set_all) void gck_attributes_add_all (GckAttributes *attrs, GckAttributes *from); +G_DEPRECATED_FOR(gck_builder_add_data) GckAttribute * gck_attributes_add_data (GckAttributes *attrs, gulong attr_type, const guchar *value, gsize length); +G_DEPRECATED_FOR(gck_builder_add_invalid) GckAttribute * gck_attributes_add_invalid (GckAttributes *attrs, gulong attr_type); +G_DEPRECATED_FOR(gck_builder_add_empty) GckAttribute * gck_attributes_add_empty (GckAttributes *attrs, gulong attr_type); +G_DEPRECATED_FOR(gck_builder_add_boolean) GckAttribute* gck_attributes_add_boolean (GckAttributes *attrs, gulong attr_type, gboolean value); +G_DEPRECATED_FOR(gck_builder_add_string) GckAttribute* gck_attributes_add_string (GckAttributes *attrs, gulong attr_type, const gchar *value); +G_DEPRECATED_FOR(gck_builder_add_date) GckAttribute* gck_attributes_add_date (GckAttributes *attrs, gulong attr_type, const GDate *value); +G_DEPRECATED_FOR(gck_builder_add_ulong) GckAttribute* gck_attributes_add_ulong (GckAttributes *attrs, gulong attr_type, gulong value); +G_DEPRECATED_FOR(gck_builder_set_data) void gck_attributes_set (GckAttributes *attrs, GckAttribute *attr); +G_DEPRECATED_FOR(gck_builder_set_boolean) void gck_attributes_set_boolean (GckAttributes *attrs, gulong attr_type, gboolean value); +G_DEPRECATED_FOR(gck_builder_set_ulong) void gck_attributes_set_ulong (GckAttributes *attrs, gulong attr_type, gulong value); +G_DEPRECATED_FOR(gck_builder_set_string) void gck_attributes_set_string (GckAttributes *attrs, gulong attr_type, const gchar *value); +G_DEPRECATED_FOR(gck_builder_set_date) void gck_attributes_set_date (GckAttributes *attrs, gulong attr_type, const GDate *value); +G_DEPRECATED_FOR(gck_builder_set_all) void gck_attributes_set_all (GckAttributes *attrs, GckAttributes *from); +G_DEPRECATED_FOR(gck_attributes_ref or gck_builder_add_all) GckAttributes * gck_attributes_dup (GckAttributes *attrs); #endif /* GCK_DISABLE_DEPRECATED */ |