lib: Add xdg_app_get_default_arch

tingping/wmclass
Alexander Larsson 2016-04-27 13:13:26 +02:00
parent e471231414
commit 7fd926f07e
2 changed files with 15 additions and 0 deletions

View File

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

View File

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