mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-24 23:58:10 -05:00
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:
committed by
Alexander Larsson
parent
c5d76e5a85
commit
b094585545
@@ -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,
|
||||
|
||||
@@ -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/") ||
|
||||
|
||||
Reference in New Issue
Block a user