summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-02-26 12:52:38 +0100
committerAlexander Larsson <alexl@redhat.com>2016-02-26 12:52:38 +0100
commitd43d8cd8c8ce6c8748e628669db6cc9c5dea9253 (patch)
tree5b5a8560f3332024e7b15960365e6a447339da5d /lib
parentb20e72e91c3dbcf21e9dc5df21191ee2082e74e8 (diff)
downloadflatpak-d43d8cd8c8ce6c8748e628669db6cc9c5dea9253.tar.gz
Change xdg_app_bundle_ref_get_appdata to xdg_app_bundle_ref_get_appstream
This is technically an ABI break, but nothing is using this yet.
Diffstat (limited to 'lib')
-rw-r--r--lib/xdg-app-bundle-ref.c22
-rw-r--r--lib/xdg-app-bundle-ref.h2
2 files changed, 12 insertions, 12 deletions
diff --git a/lib/xdg-app-bundle-ref.c b/lib/xdg-app-bundle-ref.c
index 69e1743f..39df95ef 100644
--- a/lib/xdg-app-bundle-ref.c
+++ b/lib/xdg-app-bundle-ref.c
@@ -32,7 +32,7 @@ struct _XdgAppBundleRefPrivate
{
GFile *file;
GBytes *metadata;
- GBytes *appdata;
+ GBytes *appstream;
GBytes *icon_64;
GBytes *icon_128;
guint64 installed_size;
@@ -157,20 +157,20 @@ xdg_app_bundle_ref_get_metadata (XdgAppBundleRef *self)
}
/**
- * xdg_app_bundle_ref_get_appdata:
+ * xdg_app_bundle_ref_get_appstream:
* @self: a #XdgAppInstallation
*
- * Get the compressed appdata for the app/runtime
+ * Get the compressed appstream for the app/runtime
*
- * Returns: (transfer full) : an #GBytes with the appdata contents, or %NULL
+ * Returns: (transfer full) : an #GBytes with the appstream contents, or %NULL
*/
GBytes *
-xdg_app_bundle_ref_get_appdata (XdgAppBundleRef *self)
+xdg_app_bundle_ref_get_appstream (XdgAppBundleRef *self)
{
XdgAppBundleRefPrivate *priv = xdg_app_bundle_ref_get_instance_private (self);
- if (priv->appdata)
- return g_bytes_ref (priv->appdata);
+ if (priv->appstream)
+ return g_bytes_ref (priv->appstream);
return NULL;
}
@@ -219,7 +219,7 @@ xdg_app_bundle_ref_new (GFile *file,
g_autofree char *commit = NULL;
g_autofree char *full_ref = NULL;
g_autofree char *metadata_contents = NULL;
- g_autoptr(GVariant) appdata = NULL;
+ g_autoptr(GVariant) appstream = NULL;
g_autoptr(GVariant) icon_64 = NULL;
g_autoptr(GVariant) icon_128 = NULL;
guint64 installed_size;
@@ -254,9 +254,9 @@ xdg_app_bundle_ref_new (GFile *file,
strlen (metadata_contents));
metadata_contents = NULL; /* Stolen */
- appdata = g_variant_lookup_value (metadata, "appdata", G_VARIANT_TYPE_BYTESTRING);
- if (appdata)
- priv->appdata = g_variant_get_data_as_bytes (appdata);
+ appstream = g_variant_lookup_value (metadata, "appdata", G_VARIANT_TYPE_BYTESTRING);
+ if (appstream)
+ priv->appstream = g_variant_get_data_as_bytes (appstream);
icon_64 = g_variant_lookup_value (metadata, "icon-64", G_VARIANT_TYPE_BYTESTRING);
if (icon_64)
diff --git a/lib/xdg-app-bundle-ref.h b/lib/xdg-app-bundle-ref.h
index 0c512005..a74e026c 100644
--- a/lib/xdg-app-bundle-ref.h
+++ b/lib/xdg-app-bundle-ref.h
@@ -48,7 +48,7 @@ XDG_APP_EXTERN XdgAppBundleRef *xdg_app_bundle_ref_new (GFile *file,
GError **error);
XDG_APP_EXTERN GFile *xdg_app_bundle_ref_get_file (XdgAppBundleRef *self);
XDG_APP_EXTERN GBytes *xdg_app_bundle_ref_get_metadata (XdgAppBundleRef *self);
-XDG_APP_EXTERN GBytes *xdg_app_bundle_ref_get_appdata (XdgAppBundleRef *self);
+XDG_APP_EXTERN GBytes *xdg_app_bundle_ref_get_appstream (XdgAppBundleRef *self);
XDG_APP_EXTERN GBytes *xdg_app_bundle_ref_get_icon (XdgAppBundleRef *self,
int size);
XDG_APP_EXTERN guint64 xdg_app_bundle_ref_get_installed_size (XdgAppBundleRef *self);