diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-04-27 13:13:26 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-04-27 13:13:26 +0200 |
commit | 7fd926f07e17a3da8fbb14aada40145bf0d0b3cc (patch) | |
tree | 6ba47259cbe3721029446ae38fe3c2da667b9ab0 /lib | |
parent | e4712314142787a41e5dd2e4d7b32cddaa33c279 (diff) | |
download | xdg-app-7fd926f07e17a3da8fbb14aada40145bf0d0b3cc.tar.gz |
lib: Add xdg_app_get_default_arch
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xdg-app-installation.c | 13 | ||||
-rw-r--r-- | lib/xdg-app-installation.h | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/xdg-app-installation.c b/lib/xdg-app-installation.c index f6453ac..4566677 100644 --- a/lib/xdg-app-installation.c +++ b/lib/xdg-app-installation.c @@ -143,6 +143,19 @@ xdg_app_installation_new_for_dir (XdgAppDir *dir, } /** + * 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 * @error: return location for a #GError diff --git a/lib/xdg-app-installation.h b/lib/xdg-app-installation.h index 025e018..8a1595f 100644 --- a/lib/xdg-app-installation.h +++ b/lib/xdg-app-installation.h @@ -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, |