forked from Mirrors/flatpak-builder
lib: Add xdg_app_get_default_arch
parent
e471231414
commit
7fd926f07e
|
@ -142,6 +142,19 @@ xdg_app_installation_new_for_dir (XdgAppDir *dir,
|
|||
return self;
|
||||
}
|
||||
|
||||
/**
|
||||
* xdg_app_get_default_arch:
|
||||
*
|
||||
* Returns the canonical name for the arch of the current machine.
|
||||
*
|
||||
* Returns: an arch string
|
||||
*/
|
||||
const char *
|
||||
xdg_app_get_default_arch (void)
|
||||
{
|
||||
return xdg_app_get_arch ();
|
||||
}
|
||||
|
||||
/**
|
||||
* xdg_app_installation_new_system:
|
||||
* @cancellable: (nullable): a #GCancellable
|
||||
|
|
|
@ -64,6 +64,8 @@ typedef enum {
|
|||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(XdgAppInstallation, g_object_unref)
|
||||
#endif
|
||||
|
||||
XDG_APP_EXTERN const char *xdg_app_get_default_arch (void);
|
||||
|
||||
XDG_APP_EXTERN XdgAppInstallation *xdg_app_installation_new_system (GCancellable *cancellable,
|
||||
GError **error);
|
||||
XDG_APP_EXTERN XdgAppInstallation *xdg_app_installation_new_user (GCancellable *cancellable,
|
||||
|
|
Loading…
Reference in New Issue