mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-27 18:48:15 -04:00
lib: Add flatpak_get_supported_arches
This commit is contained in:
@@ -160,6 +160,21 @@ flatpak_get_default_arch (void)
|
||||
return flatpak_get_arch ();
|
||||
}
|
||||
|
||||
/**
|
||||
* flatpak_get_supported_arches:
|
||||
*
|
||||
* Returns the canonical names for the arches that are supported (i.e. can run)
|
||||
* on the current machine, in order of priority (default is first).
|
||||
*
|
||||
* Returns: a zero terminated array of arch strings
|
||||
*/
|
||||
const char * const *
|
||||
flatpak_get_supported_arches (void)
|
||||
{
|
||||
return (const char * const *)flatpak_get_arches ();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* flatpak_installation_new_system:
|
||||
* @cancellable: (nullable): a #GCancellable
|
||||
|
||||
@@ -78,6 +78,8 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (FlatpakInstallation, g_object_unref)
|
||||
|
||||
FLATPAK_EXTERN const char *flatpak_get_default_arch (void);
|
||||
|
||||
FLATPAK_EXTERN const char *const *flatpak_get_supported_arches (void);
|
||||
|
||||
FLATPAK_EXTERN FlatpakInstallation *flatpak_installation_new_system (GCancellable *cancellable,
|
||||
GError **error);
|
||||
FLATPAK_EXTERN FlatpakInstallation *flatpak_installation_new_user (GCancellable *cancellable,
|
||||
|
||||
Reference in New Issue
Block a user