[gnome-builder] flatpak: add helper to get platform (aka runtime)
- From: Christian Hergert <chergert src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-builder] flatpak: add helper to get platform (aka runtime)
 
- Date: Fri, 23 Apr 2021 22:17:24 +0000 (UTC)
 
commit 262273e43fc451c3e7acf3a2c51e73bc5ca4ceb3
Author: Christian Hergert <chergert redhat com>
Date:   Fri Apr 23 15:15:15 2021 -0700
    flatpak: add helper to get platform (aka runtime)
 src/plugins/flatpak/gbp-flatpak-manifest.c | 8 ++++++++
 src/plugins/flatpak/gbp-flatpak-manifest.h | 1 +
 2 files changed, 9 insertions(+)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-manifest.c b/src/plugins/flatpak/gbp-flatpak-manifest.c
index 556351742..26c0e186f 100644
--- a/src/plugins/flatpak/gbp-flatpak-manifest.c
+++ b/src/plugins/flatpak/gbp-flatpak-manifest.c
@@ -1085,3 +1085,11 @@ gbp_flatpak_manifest_get_runtimes (GbpFlatpakManifest *self,
 
   return (gchar **)g_ptr_array_free (ar, FALSE);
 }
+
+const char *
+gbp_flatpak_manifest_get_platform (GbpFlatpakManifest *self)
+{
+  g_return_val_if_fail (GBP_IS_FLATPAK_MANIFEST (self), NULL);
+
+  return self->runtime;
+}
diff --git a/src/plugins/flatpak/gbp-flatpak-manifest.h b/src/plugins/flatpak/gbp-flatpak-manifest.h
index 4ff84f44e..b05321f89 100644
--- a/src/plugins/flatpak/gbp-flatpak-manifest.h
+++ b/src/plugins/flatpak/gbp-flatpak-manifest.h
@@ -39,6 +39,7 @@ const gchar * const *gbp_flatpak_manifest_get_build_args     (GbpFlatpakManifest
 const gchar * const *gbp_flatpak_manifest_get_finish_args    (GbpFlatpakManifest   *self);
 const gchar * const *gbp_flatpak_manifest_get_sdk_extensions (GbpFlatpakManifest   *self);
 const gchar         *gbp_flatpak_manifest_get_sdk            (GbpFlatpakManifest   *self);
+const gchar         *gbp_flatpak_manifest_get_platform       (GbpFlatpakManifest   *self);
 gchar              **gbp_flatpak_manifest_get_runtimes       (GbpFlatpakManifest   *self,
                                                               const gchar          *for_arch);
 void                 gbp_flatpak_manifest_save_async         (GbpFlatpakManifest   *self,
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]