diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-05-02 16:50:37 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-05-02 16:50:37 +0200 |
commit | 36d0a2fe2aa59b892553d97e9fecdb9d3a9a69c7 (patch) | |
tree | dfe2b6aa2c7aa739c741f9b0f281eb25a0acc9f1 /lib | |
parent | b3d854f507782249592e2c36fce6e9ebf24cd3f2 (diff) | |
download | xdg-app-36d0a2fe2aa59b892553d97e9fecdb9d3a9a69c7.tar.gz |
Add xdg_app_installed_ref_get_subpaths
This was in the header, but not the code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xdg-app-installed-ref.c | 16 | ||||
-rw-r--r-- | lib/xdg-app-installed-ref.h | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/lib/xdg-app-installed-ref.c b/lib/xdg-app-installed-ref.c index d0b8793..f77e1b1 100644 --- a/lib/xdg-app-installed-ref.c +++ b/lib/xdg-app-installed-ref.c @@ -283,6 +283,22 @@ xdg_app_installed_ref_get_is_current (XdgAppInstalledRef *self) } /** + * xdg_app_installed_ref_get_subpaths: + * @self: a #XdgAppInstalledRef + * + * Returns the subpaths that are installed, or %NULL if all files installed. + * + * Returns: (transfer none): A strv, or %NULL + */ +const char * const* +xdg_app_installed_ref_get_subpaths (XdgAppInstalledRef *self) +{ + XdgAppInstalledRefPrivate *priv = xdg_app_installed_ref_get_instance_private (self); + + return (const char * const *) priv->subpaths; +} + +/** * xdg_app_installed_ref_get_installed_size: * @self: a #XdgAppInstalledRef * diff --git a/lib/xdg-app-installed-ref.h b/lib/xdg-app-installed-ref.h index 3fdf069..db3524d 100644 --- a/lib/xdg-app-installed-ref.h +++ b/lib/xdg-app-installed-ref.h @@ -49,7 +49,7 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(XdgAppInstalledRef, g_object_unref) #endif XDG_APP_EXTERN const char *xdg_app_installed_ref_get_origin (XdgAppInstalledRef *self); -XDG_APP_EXTERN const char **xdg_app_installed_ref_get_subpaths (XdgAppInstalledRef *self); +XDG_APP_EXTERN const char * const*xdg_app_installed_ref_get_subpaths (XdgAppInstalledRef *self); XDG_APP_EXTERN guint64 xdg_app_installed_ref_get_installed_size (XdgAppInstalledRef *self); XDG_APP_EXTERN const char *xdg_app_installed_ref_get_deploy_dir (XdgAppInstalledRef *self); XDG_APP_EXTERN const char *xdg_app_installed_ref_get_latest_commit (XdgAppInstalledRef *self); |