summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-enums.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-02-25 20:38:29 +0000
committerRichard Hughes <richard@hughsie.com>2016-02-25 20:39:04 +0000
commitdb239198f49842d03bde09340ac8442ccbcb7da0 (patch)
tree6685c5c65d4e387d7f20c0a68b44339bc136a6ea /libappstream-glib/as-enums.h
parentd9953c52cd15fe92d8178a87de7be6a6a132f6bd (diff)
downloadappstream-glib-db239198f49842d03bde09340ac8442ccbcb7da0.tar.gz
Rename a symbol to reflect reality
This has not been an ID kind since spec version 0.5, and it's confusing to have two things in GNOME Software. The old symbols and enumerated types are left to maintain ABI compatibility.
Diffstat (limited to 'libappstream-glib/as-enums.h')
-rw-r--r--libappstream-glib/as-enums.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/libappstream-glib/as-enums.h b/libappstream-glib/as-enums.h
index 3a55440..be096fe 100644
--- a/libappstream-glib/as-enums.h
+++ b/libappstream-glib/as-enums.h
@@ -60,7 +60,7 @@ typedef enum {
AS_ID_KIND_GENERIC, /* Since: 0.5.8 */
/*< private >*/
AS_ID_KIND_LAST
-} AsIdKind;
+} AsIdKind G_GNUC_DEPRECATED_FOR(AsAppKind);
/**
* AsUrlKind:
@@ -154,15 +154,20 @@ AsSizeKind as_size_kind_from_string (const gchar *size_kind);
const gchar *as_urgency_kind_to_string (AsUrgencyKind urgency_kind);
AsUrgencyKind as_urgency_kind_from_string (const gchar *urgency_kind);
-const gchar *as_id_kind_to_string (AsIdKind id_kind);
-AsIdKind as_id_kind_from_string (const gchar *id_kind);
-
const gchar *as_url_kind_to_string (AsUrlKind url_kind);
AsUrlKind as_url_kind_from_string (const gchar *url_kind);
const gchar *as_kudo_kind_to_string (AsKudoKind kudo_kind);
AsKudoKind as_kudo_kind_from_string (const gchar *kudo_kind);
+/* deprecated */
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+const gchar *as_id_kind_to_string (AsIdKind id_kind)
+G_DEPRECATED_FOR(as_app_kind_to_string);
+AsIdKind as_id_kind_from_string (const gchar *id_kind)
+G_DEPRECATED_FOR(as_app_kind_from_string);
+G_GNUC_END_IGNORE_DEPRECATIONS
+
G_END_DECLS
#endif /* __AS_ENUMS_H */