diff options
author | Iain Lane <iain@orangesquash.org.uk> | 2017-02-28 15:32:49 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-02-28 15:32:49 +0000 |
commit | 2e1ca9af8012abba7f781d59928cae3bd0f651d3 (patch) | |
tree | 20beac8ceddb988ce1e1b2a858f51377f66fc164 /libappstream-glib/as-node-private.h | |
parent | 5da5eb8e93f2224d9fd2bc99b381886b010ca898 (diff) | |
download | appstream-glib-2e1ca9af8012abba7f781d59928cae3bd0f651d3.tar.gz |
as-node: Add back as_node_context_{get,set}_source_kind (#157)
These were renamed to …_format_kind in 0.9.6.
This is a bit of a technicality, but the functions were formally part of
the ABI before 0.9.6, and so should be retained to keep strict
compatibility.
Diffstat (limited to 'libappstream-glib/as-node-private.h')
-rw-r--r-- | libappstream-glib/as-node-private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libappstream-glib/as-node-private.h b/libappstream-glib/as-node-private.h index e161afc..8e29640 100644 --- a/libappstream-glib/as-node-private.h +++ b/libappstream-glib/as-node-private.h @@ -41,6 +41,13 @@ void as_node_context_set_version (AsNodeContext *ctx, AsFormatKind as_node_context_get_format_kind (AsNodeContext *ctx); void as_node_context_set_format_kind (AsNodeContext *ctx, AsFormatKind format_kind); +/* Kept for ABI compatibility with as-glib < 0.9.6 */ +G_DEPRECATED_FOR(as_node_context_get_format_kind) +AsFormatKind as_node_context_get_source_kind (AsNodeContext *ctx); +/* Kept for ABI compatibility with as-glib < 0.9.6 */ +G_DEPRECATED_FOR(as_node_context_set_format_kind) +void as_node_context_set_source_kind (AsNodeContext *ctx, + AsFormatKind source_kind); gboolean as_node_context_get_output_trusted (AsNodeContext *ctx); void as_node_context_set_output_trusted (AsNodeContext *ctx, gboolean output_trusted); |