From b09458554543097adcd9d9abe34dbfcdd74b2df5 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 20 Oct 2020 08:46:02 +0200 Subject: [PATCH] utils: Expose get_compat_arch_reverse() and get_arch_for_ref() We need to use these from some other files too. --- common/flatpak-utils-private.h | 2 ++ common/flatpak-utils.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/flatpak-utils-private.h b/common/flatpak-utils-private.h index 1b3bad30..7f55a0fa 100644 --- a/common/flatpak-utils-private.h +++ b/common/flatpak-utils-private.h @@ -193,6 +193,8 @@ gboolean flatpak_id_has_subref_suffix (const char *id); char **flatpak_decompose_ref (const char *ref, GError **error); +char * flatpak_get_arch_for_ref (const char *ref); +const char *flatpak_get_compat_arch_reverse (const char *compat_arch); char * flatpak_filter_glob_to_regexp (const char *glob, gboolean runtime_only, GError **error); gboolean flatpak_parse_filters (const char *data, diff --git a/common/flatpak-utils.c b/common/flatpak-utils.c index f3128d09..0bc74133 100644 --- a/common/flatpak-utils.c +++ b/common/flatpak-utils.c @@ -472,7 +472,7 @@ flatpak_get_compat_arch (const char *kernel_arch) return NULL; } -static const char * +const char * flatpak_get_compat_arch_reverse (const char *compat_arch) { int i; @@ -3747,7 +3747,7 @@ _ostree_repo_static_delta_superblock_digest (OstreeRepo *repo, FALSE, g_free, FALSE); } -static char * +char * flatpak_get_arch_for_ref (const char *ref) { if (g_str_has_prefix (ref, "appstream/") ||