utils: Expose get_compat_arch_reverse() and get_arch_for_ref()

We need to use these from some other files too.
This commit is contained in:
Alexander Larsson
2020-10-20 08:46:02 +02:00
committed by Alexander Larsson
parent c5d76e5a85
commit b094585545
2 changed files with 4 additions and 2 deletions

View File

@@ -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,

View File

@@ -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/") ||